Struct HeaderBlockView
Borrowed semantic view of a structurally valid OSMPBF HeaderBlock.
struct HeaderBlockView;
Every byte slice borrows raw. Presence flags distinguish an absent optional
field from a present field carrying its protobuf default/empty value.
Fields
| Name | Type | Description |
|---|---|---|
bbox
|
HeaderBBoxView | Merged HeaderBBox value when hasBBox is true.
|
hasBBox
|
bool | Whether at least one correctly encoded bbox occurrence was present.
|
hasReplicationBaseUrl
|
bool | Whether osmosis_replication_base_url was present.
|
hasReplicationSequenceNumber
|
bool | Whether osmosis_replication_sequence_number was present.
|
hasReplicationTimestamp
|
bool | Whether osmosis_replication_timestamp was present.
|
hasSource
|
bool | Whether source was present.
|
hasWritingProgram
|
bool | Whether writingprogram was present.
|
raw
|
const(ubyte)[] | Complete serialized HeaderBlock, including unknown fields and duplicates. |
replicationBaseUrl
|
const(ubyte)[] | Last replication base URL value. |
replicationSequenceNumber
|
long | Last Osmosis replication sequence number. |
replicationTimestamp
|
long | Last replication timestamp value in seconds since the Unix epoch. |
source
|
const(ubyte)[] | Last correctly encoded source value.
|
writingProgram
|
const(ubyte)[] | Last correctly encoded writingprogram value.
|
Properties
| Name | Type | Description |
|---|---|---|
optionalFeatures[get]
|
HeaderFeatureRange | Returns the optional feature occurrences in original wire order. |
requiredFeatures[get]
|
HeaderFeatureRange | Returns the required feature occurrences in original wire order. |