def decode.frame.header
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
938# Validates record payload and checksum after parsing a bounded frame header.
939def decode.frame.header(header: FrameHeader) -> Result<&1, &1, Wal.Error, Batch>:
940 match header:
941 case FrameHeader{frame, _, +count, +total}:
942 decode.frame.copies(Wal.bytes.clone.split(frame), count, total)