Function buildStringTableView

Build an indexed zero-copy StringTable view into caller-owned workspace.

bool buildStringTableView(
  ref const(PrimitiveBlockLayout) layout,
  StringRef[] workspace,
  out StringTableView table,
  out PbfStatus status
) nothrow @nogc @safe;

The supplied layout must come from decodePrimitiveBlockLayout. Workspace must contain at least layout.stringCount elements. The function rescans only StringTable fields and fills one compact StringRef per merged s occurrence in protobuf wire order.

Parameters

NameDescription
layout Validated PrimitiveBlock first-pass layout.
workspace Caller-owned index storage, typically from a block arena.
table Receives the indexed borrowed view on success.
status Receives success, insufficient workspace, or a defensive wire failure if the supplied layout is inconsistent.

Returns

true when every StringTable entry was indexed; false otherwise.