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

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.ASN1.BitArray

Description

 

Synopsis

Documentation

data BitArray Source

represent a bitarray / bitmap

Constructors

BitArray Word64 ByteString 

Instances

bitArrayLength :: BitArray -> Word64 Source

returns the length of bits in this bitarray

bitArrayGetBit :: BitArray -> Word64 -> Bool Source

get the nth bits

bitArraySetBitValue :: BitArray -> Word64 -> Bool -> BitArray Source

set the nth bit to the value specified

bitArraySetBit :: BitArray -> Word64 -> BitArray Source

set the nth bits

bitArrayClearBit :: BitArray -> Word64 -> BitArray Source

clear the nth bits

bitArrayGetData :: BitArray -> ByteString Source

get padded bytestring of the bitarray

toBitArray :: ByteString -> Int -> BitArray Source

number of bit to skip at the end (padding)