magik6k/BitBuffer

Completely full BitBuffers add an extra byte when converted to byte arrays

granthenke opened this issue · 2 comments

The example code below prints out a length of 2 when its expected to be 1:

BitBuffer buffer = BitBuffer.allocate(8);
buffer.putByte((byte) 128, 8);
System.out.println(buffer.asByteArray().length);

Should soon be downloadable from maven central as 1.5.1. Thanks for the report!

@magik6k Awesome, thanks for the quick fix. Didn't even realize you published to maven. You should add some of that information to the README.