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.
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
Post a Comment