def blocks.measure.length

mylsm-lsm-store@0.6.0.1 · src/SstFile.bend:220

import mylsm-lsm-store@0.6.0.1/src/SstFile.bend as SstFile
import Base
import mylsm-lsm-store@0.6.0.1/src/StorageBytes.bend as StorageBytes

220# Measure an already encoded record for byte-bounded block packing.
221def blocks.measure.length(+length: U32, +size: U32) -> BlockMeasure:
222  Measured{length, U32.is_eq(size, 0) ||
223    U32.is_le((size + length : U32), StorageBytes.MAX_BLOCK_BYTES())}

Uses (7)

Used by (1)