Java ByteBuffer to Long getUInt32(ByteBuffer b)

Here you can find the source of getUInt32(ByteBuffer b)

Description

get U Int

License

Apache License

Declaration

public static long getUInt32(ByteBuffer b) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.ByteBuffer;

public class Main {
    public static long getUInt32(ByteBuffer b) {
        return (b.getInt() & 0xFFFFFFFFL);
    }//from  w  ww  .java 2 s .com

    public static int[] getInt(ByteBuffer b, int n) {
        int i[] = new int[n];
        for (int k = 0; k < i.length; k++) {
            i[k] = b.getInt();
        }
        return i;
    }
}

Related

  1. getUInt(ByteBuffer buffer)
  2. getUInt(java.nio.ByteBuffer buffer)
  3. getUInt16(ByteBuffer b, int n)
  4. getUInt16(ByteBuffer buffer)
  5. getUInt16(ByteBuffer buffer)
  6. getUInt8(ByteBuffer b, int n)
  7. getUInteger(ByteBuffer bb)
  8. readLong(ByteBuffer buf, int length)
  9. readLong(ByteBuffer buffer)