Copyright | Copyright © 2021 Lars Kuhtz <lakuhtz@gmail.com> |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The primitive versions are usually not more efficient than the version with explicit word sizes for the respective host architecture.
Synopsis
- newtype Fnv164Hash = Fnv164Hash Word64
- data Fnv164Context
- fnv164Initialize :: Fnv164Context
- fnv164Update :: Fnv164Context -> Ptr Word8 -> Int -> IO Fnv164Context
- fnv164Finalize :: Fnv164Context -> Fnv164Hash
- fnv164 :: Ptr Word8 -> Int -> IO Fnv164Hash
- newtype Fnv1a64Hash = Fnv1a64Hash Word64
- data Fnv1a64Context
- fnv1a64Initialize :: Fnv1a64Context
- fnv1a64Update :: Fnv1a64Context -> Ptr Word8 -> Int -> IO Fnv1a64Context
- fnv1a64Finalize :: Fnv1a64Context -> Fnv1a64Hash
- fnv1a64 :: Ptr Word8 -> Int -> IO Fnv1a64Hash
- newtype Fnv132Hash = Fnv132Hash Word32
- data Fnv132Context
- fnv132Initialize :: Fnv132Context
- fnv132Update :: Fnv132Context -> Ptr Word8 -> Int -> IO Fnv132Context
- fnv132Finalize :: Fnv132Context -> Fnv132Hash
- fnv132 :: Ptr Word8 -> Int -> IO Fnv132Hash
- newtype Fnv1a32Hash = Fnv1a32Hash Word32
- data Fnv1a32Context
- fnv1a32Initialize :: Fnv1a32Context
- fnv1a32Update :: Fnv1a32Context -> Ptr Word8 -> Int -> IO Fnv1a32Context
- fnv1a32Finalize :: Fnv1a32Context -> Fnv1a32Hash
- fnv1a32 :: Ptr Word8 -> Int -> IO Fnv1a32Hash
- newtype Fnv1Hash = Fnv1Hash Word
- data Fnv1Context
- fnv1Initialize :: Fnv1Context
- fnv1Update :: Fnv1Context -> Ptr Word8 -> Int -> IO Fnv1Context
- fnv1Finalize :: Fnv1Context -> Fnv1Hash
- fnv1 :: Ptr Word8 -> Int -> IO Fnv1Hash
- newtype Fnv1aHash = Fnv1aHash Word
- data Fnv1aContext
- fnv1aInitialize :: Fnv1aContext
- fnv1aUpdate :: Fnv1aContext -> Ptr Word8 -> Int -> IO Fnv1aContext
- fnv1aFinalize :: Fnv1aContext -> Fnv1aHash
- fnv1a :: Ptr Word8 -> Int -> IO Fnv1aHash
- module Data.Hash.Class.Pure
- fnv1_64 :: Ptr Word8 -> Int -> IO Word64
- fnv1_64_ :: Ptr Word8 -> Int -> Word64 -> IO Word64
- fnv1a_64 :: Ptr Word8 -> Int -> IO Word64
- fnv1a_64_ :: Ptr Word8 -> Int -> Word64 -> IO Word64
- fnv1_32 :: Ptr Word8 -> Int -> IO Word32
- fnv1_32_ :: Ptr Word8 -> Int -> Word32 -> IO Word32
- fnv1a_32 :: Ptr Word8 -> Int -> IO Word32
- fnv1a_32_ :: Ptr Word8 -> Int -> Word32 -> IO Word32
- fnv1_host :: Ptr Word8 -> Int -> IO Word
- fnv1_host_ :: Ptr Word8 -> Int -> Word -> IO Word
- fnv1Primitive :: Addr# -> Int# -> State# tok -> (# State# tok, Word# #)
- fnv1Primitive_ :: Addr# -> Int# -> Word# -> State# tok -> (# State# tok, Word# #)
- fnv1a_host :: Ptr Word8 -> Int -> IO Word
- fnv1a_host_ :: Ptr Word8 -> Int -> Word -> IO Word
- fnv1aPrimitive :: Addr# -> Int# -> State# tok -> (# State# tok, Word# #)
- fnv1aPrimitive_ :: Addr# -> Int# -> Word# -> State# tok -> (# State# tok, Word# #)
- fnvPrime :: Word
- fnvPrime32 :: Word32
- fnvPrime64 :: Word64
- fnvOffsetBasis :: Word
- fnvOffsetBasis32 :: Word32
- fnvOffsetBasis64 :: Word64
Fnv1 64 bit
newtype Fnv164Hash Source #
Instances
data Fnv164Context Source #
fnv164Update :: Fnv164Context -> Ptr Word8 -> Int -> IO Fnv164Context Source #
Fnv1a 64 bit
newtype Fnv1a64Hash Source #
Instances
data Fnv1a64Context Source #
fnv1a64Update :: Fnv1a64Context -> Ptr Word8 -> Int -> IO Fnv1a64Context Source #
Fnv1 32 bit
newtype Fnv132Hash Source #
Instances
data Fnv132Context Source #
fnv132Update :: Fnv132Context -> Ptr Word8 -> Int -> IO Fnv132Context Source #
Fnv1a 32 bit
newtype Fnv1a32Hash Source #
Instances
data Fnv1a32Context Source #
fnv1a32Update :: Fnv1a32Context -> Ptr Word8 -> Int -> IO Fnv1a32Context Source #
Fnv1 Host Wordsize
Instances
Eq Fnv1Hash Source # | |
Ord Fnv1Hash Source # | |
Defined in Data.Hash.FNV1 | |
Show Fnv1Hash Source # | |
IncrementalHash Fnv1Hash Source # | |
Hash Fnv1Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1Hash Source # | |
type Context Fnv1Hash Source # | |
Defined in Data.Hash.FNV1 | |
type Salt Fnv1Hash Source # | |
Defined in Data.Hash.FNV1.Salted |
data Fnv1Context Source #
fnv1Update :: Fnv1Context -> Ptr Word8 -> Int -> IO Fnv1Context Source #
fnv1Finalize :: Fnv1Context -> Fnv1Hash Source #
Fnv1a Host Wordsize
Instances
Eq Fnv1aHash Source # | |
Ord Fnv1aHash Source # | |
Defined in Data.Hash.FNV1 | |
Show Fnv1aHash Source # | |
IncrementalHash Fnv1aHash Source # | |
Hash Fnv1aHash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1aHash Source # | |
type Context Fnv1aHash Source # | |
Defined in Data.Hash.FNV1 | |
type Salt Fnv1aHash Source # | |
Defined in Data.Hash.FNV1.Salted |
data Fnv1aContext Source #
fnv1aUpdate :: Fnv1aContext -> Ptr Word8 -> Int -> IO Fnv1aContext Source #
Utils
module Data.Hash.Class.Pure
Low-Level
64 bit
32 bit
Host word size
Internal Constants
fnvPrime32 :: Word32 Source #
fnvPrime64 :: Word64 Source #