def measure.block.checksum

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

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

1337def measure.block.checksum(
1338  block: Bytes.Bytes,
1339  +payload_length: U32
1340) -> Bytes.Bytes & Bool:
1341  +digest_offset = U32.add(8, payload_length)
1342  measure.block.checksum.prefix(Bytes.slice(block, 0, digest_offset),
1343    digest_offset)

Uses (7)

Used by (1)