memory-0.15.0: memory and related abstraction stuff
LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilitygood
Safe HaskellNone
LanguageHaskell2010

Data.Memory.Hash.FNV

Contents

Description

Fowler Noll Vo Hash (1 and 1a 32 64 bits versions) http://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function

Synopsis

types

newtype FnvHash32 Source #

FNV1(a) hash (32 bit variants)

Constructors

FnvHash32 Word32 

newtype FnvHash64 Source #

FNV1(a) hash (64 bit variants)

Constructors

FnvHash64 Word64 

methods

fnv1 :: Ptr Word8 -> Int -> IO FnvHash32 Source #

compute FNV1 (32 bit variant) of a raw piece of memory

fnv1a :: Ptr Word8 -> Int -> IO FnvHash32 Source #

compute FNV1a (32 bit variant) of a raw piece of memory

fnv1_64 :: Ptr Word8 -> Int -> IO FnvHash64 Source #

compute FNV1 (64 bit variant) of a raw piece of memory

fnv1a_64 :: Ptr Word8 -> Int -> IO FnvHash64 Source #

compute FNV1a (64 bit variant) of a raw piece of memory