public static long getUInt ( final byte ... bytes ) { if ( bytes . length > 4 ) { throw new InvalidParameterException ( "Invalid number of bytes" ) ; } long res = 0 ; for ( int i = 0 ; i < bytes . length ; i ++ ) { res |= bytes [ i ] & 0xFF ; if ( i < bytes . length - 1 ) { res <<= 8 ; } } return res ; }
Gets unsigned integer value corresponding to the given bytes .