bit-array icon indicating copy to clipboard operation
bit-array copied to clipboard

JavaScript implementation of bit arrays.

Results 6 bit-array issues
Sort by recently updated
recently updated
newest added

This adds typescript type definitions. I also moved the code to ES6 and removed the unused file `bit-array.js` (closes #11). I hope that is fine.

use it like let type16 = new Uint16Array(input, 2,1); let bit_array = BitArray.typedArray(type16); // bit_array has its own buffer, it will not operate on the TypedArray buffer

see code in line 18 in https://github.com/bramstein/bit-array/blob/master/lib/bit-array.js ``` if (hex.length * 4 > this.length) { throw 'Hex value is too large for this bit array.' } else if (hex.length *...

Using [this function](http://stackoverflow.com/a/17210335/79202) to convert a binary string to hex, I wrote this code to compare the output of `toHexString()`, `toString()`, and `toBinaryString()`: ``` var bits = new BitArray(256); [...

I am trying to check if two bitarray are equivelant, but I get 'true' no matter what. Let's say I have the following bitarrays: ``` bitarray_1.toString() = 001001000 bitarray_2.toString() =...

vat bits = new BitArray(); bits.set(6000,true); bits.toJSON();