def frame.bound.count

mylsm-lsm-store@0.6.0.1 · src/Wal.bend:482

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

482def frame.bound.count(
483  pair: Bytes.Cursor & Maybe<&2, U32>,
484  +frame_len: U32,
485  within: Bool
486) -> Result<&1, &1, Error, Batch>:
487  match pair:
488    case (_, None{}):
489      Fail{Malformed{}}
490    case (cursor, Some{+count}):
491      frame.bound.checked(cursor, count,
492        frame.bound.valid(frame_len, count, within))

Uses (11)

Used by (1)