Module osm.io.pbf.header_block
Zero-copy decoder for the OSMPBF HeaderBlock protobuf message.
The decoder follows the canonical osmformat schema while keeping the
complete serialized message available as HeaderBlockView. Singular
scalar and string fields use protobuf's last-one-wins behavior. Repeated
feature strings remain in wire order and are exposed through allocation-free
input ranges. Repeated occurrences of the singular embedded HeaderBBox
field are merged, matching protobuf message-field semantics.
Header strings are exposed as raw bytes at this layer. No implicit UTF-8
repair or normalization is performed. HeaderBBox coordinates are retained
exactly as signed integer nanodegrees and are never converted through
floating point.
Date
2026-09-12
Functions
| Name | Description |
|---|---|
decodeHeaderBlock(input, header, status)
|
Decode one complete serialized OSMPBF HeaderBlock.
|
Structs
| Name | Description |
|---|---|
HeaderBBoxView
|
Exact bounding box carried by an OSMPBF HeaderBlock. |
HeaderBlockView
|
Borrowed semantic view of a structurally valid OSMPBF HeaderBlock. |
HeaderFeatureRange
|
Allocation-free input range over one repeated feature field. |
HeaderFeatureRef
|
One repeated HeaderBlock feature occurrence and its wire offset. |