large-hashable-0.1.0.0: Efficiently hash (large) Haskell values

Safe HaskellSafe
LanguageHaskell2010

Data.LargeHashable.LargeWord

Description

Efficient representation for small bytearrays with 128 or 256 bits.

Synopsis

Documentation

bsToW128 :: ByteString -> Word128 Source

Converts a ByteString into a Word128. Only the first 16 bytes are taken into account, the rest is ignored.

bsToW256 :: ByteString -> Word256 Source

Converts a ByteString into a Word256. Only the first 32 bytes are taken into account, the rest is ignored.