Struct BlobView

Borrowed validated view of one serialized OSMPBF Blob message.

struct BlobView;

Fields

NameTypeDescription
codec BlobCodecActive, unambiguous payload representation.
hasRawSize boolWhether protobuf field 2 (raw_size) was explicitly present.
payload const(ubyte)[]Borrowed bytes from the active payload field.
payloadOffset ulongOffset of the active payload field key inside raw.
raw const(ubyte)[]Complete serialized Blob bytes, including unknown fields.
rawSize uintValidated uncompressed size in bytes.
rawSizeOffset ulongOffset of the final correctly encoded raw_size field key.

Properties

NameTypeDescription
compressed[get] boolReturn whether the active representation is compressed.
payloadFieldNumber[get] uintReturn the protobuf field number of the active payload.