| Copyright | (c) 2017 Henri Verroken |
|---|---|
| License | BSD3 |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Digest.XXHash.FFI
Description
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 # | |
Defined in Data.Digest.XXHash.FFI | |
| Hashable (XXH3 ByteString) Source # | |
Defined in Data.Digest.XXHash.FFI | |
| Hashable (XXH3 ByteString) Source # | |
Defined in Data.Digest.XXHash.FFI | |
| Hashable (XXH3 Text) Source # | |
Defined in Data.Digest.XXHash.FFI | |
| Hashable (XXH3 Text) Source # | |
Defined in Data.Digest.XXHash.FFI | |
Deprecated interface
Deprecated: Use new, XXH3-based functions instead
Class for hashable data types.
Methods
Arguments
| :: t | Data to hash |
| -> Word32 | Seed |
| -> Word32 | Resulting hash |
Calculate the 32-bit xxHash using a given seed.
Arguments
| :: t | Data to hash |
| -> Word64 | Seed |
| -> Word64 | Resulting hash |
Calculate the 64-bit xxHash using a given seed.