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.
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”PriorityQueue<K, V>
keyCodec
Section titled “keyCodec”ElementCodec<K>
valueCodec
Section titled “valueCodec”ElementCodec<V>
options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With FOREIGN_STRUCTURE,
MISSING_ELEMENT_CODEC, INVALID_CODEC_RESULT, NON_INJECTIVE_CODEC, or
SERIALIZATION_LIMIT_EXCEEDED when the input cannot be represented.