public int [ ] get ( ) { int includedHashes = Math . min ( m_hashCount , MAX_HASHES_COUNT ) ; int [ ] retval = new int [ includedHashes + HEADER_OFFSET ] ; System . arraycopy ( m_hashes , 0 , retval , HEADER_OFFSET , includedHashes ) ; m_inputCRC . update ( m_hashCount ) ; m_inputCRC . update ( m_catalogVersion ) ; retval [ 0 ] = ( int ) m_inputCRC . getValue ( ) ; retval [ 1 ] = m_catalogVersion ; retval [ 2 ] = m_hashCount ; return retval ; }
Serialize the running hashes to an array and complete the overall hash for the first int value in the array .