Android ByteBuffer Get getUnsignedInt(final ByteBuffer pByteBuffer, final int pPosition)

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

Description

get Unsigned Int

Declaration

public static long getUnsignedInt(final ByteBuffer pByteBuffer,
            final int pPosition) 

Method Source Code

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

public class Main {
    public static long getUnsignedInt(final ByteBuffer pByteBuffer) {
        return pByteBuffer.getInt() & 0xFFFFFFFFL;
    }/*  ww w  .j a v a  2  s .  c  o  m*/

    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)
  4. extractNullTerminatedString(ByteBuffer bb)
  5. allocateMore(ByteBuffer output)
  6. removeFirstBytes(ByteBuffer buffer, int num)
  7. shorts(ByteBuffer buffer)