Module osm.io.pbf.blob

Zero-copy decoder and semantic validation for OSMPBF Blob messages.

decodeBlob parses the storage-level protobuf message without decompressing its payload. Known payload fields remain borrowed slices into the serialized Blob, while the complete original message is retained as BlobView.raw. Unknown non-group fields are skipped but therefore remain available in raw for later lossless handling.

The decoder deliberately rejects more than one correctly encoded data oneof occurrence. Generic protobuf runtimes normally let the final oneof member win, but silently shadowing an earlier payload would violate osm-d's no-silent-loss contract. Raw bytes are still available to lower-level raw handling; the validated Blob representation requires one unambiguous payload.

Date

2026-09-12

Functions

NameDescription
decodeBlob(input, blob, status) Decode and validate one complete serialized OSMPBF Blob message.

Structs

NameDescription
BlobView Borrowed validated view of one serialized OSMPBF Blob message.