Hash.T
The type for hash functions.
val id : string
id is an US-ASCII string identifying the hash function.
id
val length : int
length is the byte length of hashes produced by the function.
length
val string : string -> t
string s is the hash of s.
string s
s
val fd : Unix.file_descr -> t
fd fd mmap(2)s and hashes the object pointed by fd.
fd fd
mmap(2)
fd
Sys_error
if mmap fails.
mmap
val file : Fpath.t -> (t, string) Stdlib.result
file f is the hash of file f.
file f
f