readPbf - multiple declarations

Function readPbf

Decode one complete PBF with a temporary reader workspace.

PbfReadResult readPbf(Handler)(
  const(ubyte)[] input,
  ref Handler handler
) @safe;

This is the ordinary one-shot entry point. Repeated/high-throughput callers should keep a PbfReaderWorkspace and call PbfReader.read directly so scratch capacity is reused across files.

Function readPbf

Decode one complete PBF from a generic ByteSource with temporary scratch.

PbfSourceReadResult readPbf(Handler)(
  scope ByteSource source,
  ref Handler handler
) @safe;

Repeated/high-throughput callers should retain a PbfReaderWorkspace and call PbfReader.read directly so block/decompression/index scratch is reused.