public static int readReverseInt ( IoBuffer in ) { final byte a = in . get ( ) ; final byte b = in . get ( ) ; final byte c = in . get ( ) ; final byte d = in . get ( ) ; int val = 0 ; val += ( d & 0xff ) << 24 ; val += ( c & 0xff ) << 16 ; val += ( b & 0xff ) << 8 ; val += ( a & 0xff ) ; return val ; }
Read integer in reversed order .