Struct StringTableView
O(1) indexed borrowed view of the merged PrimitiveBlock StringTable.
entries borrows caller-owned index storage supplied to
buildStringTableView; rawBlock borrows the original PrimitiveBlock.
Neither may be invalidated while this view is in use.
Fields
| Name | Type | Description |
entries
|
const(StringRef)[] | Compact offsets/lengths for merged StringTable entries.
|
rawBlock
|
const(ubyte)[] | Complete serialized PrimitiveBlock containing all referenced bytes.
|
Properties
| Name | Type | Description |
empty[get]
|
bool | Returns true when the table contains no entries.
|
length[get]
|
ulong | Returns the number of indexed strings.
|
Methods
| Name | Description |
get
(index, value)
|
Borrow one StringTable entry by numeric string ID.
|