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:94

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

Parameters ​

ParameterType
stateCheckpointState

Returns ​

Uint8Array