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.
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”unknown
keyOrder
Section titled “keyOrder”Order<K>
options
Section titled “options”DeserializePriorityQueueOptions<K, V>
Returns
Section titled “Returns”PriorityQueue<K, V>
Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC when
options.keyCodec or options.valueCodec 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, duplicate values, invalid arity, heap-invariant violations, or decode-budget violations.