In it's current state the Library uses 40 bytes to store 40 bits, which is a huge waste of memory on a restricted system. Therefore I propose a system where bytes are utilized not as booleans, but as 8bit containers. Using the bitWrite function and some math, this change will reduce the memory footprint to 5 bytes, while retaining all functionality. Furthermore this improves things like the parse function, where indices can now be used instead of pointer arithmetic.
I have fixed all examples to work with this change.
In it's current state the Library uses 40 bytes to store 40 bits, which is a huge waste of memory on a restricted system. Therefore I propose a system where bytes are utilized not as booleans, but as 8bit containers. Using the bitWrite function and some math, this change will reduce the memory footprint to 5 bytes, while retaining all functionality. Furthermore this improves things like the parse function, where indices can now be used instead of pointer arithmetic. I have fixed all examples to work with this change.