A bit-vector using fast "alchemy-memory" for data storage.
Constructor
Variables
Methods
inline ofBool (i:Int, cond:Bool):Void
Sets the bit at index i to 1 if cond is true or clears the bit at index i if cond is false.
Static methods
staticofByteArray (input:ByteArray, ?min:Int, ?max:Int):BitMemory
Converts input in the range [min, max] to a ByteMemory object.
If no range is specified, all input bytes are copied.
staticofBytesData (input:BytesData, ?min:Int, ?max:Int):BitMemory
Converts input in the range [min, max] to a ByteMemory object.
If no range is specified, all input bytes are copied.
statictoByteArray (input:BitMemory):ByteArray
Converts input to a ByteArray object.
The bytes are written in little endian format.
statictoBytesData (input:BitMemory):BytesData
Converts input to a BytesData object.
The bytes are written in little endian format.