static public long checksum2long ( byte [ ] checksum , int offset , int length ) { long crc = 0L ; int iter = 0 ; for ( int i = offset ; i < offset + length ; i ++ , iter ++ ) { crc |= ( 0xff L & ( long ) checksum [ i ] ) << ( ( length - iter - 1 ) * 8 ) ; } return crc ; }
Convert a checksum byte array to a long