Safe Haskell | Safe-Infered |
---|
- data BitArray = BitArray Word64 ByteString
- bitArrayLength :: BitArray -> Word64
- bitArrayGetBit :: BitArray -> Word64 -> Bool
- bitArrayGetData :: BitArray -> ByteString
- toBitArray :: ByteString -> Int -> BitArray
Documentation
represent a bitarray / bitmap
bitArrayLength :: BitArray -> Word64Source
returns the length of bits in this bitarray
bitArrayGetBit :: BitArray -> Word64 -> BoolSource
get the nth bits
bitArrayGetData :: BitArray -> ByteStringSource
get padded bytestring of the bitarray
toBitArray :: ByteString -> Int -> BitArraySource
number of bit to skip at the end (padding)