def measure.block.checksum.prefix

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

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

1327def measure.block.checksum.prefix(
1328  pair: Bytes.Bytes & Bytes.Bytes,
1329  +digest_offset: U32
1330) -> Bytes.Bytes & Bool:
1331  match pair:
1332    case (frame, prefix):
1333      measure.block.checksum.claimed(
1334        Bytes.slice(frame, digest_offset, 32),
1335        SHA.sha256_packed_bytes(prefix))

Uses (8)

Used by (1)