Module osm.io.pbf.header_block

Zero-copy decoder for the OSMPBF HeaderBlock protobuf message.

The decoder follows the canonical osmformat.proto schema while keeping the complete serialized message available as HeaderBlockView.raw. 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

NameDescription
decodeHeaderBlock(input, header, status) Decode one complete serialized OSMPBF HeaderBlock.

Structs

NameDescription
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.