def block.checksum.sized.validated

mylsm-lsm-store@0.6.0.1 · src/transfer/Restore.bend:204

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

204def block.checksum.sized.validated(
205  block: Bytes.Bytes,
206  hash_length: U32,
207  valid: Bool
208) -> Bool:
209  match valid:
210    case False{}: False{}
211    case True{}:
212      block.checksum.copies(hash_length, clone.split(block))

Uses (5)

Used by (1)