Module osm.wire.cursor

Bounded slice-backed cursor over const-qualified protobuf input bytes.

WireCursor keeps the unread portion of its borrowed input as a normal D slice. Reads, skips, and takes advance that slice only after checking that enough bytes remain. No raw pointer is stored by the cursor.

The benchmark-critical accessors and byte-read primitive are explicitly marked for cross-module inlining. Controlled LDC measurements showed that this is required to avoid a large library-boundary penalty in the varint hot path. See docs/adr/0008-slice-backed-wire-cursor.md.

Date

2026-09-12

Structs

NameDescription
WireCursor Mutable read cursor over one borrowed const-qualified wire buffer.