Module type B0_std.Hash.T

module type T = sig .. end

The type for hash functions.


Hash function

val id : string

id is an US-ASCII string identifying the hash function.

val length : int

length is the byte length of hashes produced by the function.

val string : string -> B0_std.Hash.t

string s is the hash of s.

val fd : Unix.file_descr -> B0_std.Hash.t

fd fd mmap(2)s and hashes the object pointed by fd.

val file : B0_std.Fpath.t -> (B0_std.Hash.t, string) Stdlib.result

file f is the hash of file f.