def encode_frame

mylsm-lsm-store@0.6.0.1 · src/Wal.bend:316

import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

316# Encode frame for the packed WAL codec.
317def encode_frame(batch: Batch) -> Result<&1, &1, Error, Bytes.Bytes>:
318  match batch:
319    case Batch{+muts}:
320      frame.payload(U32.from_nat(List.length(&2, Mut, muts)), records(muts))

Uses (9)

Used by (0)

No other definition uses this definition.