deserializeHeap<
A>(value,order,options):Heap<A>
Defined in: packages/heap/src/serialization/binary.ts:169
Restore a heap from canonical binary bytes after staging and validating every node. The supplied order must match the order used at construction.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”unknown
Order<A>
options
Section titled “options”Returns
Section titled “Returns”Heap<A>
Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC when
options.codec is absent, which is a caller contract rather than a
property of the bytes.
Throws
Section titled “Throws”For malformed bytes, unsupported versions, invalid codec results, invalid arity, heap-invariant violations, or decode-budget violations.