package b0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e
doc/b0.std/B0_std/Hash/index.html
Module B0_std.Hash
Hash values and functions.
The property we want from these functions is speed and collision resistance. Build correctness depends on the latter.
Hash values
The type for hash values. All hash functions use this representation. It is not possible to distinguish them, except for their length which might vary, or not.
val length : t -> intlength h is the length of h in bytes.
Predicate and comparisons
Converting
val to_bytes : t -> stringto_bytes h is the sequence of bytes of h.
val of_bytes : string -> tof_bytes s is the sequences of bytes of s as a hash value.
val to_hex : t -> stringto_hex h is String.Ascii.to_hex (to_bytes h).
of_hex s is Result.map of_bytes (String.Ascii.of_hex s).
Hash functions
module type T = sig ... endThe type for hash functions.
Xxh3_64 is the xxHash3 64-bit hash.
Xxh3_128 is the xxHash3 128-bit hash.
val funs : unit -> (module T) listfuns () is the list of available hash functions.
val add_fun : (module T) -> unitadd_fun m adds m to the list returned by funs.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page