get Unsigned Int From ByteBuffer - Java java.nio

Java examples for java.nio:ByteBuffer Int

Description

get Unsigned Int From ByteBuffer

Demo Code


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

public class Main {
    public static long getUnsignedIntFrom(ByteBuffer bb) {
        return (bb.getInt() & 0xFFFFFFFFL);
    }//from  w  w  w  .j a va 2s. c  o  m
}

Related Tutorials