Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
XXH3
Contents
Synopsis
- xxh3_64bit_withSeed_bs :: ByteString -> Word64 -> Word64
- xxh3_64bit_withSeed_ba :: ByteArray -> Int -> Int -> Word64 -> Word64
- xxh3_64bit_withSeed_w64 :: Word64 -> Word64 -> Word64
- xxh3_64bit_withSeed_w32 :: Word32 -> Word64 -> Word64
- data XXH3_State s
- xxh3_64bit_createState :: forall s. ST s (XXH3_State s)
- xxh3_64bit_reset_withSeed :: XXH3_State s -> Word64 -> ST s ()
- xxh3_64bit_digest :: XXH3_State s -> ST s Word64
- xxh3_64bit_update_bs :: XXH3_State s -> ByteString -> ST s ()
- xxh3_64bit_update_ba :: XXH3_State s -> ByteArray -> Int -> Int -> ST s ()
- xxh3_64bit_update_w64 :: XXH3_State s -> Word64 -> ST s ()
- xxh3_64bit_update_w32 :: XXH3_State s -> Word32 -> ST s ()
One shot
xxh3_64bit_withSeed_bs :: ByteString -> Word64 -> Word64 Source #
Hash ByteString
.
xxh3_64bit_withSeed_ba :: ByteArray -> Int -> Int -> Word64 -> Word64 Source #
Hash (part of) ByteArray
.
Incremental
data XXH3_State s Source #
Mutable XXH3 state.
xxh3_64bit_createState :: forall s. ST s (XXH3_State s) Source #
Create XXH3_State
.
xxh3_64bit_reset_withSeed :: XXH3_State s -> Word64 -> ST s () Source #
Reset XXH3_State
with a seed.
xxh3_64bit_digest :: XXH3_State s -> ST s Word64 Source #
Return a hash value from a XXH3_State
.
Doesn't mutate given state, so you can update, digest and update again.
xxh3_64bit_update_bs :: XXH3_State s -> ByteString -> ST s () Source #
Update XXH3_State
with ByteString
.
xxh3_64bit_update_ba :: XXH3_State s -> ByteArray -> Int -> Int -> ST s () Source #
Update XXH3_State
with (part of) ByteArray
xxh3_64bit_update_w64 :: XXH3_State s -> Word64 -> ST s () Source #
Update XXH3_State
with Word64
.
xxh3_64bit_update_w32 :: XXH3_State s -> Word32 -> ST s () Source #
Update XXH3_State
with Word32
.