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

NameTypeDescription
bbox HeaderBBoxViewMerged HeaderBBox value when hasBBox is true.
hasBBox boolWhether at least one correctly encoded bbox occurrence was present.
hasReplicationBaseUrl boolWhether osmosis_replication_base_url was present.
hasReplicationSequenceNumber boolWhether osmosis_replication_sequence_number was present.
hasReplicationTimestamp boolWhether osmosis_replication_timestamp was present.
hasSource boolWhether source was present.
hasWritingProgram boolWhether writingprogram was present.
raw const(ubyte)[]Complete serialized HeaderBlock, including unknown fields and duplicates.
replicationBaseUrl const(ubyte)[]Last replication base URL value.
replicationSequenceNumber longLast Osmosis replication sequence number.
replicationTimestamp longLast 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

NameTypeDescription
optionalFeatures[get] HeaderFeatureRangeReturns the optional feature occurrences in original wire order.
requiredFeatures[get] HeaderFeatureRangeReturns the required feature occurrences in original wire order.