def check.crc.of
import bend-kit-archive@0.5.1.0/archive.bend as Archiveimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
280def check.crc.of(ok: Bool, b: Bytes.Bytes) -> Result<&1, &1, U32 & String, Bytes.Bytes>:
281 match ok:
282 case True{}:
283 Done{b}
284 case False{}:
285 Fail{(22, "entry CRC-32 does not match")}