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

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.ASN1.BitArray

Synopsis

Documentation

data BitArray

represent a bitarray / bitmap

Constructors

BitArray Word64 ByteString 

Instances

bitArrayLength :: BitArray -> Word64

returns the length of bits in this bitarray

bitArrayGetBit :: BitArray -> Word64 -> Bool

get the nth bits

bitArrayGetData :: BitArray -> ByteString

get padded bytestring of the bitarray

toBitArray :: ByteString -> Int -> BitArray

number of bit to skip at the end (padding)