Function decodeHeaderBlock
Decode one complete serialized OSMPBF HeaderBlock.
bool decodeHeaderBlock(
const(ubyte)[] input,
out HeaderBlockView header,
out PbfStatus status
) nothrow @nogc @safe;
Unknown non-group protobuf fields are skipped semantically but remain in
HeaderBlockView. Known fields carrying the wrong wire type are treated
as unknown occurrences, consistent with protobuf forward-compatible parsing.
A present HeaderBBox must contain all four required coordinates after all
repeated message occurrences have been merged.
Parameters
| Name | Description |
|---|---|
| input | Complete uncompressed HeaderBlock payload bytes. |
| header | Receives the zero-copy decoded view on success. |
| status | Receives success or a precise structural/wire failure. |
Returns
true when the HeaderBlock is structurally valid; false otherwise.
Notes
Required-feature compatibility is deliberately evaluated separately by
osm. Structural decoding alone does not claim that the
caller understands every feature required by the file.