List of utility methods to do ByteBuffer Put
int | getUnsignedShort(final ByteBuffer pByteBuffer) get Unsigned Short return pByteBuffer.getShort() & 0xFFFF;
|
int | getUnsignedShort(final ByteBuffer pByteBuffer, final int pPosition) get Unsigned Short return pByteBuffer.getShort(pPosition) & 0xFFFF;
|
void | putUnsignedInt(final ByteBuffer pByteBuffer, final int pPosition, final long pValue) put Unsigned Int pByteBuffer.putInt(pPosition, (short) (pValue & 0xFFFFFFFFL));
|
void | putUnsignedInt(final ByteBuffer pByteBuffer, final long pValue) put Unsigned Int pByteBuffer.putInt((int) (pValue & 0xFFFFFFFFL));
|
void | putUnsignedShort(final ByteBuffer pByteBuffer, final int pPosition, final int pValue) put Unsigned Short pByteBuffer.putShort(pPosition, (short) (pValue & 0xFFFF));
|
void | putUnsignedShort(final ByteBuffer pByteBuffer, final int pValue) put Unsigned Short pByteBuffer.putShort((short) (pValue & 0xFFFF));
|
int | findCommonPrefix(ByteBuffer buffer, int offsetLeft, int offsetRight, int limit) Find length of common prefix of two parts in the buffer int prefix = 0; for (; prefix < limit; ++prefix) { if (buffer.get(offsetLeft + prefix) != buffer.get(offsetRight + prefix)) { break; return prefix; ... |