def field.sized.decision

mylsm-lsm-store@0.6.0.1 · src/coordinator/CursorOpenCodec.bend:93

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

93# Selects a bounded raw-byte slice or rejects a span beyond the frame.
94def field.sized.decision(
95  payload: Bytes.Bytes,
96  offset: U32,
97  length: U32,
98  fits: Bool
99) -> BoundResult:
100  field.sized.checked(payload,
101    u32.duplicate.triple(offset), u32.duplicate.pair(length), fits)

Uses (7)

Used by (1)