Skip to content

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.

V

unknown

DeserializeSegmentedTrieOptions<V>

SegmentedTrie<V>

With MISSING_ELEMENT_CODEC when options.codec is absent, which is a caller-contract violation rather than a decode failure.

For malformed bytes, unsupported versions, noncanonical node or string tables, invalid values, or decode-budget violations.