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
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
FieldHeader
|
Decoded protobuf field key together with its source offset. |
Enums
| Name | Description |
|---|---|
WireType
|
Protobuf wire types encoded in the low three bits of a field key. |