def frame.bound.end
mylsm-lsm-store@0.6.0.1 · src/Wal.bend:522
import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal
import Base
import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
522def frame.bound.end(
523 cursor: Bytes.Cursor,
524 +frame_len: U32
525) -> Result<&1, &1, Error, Batch>:
526 match cursor:
527 case Bytes.Cursor{bytes, +pos, +start, +end}:
528 frame.bound.total(Bytes.Cursor{bytes, pos, start, end},
529 frame_len, end, StorageBytes.checked_add(frame_len, 4))