def check.crc.of

bend-kit-archive@0.5.1.0 · archive.bend:280

import bend-kit-archive@0.5.1.0/archive.bend as Archive
import 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")}

Uses (7)

Used by (1)