A bit-vector.
A bit-vector is meant to condense bit values (or booleans) into an array as close as possible so that no space is wasted.
| BitVector | A bit-vector. | 
| Functions and Properties | |
| BitVector | Creates a bit-vector with a given number of bits. | 
| bitCount | The total number of bits. | 
| cellCount | The total number of cells. | 
| getBit | Gets a bit from a given index. | 
| setBit | Sets a bit at a given index. | 
| resize | Resizes the bit-vector to an appropriate number of bits. | 
| clear | Resets all bits to 0; | 
| setAll | Sets each bit to 1. | 
| toString | Prints out a string representing the current object. | 
Creates a bit-vector with a given number of bits.
public function BitVector( bits: int ) 
The total number of bits.
public function get bitCount():int 
The total number of cells.
public function get cellCount():int 
Gets a bit from a given index.
public function getBit( index: int ):int 
Sets a bit at a given index.
public function setBit( index: int, b: Boolean ):void 
Resizes the bit-vector to an appropriate number of bits.
public function resize( size: int ):void 
Resets all bits to 0;
public function clear():void 
Sets each bit to 1.
public function setAll():void 
Prints out a string representing the current object.
public function toString():String