How to write ints with specific amount of bits in Java -


so want write in file integers with, example, 10 bits each in little endian format. shouldn't aligned byte. following image may understand scructure.enter image description here

i looked @ bytebuffer (i'm coding in java) doesn't seem this.

this not possible default. java doesn't have bit type, closest going byte or boolean. can make util class 10 booleans (as bits) in whatever order like, other that, java not hold functionality.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -