Skip to content

deserializePriorityQueue<K, V>(value, keyOrder, options): PriorityQueue<K, V>

Defined in: packages/heap/src/serialization/binary.ts:302

Restore a priority queue from canonical binary bytes after staging both runs, rejecting duplicate decoded values, and validating key order.

K

V

unknown

Order<K>

DeserializePriorityQueueOptions<K, V>

PriorityQueue<K, V>

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

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