public static int readInt ( byte [ ] source , int position ) { return ( source [ position ] & 0xFF ) << 24 | ( source [ position + 1 ] & 0xFF ) << 16 | ( source [ position + 2 ] & 0xFF ) << 8 | ( source [ position + 3 ] & 0xFF ) ; }
Reads a 32 - bit integer from the given byte array starting at the given position .