Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / encodeCheckpoint

Function: encodeCheckpoint()

ts
function encodeCheckpoint(state): Uint8Array;

Defined in: packages/core/src/journal/checkpoint.ts:76

Serializes a checkpoint to its blob: format byte then UTF-8 JSON.

Parameters

ParameterType
stateCheckpointState

Returns

Uint8Array