Android ByteBuffer Put putUnsignedInt(final ByteBuffer pByteBuffer, final int pPosition, final long pValue)

Here you can find the source of putUnsignedInt(final ByteBuffer pByteBuffer, final int pPosition, final long pValue)

Description

put Unsigned Int

Declaration

public static void putUnsignedInt(final ByteBuffer pByteBuffer,
            final int pPosition, final long pValue) 

Method Source Code

//package com.java2s;
import java.nio.ByteBuffer;

public class Main {
    public static void putUnsignedInt(final ByteBuffer pByteBuffer,
            final long pValue) {
        pByteBuffer.putInt((int) (pValue & 0xFFFFFFFFL));
    }//from  w w  w. j a  v a 2 s .c  om

    public static void putUnsignedInt(final ByteBuffer pByteBuffer,
            final int pPosition, final long pValue) {
        pByteBuffer.putInt(pPosition, (short) (pValue & 0xFFFFFFFFL));
    }
}

Related

  1. getUnsignedShort(final ByteBuffer pByteBuffer)
  2. getUnsignedShort(final ByteBuffer pByteBuffer, final int pPosition)
  3. putUnsignedInt(final ByteBuffer pByteBuffer, final long pValue)
  4. putUnsignedShort(final ByteBuffer pByteBuffer, final int pPosition, final int pValue)
  5. putUnsignedShort(final ByteBuffer pByteBuffer, final int pValue)
  6. findCommonPrefix(ByteBuffer buffer, int offsetLeft, int offsetRight, int limit)