def record.put.value.length.read

mylsm-lsm-store@0.6.0.1 · src/ByteWal.bend:285

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

285# Reads and parses a put's value length from its source frame.
286def record.put.value.length.read(
287  pair: Bytes.Bytes & Maybe<&2, U32>,
288  key: Bytes.Bytes,
289  value_length_offset: U32
290) -> DecodedRecord:
291  match pair:
292    case (frame, value_length):
293      record.put.value.length(frame, key, value_length, value_length_offset)

Uses (7)

Used by (1)