Use bitmask trick to read unsigned values in ByteBufferInputStream