intset-0.1.0.0: Pure, fast and memory efficient integer sets.

Copyright(c) Sam T. 2013
LicenseBSD3
Maintainerpxqr.sta@gmail.com
Stabilityexperimental
Portabilitylittle endian arch
Safe HaskellNone
LanguageHaskell98

Data.IntervalSet.ByteString

Description

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.

Synopsis

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!