def frame.bound.length
import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Walimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
532def frame.bound.length(
533 pair: Bytes.Cursor & Maybe<&2, U32>
534) -> Result<&1, &1, Error, Batch>:
535 match pair:
536 case (_, None{}):
537 Fail{Malformed{}}
538 case (cursor, Some{+frame_len}):
539 frame.bound.end(cursor, frame_len)