Debian Codegraph @

runtime-lib/siphash/siphash.mli

raw symbols SCIP
1 include Base.Hash.S with type seed = string and type hash_value = int
2
3 (** [Siphash] uses first 16 chars of the [seed] string to initialize/reset the hash
4 state, padding it to the right with zero bytes if it's too short. The rest of the
5 string is discarded. *)
6
7 external alloc : unit -> state = "siphash_alloc"
8 external reset_to : state -> seed -> state = "siphash_reset" [@@noalloc]
9 external fold_int64 : state -> int64 -> state = "siphash_fold_int64" [@@noalloc]
10 external fold_int : state -> int -> state = "siphash_fold_int" [@@noalloc]
11 external fold_float : state -> float -> state = "siphash_fold_float" [@@noalloc]
12 external fold_string : state -> string -> state = "siphash_fold_string" [@@noalloc]
13 external get_hash_value : state -> int = "siphash_get_hash_value" [@@noalloc]