def decode

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

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

964# Decodes a generation-four WAL frame, rejecting malformed lengths and checksums.
965def decode(frame: Bytes.Bytes) -> Result<&1, &1, Wal.Error, Batch>:
966  decode.frame.header.result(decode.frame.length(Bytes.length(frame)))

Uses (7)

Used by (7)