Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Database.LSMTree.Internal.BloomFilter
Synopsis
- bloomFilterToLBS :: Bloom a -> ByteString
- bloomFilterFromSBS :: ShortByteString -> Either String (Bloom a)
Documentation
bloomFilterToLBS :: Bloom a -> ByteString Source #
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).