Skip to content

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.

A

unknown

Order<A>

DeserializeHeapOptions<A>

Heap<A>

With MISSING_ELEMENT_CODEC when options.codec is absent, which is a caller contract rather than a property of the bytes.

For malformed bytes, unsupported versions, invalid codec results, invalid arity, heap-invariant violations, or decode-budget violations.