def record.value.length

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

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

223# Parses the value length and validates its exact byte range.
224def record.value.length(
225  frame: Bytes.Bytes,
226  value_length: Maybe<&2, U32>,
227  +value_offset: U32
228) -> DecodedRecord:
229  match value_length:
230    case None{}:
231      record.malformed(frame)
232    case Some{+length}:
233      record.value.length.checked(Bytes.length(frame), length, value_offset)

Uses (7)

Used by (0)

No other definition uses this definition.