def field.read
import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorOpenCodec.bend as CursorOpenCodecimport Base
import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
202# Parses one optional bound length from the supplied offset.
203def field.read(
204 payload: Bytes.Bytes,
205 total: U32,
206 offset: U32
207) -> BoundResult:
208 field.read.copies(ByteMemTable.bytes.clone(payload), total,
209 u32.duplicate.pair(offset))