Code example for Adler32

Methods: getValue, reset, update

0
		mAdler32.update(data);
		return (int) mAdler32.getValue();
	} 
 
	int checkSum(final byte[] data, final int offset, final int nbytes) {
		mAdler32.reset();
		mAdler32.update(data, offset, nbytes);
		return (int) mAdler32.getValue();
	} 
 
	// This is for testing only. 
	// 
	// Returns the active count (mActiveEntries). This also verifies that 
	// the active count matches matches what's inside the hash region. 
	int getActiveCount() { 
		int count = 0;
		for (int i = 0; i < mMaxEntries; i++) {
			final int offset = mActiveHashStart + i * 12;
			final long candidateKey = mIndexBuffer.getLong(offset);
			final int candidateOffset = mIndexBuffer.getInt(offset + 8);
			if (candidateOffset != 0) {