How do I getInt from a ByteBuffer with only 1 remaining byte (Java NIO)
I am new to Java NIO and am unsure how to do things nio-ishly. Assume I have read some data from a socket into a ByteBuffer and consumed all bytes but one, using the get methods of ByteBuffer. I know …