R
fn

encodeOps

tested

Encode a batch of ops (the delta or a full snapshot).

Signature

ts
export function encodeOps<Op>(ops: readonly Op[]): Uint8Array{ ... }

Type Parameters

Op

Parameters

ParameterTypeDescription
opsreadonly Op[]

Returns

Uint8Array<ArrayBufferLike>