asn1-types-0.2.1: ASN.1 types

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

Data.ASN1.BitArray

Description

 

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

bitArraySetBitValue :: BitArray -> Word64 -> Bool -> BitArraySource

set the nth bit to the value specified

bitArraySetBit :: BitArray -> Word64 -> BitArraySource

set the nth bits

bitArrayClearBit :: BitArray -> Word64 -> BitArraySource

clear 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)