Struct StringTableView

O(1) indexed borrowed view of the merged PrimitiveBlock StringTable.

struct StringTableView;

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

NameTypeDescription
entries const(StringRef)[]Compact offsets/lengths for merged StringTable entries.
rawBlock const(ubyte)[]Complete serialized PrimitiveBlock containing all referenced bytes.

Properties

NameTypeDescription
empty[get] boolReturns true when the table contains no entries.
length[get] ulongReturns the number of indexed strings.

Methods

NameDescription
get (index, value) Borrow one StringTable entry by numeric string ID.