def field.read

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

import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorOpenCodec.bend as CursorOpenCodec
import 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))

Uses (6)

Used by (3)