public static int convertBytesToInt ( byte [ ] bytes , int offset ) { return ( BITWISE_BYTE_TO_INT & bytes [ offset + 3 ] ) | ( ( BITWISE_BYTE_TO_INT & bytes [ offset + 2 ] ) << 8 ) | ( ( BITWISE_BYTE_TO_INT & bytes [ offset + 1 ] ) << 16 ) | ( ( BITWISE_BYTE_TO_INT & bytes [ offset ] ) << 24 ) ; }
Take four bytes from the specified position in the specified block and convert them into a 32 - bit int using the big - endian convention .