Module osm.wire.field

Protobuf field-key and primitive field-value handling.

This module deliberately stops below generated-message semantics. It knows protobuf field numbers and wire types, but nothing about OSM or OSMPBF message schemas.

Date

2026-09-12

Functions

NameDescription
readFieldHeader(cursor, header, status) Decode one protobuf field key.
readLengthDelimited(cursor, fieldNumber, bytes, status) Read a length-delimited field payload as a borrowed slice.
readLengthDelimitedCursor(cursor, fieldNumber, ok, status) Read a length-delimited field payload as a borrowed child cursor.
skipFieldValue(cursor, header, status) Skip one primitive protobuf field value.

Structs

NameDescription
FieldHeader Decoded protobuf field key together with its source offset.

Enums

NameDescription
WireType Protobuf wire types encoded in the low three bits of a field key.