This initializes a BitArray of bits.length bits, where each bit value matches the corresponding boolean value in bits.
Resets the length of this array to bits.length and then initializes this
Map BitArray onto target, with numbits being the number of bits in the array. Does not copy the data. This is the inverse of opCast.
Generates a new array which is the result of a bitwise and operation between this array and the supplied array.
Updates the contents of this array with the result of a bitwise and operation between this array and the supplied array.
Operates on all bits in this array.
Convert this array to a void array.
Generates a new array which is the result of this array concatenated with the supplied array.
Updates the contents of this array with the result of this array concatenated with the supplied array.
Generates a new array which is the result of this array concatenated with the supplied array.
Performs a lexicographical comparison of this array to the supplied array.
Generates a copy of this array with the unary complement operation applied.
Compares this array to another for equality. Two bit arrays are equal if they are the same size and contain the same series of bits.
Support for index operations, much like the behavior of built-in arrays.
Support for index operations, much like the behavior of built-in arrays.
Generates a new array which is the result of a bitwise or operation between this array and the supplied array.
Updates the contents of this array with the result of a bitwise or operation between this array and the supplied array.
Copy the bits from one array into this array. This is not a shallow copy.
Generates a new array which is the result of this array minus the supplied array. a - b for BitArrays means the same thing as a & ~b.
Updates the contents of this array with the result of this array minus the supplied array. a - b for BitArrays means the same thing as a & ~b.
Generates a new array which is the result of a bitwise xor operation between this array and the supplied array.
Updates the contents of this array with the result of a bitwise xor operation between this array and the supplied array.
Gets the length of a size_t array large enough to hold all stored bits.
Duplicates this array, much like the dup property for built-in arrays.
Get the number of bits in this array.
Resizes this array to newlen bits. If newlen is larger than the current length, the new bits will be initialized to zero.
Reverses the contents of this array in place, much like the reverse property for built-in arrays.
Sorts this array in place, with zero entries sorting before one. This is equivalent to the sort property for built-in arrays.
This struct represents an array of boolean values, each of which occupy one bit of memory for storage. Thus an array of 32 bits would occupy the same space as one integer value. The typical array operations--such as indexing and sorting--are supported, as well as bitwise operations such as and, or, xor, and complement.