def record.size.put

mylsm-lsm-store@0.6.0.1 · src/ByteSstFile.bend:330

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

330# Measures one put record without allocating its serialized bytes.
331def record.size.put(+key_len: U32, value: Bytes.Bytes & U32) -> Nat:
332  match value:
333    case (_, +value_len):
334      Nat.add(9n, Nat.add(U32.to_nat(key_len), U32.to_nat(value_len)))

Uses (7)

Used by (1)