def put.bound.result

mylsm-lsm-store@0.6.0.1 · src/coordinator/Operation.bend:74

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

74def put.bound.result(
75  valid: Bool,
76  payload: Bytes.Bytes,
77  key_lengths: U32 & U32,
78  value_lengths: U32 & U32
79) -> Decision:
80  match valid:
81    case False{}: MalformedArguments{}
82    case True{}:
83      put.sliced(ByteMemTable.bytes.clone(payload), key_lengths, value_lengths)

Uses (7)

Used by (1)