package ocaml-solo5-cross-aarch64
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=00e5f51d0ce72f7517f3b2a7f910c572
sha512=91f349384a8864076c3d1b0ce3f4e94aa54900cf51e2471d21427bb25cbffac606bcd754fa545f4b2c4516ea2b0731cb580ab30bdf1911c9e47ee24d7c88c863
doc/stdlib/Stdlib/Digest/module-type-S/index.html
Module type Digest.SSource
The signature for a hash function that produces digests of length hash_length from character strings, byte arrays, and files.
Compare two digests, with the same specification as Stdlib.compare.
val string : string -> tReturn the digest of the given string.
val bytes : bytes -> tReturn the digest of the given byte sequence.
val substring : string -> int -> int -> tsubstring s ofs len returns the digest of the substring of s starting at index ofs and containing len characters.
val subbytes : bytes -> int -> int -> tsubbytes s ofs len returns the digest of the subsequence of s starting at index ofs and containing len bytes.
val channel : in_channel -> int -> tRead characters from the channel and return their digest. See Digest.channel for the full specification.
val file : string -> tReturn the digest of the file whose name is given.
val output : out_channel -> t -> unitWrite a digest on the given output channel.
val input : in_channel -> tRead a digest from the given input channel.
val to_hex : t -> stringReturn the printable hexadecimal representation of the given digest.
val of_hex : string -> tConvert a hexadecimal representation back into the corresponding digest.