package odig

  1. Overview
  2. Docs

Digests.

Digests

include module type of Digest
type t = string
val compare : t -> t -> int
val equal : t -> t -> bool
val string : string -> t
val bytes : bytes -> t
val substring : string -> int -> int -> t
val subbytes : bytes -> int -> int -> t
val channel : Pervasives.in_channel -> int -> t
val output : Pervasives.out_channel -> t -> unit
val input : Pervasives.in_channel -> t
val to_hex : t -> string
val from_hex : string -> t
val file : Fpath.t -> (t, [ `Msg of string ]) Pervasives.result

file f is the digest of file f.

val mtimes : Fpath.t list -> (t, [ `Msg of string ]) Pervasives.result

mtimes ps is a digest of the mtimes of ps. The ps list sorted with Fpath.compare.

OCaml

Innovation. Community. Security.