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).
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With FOREIGN_SORTED_BLOCK when block was not produced by this package, or
MAX_CAPACITY_EXCEEDED when the runtime cannot allocate the artifact.