deserializeSegmentedTrie<
V>(value,options):SegmentedTrie<V>
Defined in: packages/trie/src/serialization/binary.ts:164
Restore a binary segmented trie after validating its complete node graph, resolved keys, codec results, and decode budgets in staging data.
A factory override preserves exact entry order across layouts because node rows and terminal values are emitted in depth-first iteration order.
Type Parameters
Section titled “Type Parameters”V
Parameters
Section titled “Parameters”unknown
options
Section titled “options”DeserializeSegmentedTrieOptions<V>
Returns
Section titled “Returns”Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC when
options.codec is absent, which is a caller-contract violation rather than a
decode failure.
Throws
Section titled “Throws”For malformed bytes, unsupported versions, noncanonical node or string tables, invalid values, or decode-budget violations.