Skip to content

serializeSortedBlock(block, options?): Uint8Array

Defined in: packages/sorted-block/src/serialization.ts:64

Serialize a block into binary bytes that restore the same entries and layout.

The block payload is written unchanged — prefix-compressed entries, the restart table, and the trailer — inside a knotkit/wire envelope with a producer version. Runs in O(byteLength).

SortedBlock

SerializeSortedBlockOptions

Uint8Array

With FOREIGN_SORTED_BLOCK when block was not produced by this package, or MAX_CAPACITY_EXCEEDED when the runtime cannot allocate the artifact.