Android ByteBuffer Get getUnsignedInt(final ByteBuffer pByteBuffer)

Here you can find the source of getUnsignedInt(final ByteBuffer pByteBuffer)

Description

get Unsigned Int

Declaration

public static long getUnsignedInt(final ByteBuffer pByteBuffer) 

Method Source Code

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

public class Main {
    public static long getUnsignedInt(final ByteBuffer pByteBuffer) {
        return pByteBuffer.getInt() & 0xFFFFFFFFL;
    }//from   w  ww  . ja  va  2s. com

    public static long getUnsignedInt(final ByteBuffer pByteBuffer,
            final int pPosition) {
        return pByteBuffer.getInt(pPosition) & 0xFFFFFFFFL;
    }
}

Related

  1. getUnsignedByte(final ByteBuffer pByteBuffer)
  2. getUnsignedByte(final ByteBuffer pByteBuffer, final int pPosition)
  3. getUnsignedInt(final ByteBuffer pByteBuffer, final int pPosition)
  4. extractNullTerminatedString(ByteBuffer bb)
  5. allocateMore(ByteBuffer output)
  6. removeFirstBytes(ByteBuffer buffer, int num)