Module Core.Md5

include module type of sig ... end
type t = Stable.V1.t
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
val (>=) : t ‑> t ‑> bool
val (<=) : t ‑> t ‑> bool
val (=) : t ‑> t ‑> bool
val (>) : t ‑> t ‑> bool
val (<) : t ‑> t ‑> bool
val (<>) : t ‑> t ‑> bool
val equal : t ‑> t ‑> bool
val min : t ‑> t ‑> t
val max : t ‑> t ‑> t
val ascending : t ‑> t ‑> int
val descending : t ‑> t ‑> int
val between : t ‑> low:t ‑> high:t ‑> bool
val clamp_exn : t ‑> min:t ‑> max:t ‑> t
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.t
type comparator_witness = Core_kernel__Md5.comparator_witness
val validate_lbound : min:t Base.Maybe_bound.t ‑> t Base.Validate.check
val validate_ubound : max:t Base.Maybe_bound.t ‑> t Base.Validate.check
val validate_bound : min:t Base.Maybe_bound.t ‑> max:t Base.Maybe_bound.t ‑> t Base.Validate.check
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int ‑> t) Bin_prot.Read.reader
val bin_shape_t : Bin_prot.Shape.t
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_reader_t : t Bin_prot.Type_class.reader
val compare : t ‑> t ‑> Core_kernel__.Import.int
val hash_fold_t : Base.Hash.state ‑> t ‑> Base.Hash.state
val hash : t ‑> Base.Hash.hash_value
val digest_num_bytes : int
val to_binary : t ‑> string
val of_binary_exn : string ‑> t
val to_hex : t ‑> string
val of_hex_exn : string ‑> t
val digest_string : string ‑> t
val digest_bytes : bytes ‑> t
val digest_subbytes : bytes ‑> pos:int ‑> len:int ‑> t
val digest_file_blocking_without_releasing_runtime_lock : string ‑> t
val digest_channel_blocking_without_releasing_runtime_lock : Pervasives.in_channel ‑> len:int ‑> t
val input_blocking : Pervasives.in_channel ‑> t
val output_blocking : t ‑> Pervasives.out_channel ‑> unit
val string : string ‑> t
val bytes : bytes ‑> t
val subbytes : bytes ‑> int ‑> int ‑> t
val from_hex : string ‑> t
val file : string ‑> t
val channel : Pervasives.in_channel ‑> int ‑> t
val output : Pervasives.out_channel ‑> t ‑> unit
val input : Pervasives.in_channel ‑> t
val digest_fd_blocking : Core__.Core_unix.File_descr.t ‑> t

This is similar to digest_channel_blocking_without_releasing_runtime_lock with a difference that this releases the OCaml lock for its whole duration. Therefore, this can run in parallel with other OCaml threads and can be meaningfully used in In_thread.run.

The file descriptor must be open for reading and not be nonblocking, otherwise the function might fail non-deterministically.

val digest_file_blocking : string ‑> t

This function is equivalent in behavior to digest_file_blocking_without_releasing_runtime_lock, except this releases the OCaml lock for its whole duration. Therefore, this can run in parallel with other OCaml threads and can be meaningfully used in In_thread.run.