def item.value.key.sliced

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

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

97# Creates the value slice from the source retained by the key slice.
98def item.value.key.sliced(
99  pair: Bytes.Bytes & Bytes.Bytes,
100  value_offset: U32,
101  value_length: U32
102) -> Decision:
103  match pair:
104    case (source, key):
105      item.value.paired(Bytes.slice(source, value_offset, value_length), key)

Uses (7)

Used by (1)