Portability | portable (FFI) |
---|---|
Stability | experimental |
Maintainer | mad.one@gmail.com |
Safe Haskell | Safe-Infered |
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.
- cityHash64 :: ByteString -> Word64
- cityHash64WithSeed :: ByteString -> Word64 -> Word64
- cityHash64WithSeeds :: ByteString -> Word64 -> Word64 -> Word64
- cityHash128 :: ByteString -> Word128
- cityHash128WithSeed :: ByteString -> Word128 -> Word128
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.