Code example for IntBuffer

Methods: get

0
        //Java uses Big Endian. Network program uses Little Endian. 
        bb.order(ByteOrder.LITTLE_ENDIAN);
        bb.rewind();
        IntBuffer ib =  bb.asIntBuffer();
        int [] result = new int [size];
        ib.get(result);
 
 
        return result;
    } 
}