Module osm.io.pbf.string_table
Indexed zero-copy view of merged OSMPBF StringTable entries.
PrimitiveBlock decoding first validates and counts all StringTable entries.
This module then fills caller-owned StringRef storage with compact offsets
and lengths into the original PrimitiveBlock. No string bytes are copied and
no GC allocation is performed.
Date
2026-09-12
Functions
| Name | Description |
|---|---|
buildStringTableView(layout, workspace, table, status)
|
Build an indexed zero-copy StringTable view into caller-owned workspace. |
Structs
| Name | Description |
|---|---|
StringRef
|
Compact location of one StringTable entry inside a PrimitiveBlock. |
StringTableView
|
O(1) indexed borrowed view of the merged PrimitiveBlock StringTable. |