sig
exception XXH_error
module type XXHASH =
sig
type hash
type state
val hash : ?seed:XXHash.XXHASH.hash -> string -> XXHash.XXHASH.hash
val create : unit -> XXHash.XXHASH.state
val reset : ?seed:XXHash.XXHASH.hash -> XXHash.XXHASH.state -> unit
val update : XXHash.XXHASH.state -> string -> unit
val digest : XXHash.XXHASH.state -> XXHash.XXHASH.hash
val free : XXHash.XXHASH.state -> unit
val with_state :
?seed:XXHash.XXHASH.hash ->
(XXHash.XXHASH.state -> unit) -> XXHash.XXHASH.hash
end
module XXH32 :
sig
type hash = nativeint
type state
val hash : ?seed:hash -> string -> hash
val create : unit -> state
val reset : ?seed:hash -> state -> unit
val update : state -> string -> unit
val digest : state -> hash
val free : state -> unit
val with_state : ?seed:hash -> (state -> unit) -> hash
end
module XXH64 :
sig
type hash = int64
type state
val hash : ?seed:hash -> string -> hash
val create : unit -> state
val reset : ?seed:hash -> state -> unit
val update : state -> string -> unit
val digest : state -> hash
val free : state -> unit
val with_state : ?seed:hash -> (state -> unit) -> hash
end
end