Skip to content

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.

IndexedDisjointSet

SerializeDisjointSetOptions

Uint8Array

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

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.

T

GrowableDisjointSet<T>

ElementCodec<T>

SerializeDisjointSetOptions

Uint8Array

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