cityhash-0.2.0.0: Bindings to CityHash

Portabilityportable (FFI)
Stabilityexperimental
Maintainermad.one@gmail.com
Safe HaskellSafe-Infered

Data.Digest.CityHash

Contents

Description

This module implements a binding to the CityHash family of hashing functions. You can find more information here: http://code.google.com/p/cityhash/. It implements both the 64-bit and 128-bit interfaces, with seed functionality.

Synopsis

64-bit hashes

cityHash64 :: ByteString -> Word64Source

Hash function for a byte array.

cityHash64WithSeed :: ByteString -> Word64 -> Word64Source

Hash function for a byte array. For convenience, a 64-bit seed is also hashed into the result.

cityHash64WithSeeds :: ByteString -> Word64 -> Word64 -> Word64Source

Hash function for a byte array. For convenience, two seeds are also hashed into the result.

128-bit hashes

cityHash128 :: ByteString -> Word128Source

Hash function for a byte array.

cityHash128WithSeed :: ByteString -> Word128 -> Word128Source

Hash function for a byte array. For convenience, a 128-bit seed is also hashed into the result.