package odig

  1. Overview
  2. Docs

Compilation object 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 file : string -> 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 pp : Format.formatter -> t -> unit

pp ppf d prints the digest d as an hexadecimal string.

val pp_opt : Format.formatter -> t option -> unit

pp_opt ppf od prints the optional digest od either like pp or, for None as dashes.

module Set : Asetmap.Set.S with type elt = t
type set = Set.t

The type for digest sets.

module Map : Asetmap.Map.S_with_key_set with type key_set = Set.t and type key = t
type 'a map = 'a Map.t

The type for digest maps.

OCaml

Innovation. Community. Security.