Extends Core_kernel.Md5
.
include module type of sig ... end
module Stable = Core_kernel__Md5.Stable
val t_of_sexp : Base.Sexp.t ‑> t
val sexp_of_t : t ‑> Base.Sexp.t
val clamp : t ‑> min:t ‑> max:t ‑> t Base.Or_error.t
val comparator : (t, comparator_witness) Base.Comparator.comparator
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
module Map = Core_kernel__Md5.Map
module Set = Core_kernel__Md5.Set
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 bin_t : t Bin_prot.Type_class.t
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 hashable : t Core_kernel.Hashtbl.Hashable.t
module Table = Core_kernel__Md5.Table
module Hash_set = Core_kernel__Md5.Hash_set
module Hash_queue = Core_kernel__Md5.Hash_queue
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 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_bin_prot : 'a Bin_prot.Type_class.writer ‑> 'a ‑> 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
.