package pcrc

  1. Overview
  2. Docs

Module type Pcrc.SSource

Signature of a complete CRC implementation module.

Sourcetype t

CRC checksum value.

Sourceval string : ?pos:int -> ?len:int -> string -> t

string s computes CRC of the string s data.

  • parameter pos

    offset to start reading the string data (0 if unspecified)

  • parameter len

    how many elements (bytes) of the string to read (if unspecified, read to the end of string)

Sourceval bytes : ?pos:int -> ?len:int -> bytes -> t

Like string function but for bytes data.

Sourceval bigarray : ?pos:int -> ?len:int -> ('a, 'b, 'c) Bigarray.Array1.t -> t

Like bytes function, but for one-dimensional Bigarray data.

Sourcemodule Update : sig ... end

Streaming interface for CRC computations.