Skip to content

Defined in: packages/heap/src/serialization/families/k-heap.ts:20

A plain, inert snapshot of a k-ary heap, adding the layout’s arity. Restoring requires the same arity the heap was built with; it is validated as a safe integer of at least 2 exactly like the factory argument.

A

readonly schemaVersion: 1

Defined in: packages/heap/src/serialization/families/k-heap.ts:22

Wire-schema version.


readonly kind: "k-min" | "k-max"

Defined in: packages/heap/src/serialization/families/k-heap.ts:24

The storage layout and extraction direction to restore.


readonly arity: number

Defined in: packages/heap/src/serialization/families/k-heap.ts:26

Children per node, as the factory fixed it.


readonly nodes: readonly A[]

Defined in: packages/heap/src/serialization/families/k-heap.ts:28

The internal node array, in exact internal heap order.