Call Signature
Section titled “Call Signature”serializeDisjointSet(
set,options?):Uint8Array
Defined in: packages/disjoint-set/src/serialization/binary.ts:92
Serialize a partition into canonical binary bytes. Growable layouts require an injective codec; indexed layouts synthesize their dense elements.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC,
INVALID_CODEC_RESULT, NON_INJECTIVE_CODEC, or
SERIALIZATION_LIMIT_EXCEEDED when the input cannot be represented safely.
Call Signature
Section titled “Call Signature”serializeDisjointSet<
T>(set,codec,options?):Uint8Array
Defined in: packages/disjoint-set/src/serialization/binary.ts:93
Serialize a partition into canonical binary bytes. Growable layouts require an injective codec; indexed layouts synthesize their dense elements.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”ElementCodec<T>
options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC,
INVALID_CODEC_RESULT, NON_INJECTIVE_CODEC, or
SERIALIZATION_LIMIT_EXCEEDED when the input cannot be represented safely.