def encode

mylsm-lsm-store@0.6.0.1 · src/ByteWal.bend:131

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

131# Encodes a byte batch with the existing bounded frame checksum policy.
132def encode(batch: Batch) -> Result<&1, &1, Wal.Error, Bytes.Bytes>:
133  match batch:
134    case Batch{mutations}:
135      encode.records(records(mutations))

Uses (6)

Used by (6)