def item.key.bound
import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend as CursorCodecimport 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))