package checkseum
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=02aad775eece3a04911d4a4552b5f0fdcebfc3e2569b61e23d2c7ce33865967f
sha512=7bdef1d2bcb92acecfe2bcad03aebb27762a5d674c99d3f683c253e744879bd01c612ae29cf03cd85f1edad9aa3032f668d176cda833ef7c0a2e2a3687cff1e2
Description
Checkseum is a library to provide implementation of Adler-32, CRC32 and CRC32-C in C and OCaml.
This library use the linking trick to choose between the C implementation (checkseum.c) or the OCaml implementation (checkseum.ocaml). This library is on top of optint to get the best representation of an int32.
Published: 14 Aug 2019
README
Checkseum
Chekseum is a library which implements ADLER-32 and CRC32C Cyclic Redundancy Check. It provides 2 implementation, the first in C and the second in OCaml. The library is on top of optint
to get the best representation of the CRC in the OCaml world.
Then, as digestif
, checkseum
uses the linking trick. So if you want to use checkseum
in a library, you can link with the checkseum
package which does not provide an implementation. Then, end-user can choose between the C implementation or the OCaml implementation (both work on Mirage).
Of course, you can link directly to checkseum.c
or checkseum.ocaml
if you want to make an executable directly.
Build Requirements
OCaml >= 4.03.0
base-bytes
base-bigarray
dune
to buildoptint
Dependencies (8)
- cmdliner
- rresult
- fmt
- bigarray-compat
- base-bytes
-
optint
< "0.0.5"
-
dune
>= "1.9.2" & < "2.6"
-
ocaml
>= "4.03.0"
Dev Dependencies (1)
-
alcotest
with-test
Used by (8)
-
albatross
< "2.2.0"
-
decompress
>= "0.8" & < "1.0.0"
-
esperanto-cosmopolitan
>= "0.0.5"
-
git
= "2.0.0" | >= "2.1.1" & < "3.0.0"
-
irmin-pack
>= "3.5.0"
- octez-internal-libs
- oneffs
-
rfc1951
< "1.0.0" | >= "1.4.0"
Conflicts (3)
-
mirage-runtime
>= "4.0.0"
-
ocaml-freestanding
< "0.4.1"
-
mirage-xen-posix
< "3.1.0"