Copyright | (c) 2017 Henri Verroken |
---|---|
License | BSD3 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides high-level helpers for the xxHash library, see https://xxhash.com.
XXH3 interface
A newtype over ByteString
and Text
to provide convenient access
to the XXH3
hash function via Hashable
type class.
Since: 0.3
Instances
Show a => Show (XXH3 a) Source # | |
Eq a => Eq (XXH3 a) Source # | |
Ord a => Ord (XXH3 a) Source # | |
Hashable (XXH3 ByteArray) Source # | |
Hashable (XXH3 ByteString) Source # | |
Defined in Data.Digest.XXHash.FFI hashWithSalt :: Int -> XXH3 ByteString -> Int # hash :: XXH3 ByteString -> Int # | |
Hashable (XXH3 ByteString) Source # | |
Defined in Data.Digest.XXHash.FFI hashWithSalt :: Int -> XXH3 ByteString -> Int # hash :: XXH3 ByteString -> Int # | |
Hashable (XXH3 Text) Source # | |
Hashable (XXH3 Text) Source # | |
Deprecated interface
Deprecated: Use new, XXH3-based functions instead
Class for hashable data types.
Calculate the 32-bit xxHash using a given seed.
Calculate the 64-bit xxHash using a given seed.
Instances
XXHash ByteString Source # | |
Defined in Data.Digest.XXHash.FFI | |
XXHash ByteString Source # | |
Defined in Data.Digest.XXHash.FFI |