JavaScript Bit Array Library with ArrayBuffer
This library contains a JavaScript implementation of bit arrays. The library supports:
- create by arrayBuffer and init by unit8Array
- getting and setting
The bit array is continuous. The following example shows how to set and get individual bits within the array:
/* typescript */;a = new BitArray32;a.set0, BIT.ON;a.set31, BIT.OFF;a.get30;
/* javascript */;a = 32;a;a;a;
Installation
npm i bit-array-buffer