def item.value.bound

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

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

146# Duplicates lengths for exact validation and the returned value slice.
147def item.value.bound(
148  payload: Bytes.Bytes,
149  size: U32,
150  key_length: U32,
151  value_length: U32
152) -> Decision:
153  item.value.bound.compare(payload, size, u32.duplicate(key_length),
154    u32.duplicate(value_length))

Uses (5)

Used by (1)