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 #

Class for hashable data types.

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

Methods

xxh32 #

Arguments

:: t

Data to hash

-> Word32

Seed

-> Word32

Resulting hash

Calculate the 32-bit xxHash using a given seed.

xxh64 #

Arguments

:: t

Data to hash

-> Word64

Seed

-> Word64

Resulting hash

Calculate the 64-bit xxHash using a given seed.

Instances
XXHash ByteString # 
Instance details

Defined in Data.Digest.XXHash.FFI

XXHash ByteString # 
Instance details

Defined in Data.Digest.XXHash.FFI