xxhash-ffi-0.2.0.0: Bindings to the C implementation the xxHash algorithm

Copyright(c) 2017 Henri Verroken
LicenseBSD3
MaintainerHenri Verroken <henriverroken@gmail.com
Stabilitystable
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Data.Digest.XXHash.FFI

Contents

Description

This module provides bindings to the xxHash64 and the xxHash32 algorithm.

The C implementation used is directly taken from https://github.com/Cyan4973/xxHash.

Synopsis

Interface

class XXHash t where Source #

Class for hashable data types.

Not that all standard instances are specialized using the SPECIALIZE pragma.

Minimal complete definition

xxh32, xxh64

Methods

xxh32 :: t -> Word32 -> Word32 Source #

Calculate the 32-bit xxHash using a given seed.

xxh64 :: t -> Word64 -> Word64 Source #

Calculate the 64-bit xxHash using a given seed.