asn1-data-0.6.1.2: ASN1 data reader and writer in RAW, BER, DER and CER forms

Safe HaskellSafe-Infered

Data.ASN1.BitArray

Synopsis

Documentation

data BitArray Source

represent a bitarray / bitmap

Constructors

BitArray Word64 ByteString 

Instances

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)