| BitArray |
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)
Project VBCorLib Overview | Constructors | BitArrayStatic
| ICloneable | |
| ICollection | |
| IEnumerable | |
| IObject |
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
AndBits | Performs a bitwise AND on the current instance of BitArray using the bits in another instance of BitArray. |
Clone | Returns a duplicate of the current instance. |
CopyTo | Copies the internal bit-array to a compatible array. |
Equals | Returns a boolean indicating if the value and this object instance are the same instance. |
GetEnumerator | Returns an enumerator for this instance. |
GetHashCode | Returns a pseudo-unique number identifying this instance. |
NotBits | Performs bitwise negate operation on the internal array. |
OrBits | Performs a bitwise OR on the current instance of BitArray using the bits in another instance of BitArray. |
SetAll | Sets all of the bits to the specified value of True (1) or False (0). |
ToString | Returns a string representation of this object instance. |
XorBits | Performs a bitwise XOR on the current instance of BitArray using the bits in another instance of BitArray. |