Skip to content

serializePriorityQueue<K, V>(queue, keyCodec, valueCodec, options?): Uint8Array

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

Serialize a priority queue into parallel key and value runs in exact internal entry order. The key order remains outside the artifact.

K

V

PriorityQueue<K, V>

ElementCodec<K>

ElementCodec<V>

SerializeHeapOptions

Uint8Array

With FOREIGN_STRUCTURE, MISSING_ELEMENT_CODEC, INVALID_CODEC_RESULT, NON_INJECTIVE_CODEC, or SERIALIZATION_LIMIT_EXCEEDED when the input cannot be represented.