Copyright | (c) Sam T. 2013 |
---|---|
License | BSD3 |
Maintainer | pxqr.sta@gmail.com |
Stability | experimental |
Portability | little endian arch |
Safe Haskell | None |
Language | Haskell98 |
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 :: ByteString -> IntSet
- toByteString :: IntSet -> ByteString
Documentation
fromByteString :: ByteString -> IntSet Source
Unpack IntSet
from bitmap.
toByteString :: IntSet -> ByteString Source
Pack the IntSet
as bitmap to the strict bytestring.
NOTE: negative elements are ignored!