} private native static void jniPut(final ByteBuffer pByteBuffer, final float[] pSource, final int pLength, final int pOffset); public static short getUnsignedByte(final ByteBuffer pByteBuffer) { return (short) (pByteBuffer.get() & 0xFF); } public static void putUnsignedByte(final ByteBuffer pByteBuffer, final int pValue) { pByteBuffer.put((byte) (pValue & 0xFF)); } public static short getUnsignedByte(final ByteBuffer pByteBuffer, final int pPosition) { return (short) (pByteBuffer.get(pPosition) & (short) 0xFF); } public static void putUnsignedByte(final ByteBuffer pByteBuffer, final int pPosition, final int pValue) { pByteBuffer.put(pPosition, (byte) (pValue & 0xFF)); }