def prefix.decode.totals

mylsm-lsm-store@0.6.0.1 · src/coordinator/CursorOpenCodec.bend:308

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

308# Parses prefix bounds with separate lengths for reading and validation.
309def prefix.decode.totals(
310  payload: Bytes.Bytes,
311  snapshot_id: U32,
312  totals: U32 & U32
313) -> Decision:
314  match totals:
315    case (read_total, finish_total):
316      prefix.finish(field.read(payload, read_total, 8), snapshot_id, finish_total)

Uses (7)

Used by (1)