You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands, each single boolean value requires a full byte in the backing array; this is not very compact and could be addressed by adding a BITSET (boolean array) function. It could easily pack many boolean values into a single byte, by writing the # of bits in the set and writing each with the appropriate mask. This could be implemented in client code easily, but it would make sense to have a single, well tested API for this module that serves this function.
The text was updated successfully, but these errors were encountered:
mhseiden
added a commit
to mhseiden/bytebuffer.js
that referenced
this issue
Jan 24, 2016
As it stands, each single boolean value requires a full byte in the backing array; this is not very compact and could be addressed by adding a BITSET (boolean array) function. It could easily pack many boolean values into a single byte, by writing the # of bits in the set and writing each with the appropriate mask. This could be implemented in client code easily, but it would make sense to have a single, well tested API for this module that serves this function.
The text was updated successfully, but these errors were encountered: