Portability | little endian arch |
---|---|
Stability | experimental |
Maintainer | pxqr.sta@gmail.com |
Safe Haskell | None |
Fast conversion from or to lazy and strict bytestrings. Serialized IntSets are represented as single continious bitmap.
This module is kept separated due safe considerations.
- fromByteString :: BS.ByteString -> IntSet
- toByteString :: IntSet -> BS.ByteString
Documentation
fromByteString :: BS.ByteString -> IntSetSource
Unpack IntSet
from bitmap.
toByteString :: IntSet -> BS.ByteStringSource
Pack the IntSet
as bitmap to the strict bytestring.
NOTE: negative elements are ignored!