def field.read.parsed

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

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

179# Parses one optional bound length from the supplied offset.
180def field.read.parsed(
181  payload: Bytes.Bytes,
182  total: U32,
183  offset: U32,
184  pair: Bytes.Bytes & Maybe<&2, U32>
185) -> BoundResult:
186  match pair:
187    case (_, parsed): field.length(payload, total, offset, parsed)

Uses (7)

Used by (1)