Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API for a R/W of a BitSet (array of booleans) #66

Open
mhseiden opened this issue Jan 24, 2016 · 1 comment
Open

Add API for a R/W of a BitSet (array of booleans) #66

mhseiden opened this issue Jan 24, 2016 · 1 comment

Comments

@mhseiden
Copy link

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.

mhseiden added a commit to mhseiden/bytebuffer.js that referenced this issue Jan 24, 2016
dcodeIO added a commit that referenced this issue Feb 12, 2016
@dcodeIO
Copy link
Member

dcodeIO commented Feb 12, 2016

Now merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants