def item.key.bound

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

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

235# Accepts key lengths that leave a complete value length word.
236def item.key.bound(
237  payload: Bytes.Bytes,
238  size: U32,
239  key_length: U32
240) -> Decision:
241  item.key.bound.compare(payload, size, u32.duplicate(key_length))

Uses (5)

Used by (1)