def encode
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWalimport 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)
- mylsm-lsm-store@0.6.0.1/src/transfer/Backup:block.encoded
- mylsm-lsm-store@0.6.0.1/src/ByteDurableDb:write.encoded
- mylsm-lsm-store@0.6.0.1/src/ByteSstFile:encode.page.frame.counted
- mylsm-lsm-store@0.6.0.1/src/ByteSstFile:parse.block.frame.order
- mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient:write_batch
- …