def measure.block.checksum
import mylsm-lsm-store@0.6.0.1/src/ByteSstFile.bend as ByteSstFileimport 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)