Skip to content

deserializeDisjointSet<T>(value, options): GrowableDisjointSet<T>

Defined in: packages/disjoint-set/src/serialization/binary.ts:154

Restore a canonical binary partition after validating all geometry, counts, codec results, and duplicate elements into staging arrays.

An indexed artifact restored through a growable factory receives the dense numeric elements 0..size - 1.

T

unknown

DeserializeDisjointSetOptions<T> & object

GrowableDisjointSet<T>

For malformed bytes, unsupported versions, invalid codec results, duplicate elements, or decode-budget violations. Distinguish causes with error.code.

With MISSING_ELEMENT_CODEC when a growable artifact is decoded without the codec that produced it.

deserializeDisjointSet<T>(value, options): IndexedDisjointSet | GrowableDisjointSet<T>

Defined in: packages/disjoint-set/src/serialization/binary.ts:161

Restore a canonical binary partition after validating all geometry, counts, codec results, and duplicate elements into staging arrays.

An indexed artifact restored through a growable factory receives the dense numeric elements 0..size - 1.

T

unknown

DeserializeDisjointSetOptions<T> & object

IndexedDisjointSet | GrowableDisjointSet<T>

For malformed bytes, unsupported versions, invalid codec results, duplicate elements, or decode-budget violations. Distinguish causes with error.code.

With MISSING_ELEMENT_CODEC when a growable artifact is decoded without the codec that produced it.

deserializeDisjointSet(value, options?): IndexedDisjointSet | GrowableDisjointSet<number>

Defined in: packages/disjoint-set/src/serialization/binary.ts:165

Restore a canonical binary partition after validating all geometry, counts, codec results, and duplicate elements into staging arrays.

An indexed artifact restored through a growable factory receives the dense numeric elements 0..size - 1.

unknown

DeserializeDisjointSetOptions<number>

IndexedDisjointSet | GrowableDisjointSet<number>

For malformed bytes, unsupported versions, invalid codec results, duplicate elements, or decode-budget violations. Distinguish causes with error.code.

With MISSING_ELEMENT_CODEC when a growable artifact is decoded without the codec that produced it.