lsm-tree-0.1.0.0: Log-structured merge-trees
Safe HaskellSafe-Inferred
LanguageGHC2021

Database.LSMTree.Internal.BloomFilter

Synopsis

Documentation

bloomFilterFromSBS :: ShortByteString -> Either String (Bloom a) Source #

Read Bloom from a ShortByteString.

The input must be 64 bit aligned and exactly contain the serialised bloom filter. In successful case the data portion of bloom filter is not copied (the short bytestring has only 16 bytes of extra data in the header).