Function decodeBlob

Decode and validate one complete serialized OSMPBF Blob message.

bool decodeBlob(
  const(ubyte)[] input,
  out BlobView blob,
  out PbfStatus status
) nothrow @nogc @safe;

Validation performed here is independent of any decompressor backend: exactly one known data payload must be present; raw_size, when present, must be non-negative and below the format's exclusive 32 MiB hard limit; compressed payloads require raw_size; and raw payloads must agree with an explicitly supplied raw_size.

Parameters

NameDescription
input Complete serialized Blob message bytes.
blob Receives the borrowed validated view on success.
status Receives success or a precise PBF/wire failure.

Returns

true when the Blob is structurally and semantically safe to process; false otherwise.

Notes

No memory is allocated. blob must not outlive input.