def item.key.bound.read

mylsm-lsm-store@0.6.0.1 · src/coordinator/CursorCodec.bend:177

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

177# Checks that the key length leaves room for the value length word.
178def item.key.bound.read(
179  read: Bytes.Bytes & Maybe<&2, U32>,
180  size: U32,
181  key_length: U32
182) -> Decision:
183  match read:
184    case (payload, parsed):
185      item.value.length(payload, size, key_length, parsed)

Uses (7)

Used by (1)