Gets the length of a uint array large enough to hold all stored bits.
Duplicates this array, much like the dup property for built-in arrays.
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.
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.
Operates on all bits in this array.
Resets the length of this array to bits.length and then initializes this
Generates a new array which is the result of bitwise operation op between this array and the supplied array.
Generates a new array which is the result of this array minus the supplied array.
Generates a new array which is the result of this array concatenated with the supplied array.
Convert this array to a void array.
Performs a lexicographical comparison of this array to the supplied array.
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.
Updates the contents of this array with the result of a bitwise op operation between this array and the supplied array.
Updates the contents of this array with the result of this array minus the supplied array.
Updates the contents of this array with the result of this array concatenated with the supplied array.
Copy the bits from one array into this array. This is not a shallow copy.
Generates a copy of this array with the unary complement operation applied.
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 initializes a BitArray of bits.length bits, where each bit value matches the corresponding boolean value in bits.
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.