BitSet.js
BitSet.js copied to clipboard
An arbitrary size Bit-Vector implementation in JavaScript
As we can construct a bitset object by a Buffer, Can we convert the bitset to Buffer let bitset = require("bitset"); let buf = Buffer.from([100, 97, 98]); let bs =...
- OS: Windows 10 Pro - Browser: Internet Explorer 11 (and emulation back through 7 and 5) Error encountered: ``` SCRIPT1028: Expected identifier, string or number bitset.js (911,5) ``` which...
Re #39. I don't know that I got the implementation right, but it works so far with the test cases I've added. I hope you'll consider adding shifts to the...
Would you consider adding or accepting a PR with bit shifts? Or am I missing it?
Hi, I want to store 214 bits in a BitSet. When i do that it's data array is 10 elements. That's 10x 32bit int (320 bit). Ideally it would use...
Hey, the README mentions that this library has been benchmarked against other libraries: > [this library] is also heavily benchmarked against other implementations and is the most performant implementation to...
Hello, For input, you have `0b101010101010` and `0xa6e` etc etc.. You have the ability to do `const b36 = BitSet('10101010110101010101010101010').toString(36)` But not sure how to get it back in `const...