Module osm.io.pbf.primitive_block
First-pass zero-copy layout decoder for OSMPBF PrimitiveBlock messages.
The decoder extracts only the block-level structure required by later hot
paths
StringTable occurrence/count information, borrowed PrimitiveGroup payloads, coordinate/date granularities, and coordinate offsets. Primitive groups themselves remain opaque at this stage.
Singular protobuf scalar fields follow last-one-wins semantics. Repeated
occurrences of the required singular stringtable message are merged as
protobuf message fields, which for StringTable means concatenating the
repeated string entries in wire occurrence order.
Date
2026-09-12
Functions
| Name | Description |
|---|---|
decodePrimitiveBlockLayout(input, layout, status)
|
Decode and validate one complete serialized OSMPBF PrimitiveBlock layout.
|
Structs
| Name | Description |
|---|---|
PrimitiveBlockLayout
|
Cheap first-pass layout of one structurally valid OSMPBF PrimitiveBlock. |
PrimitiveGroupRange
|
Allocation-free input range over serialized PrimitiveGroup occurrences. |
PrimitiveGroupRef
|
One borrowed serialized PrimitiveGroup occurrence and its wire offset.
|