Code example for Adler32

Methods: getValue, reset, update

0
		mIndexBuffer.position(0);
		mIndexBuffer.put(mIndexHeader);
	} 
 
	int checkSum(final byte[] data) {
		mAdler32.reset();
		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() {