BitArray

BitArray


Manages a compact array of bit values. Each bit represents a boolean, where True = 1, and False = 0.


Remarks

The default size is 32 bits represented. A BitArray with a different size can be creates using the public constructor or static constructors.

The following are some of the available methods to create a BitArray.

 Set bits = New BitArray
 - or -
 Set bits = NewBitArray(128)
 - or -
 Set bits = BitArray.FromBooleans(BooleanArray)
 

See Also

Project VBCorLib Overview | Constructors | BitArrayStatic

Implements:

ICloneable 
ICollection 
IEnumerable 
IObject 

Public:

Properties:

NameDescription
 Count (get)Returns the number of bits being represented in the array. 
 IsReadOnly (get)Returns if the instance is a read-only instance. 
 Item (get)Returns the value of a specific bit in the array. 
 Item (let)Sets the value of a specific bit in the array. 
 Length (get)Returns the number of bits represented in the array. 
 Length (let)Sets the number of bits represented in the array. 

Methods:

NameDescription
 AndBitsPerforms a bitwise AND on the current instance of BitArray using the bits in another instance of BitArray. 
 CloneReturns a duplicate of the current instance. 
 CopyToCopies the internal bit-array to a compatible array. 
 EqualsReturns a boolean indicating if the value and this object instance are the same instance. 
 GetEnumeratorReturns an enumerator for this instance. 
 GetHashCodeReturns a pseudo-unique number identifying this instance. 
 NotBitsPerforms bitwise negate operation on the internal array. 
 OrBitsPerforms a bitwise OR on the current instance of BitArray using the bits in another instance of BitArray. 
 SetAllSets all of the bits to the specified value of True (1) or False (0). 
 ToStringReturns a string representation of this object instance. 
 XorBitsPerforms a bitwise XOR on the current instance of BitArray using the bits in another instance of BitArray.