package checkseum

  1. Overview
  2. Docs
Adler-32, CRC32 and CRC32-C implementation in C and OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

checkseum-0.5.4.tbz
sha256=09f96d50dbd74e87ca46a0be5efbe53f5f88dab0054f3d0ff9040f80e916a7f0
sha512=32bff7652c90cce7e7ee54b65c175abd8cfed345a4c82970ec5c2388d100a840d4ccd607059d65b1f452520653f0fd0b416176be0abb0f734a7e8f2e3f665df8

doc/src/checkseum.ocaml/checkseum.ml.html

Source file checkseum.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type bigstring =
  (char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t

module type S = sig
  type t = Optint.t

  val pp : Format.formatter -> t -> unit
  val equal : t -> t -> bool
  val default : t
  val digest_bytes : Bytes.t -> int -> int -> t -> t
  val unsafe_digest_bytes : Bytes.t -> int -> int -> t -> t
  val digest_string : String.t -> int -> int -> t -> t
  val unsafe_digest_string : String.t -> int -> int -> t -> t
  val digest_bigstring : bigstring -> int -> int -> t -> t
  val unsafe_digest_bigstring : bigstring -> int -> int -> t -> t
  val to_int32 : t -> int32
  val of_int32 : int32 -> t
end

module Adler32 : S = Gin_adler32
module Crc32c : S = Gin_crc32c
module Crc32 : S = Gin_crc32
module Crc24 : S = Gin_crc24