com.bigdata.util
Class ChecksumUtility
java.lang.Object
com.bigdata.util.ChecksumUtility
public class ChecksumUtility
- extends Object
Utility class for computing the Adler32 checksum of a buffer. This
class is NOT thread-safe.
- Version:
- $Id: ChecksumUtility.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChecksumUtility
public ChecksumUtility()
checksum
public int checksum(ByteBuffer buf,
int pos,
int limit)
- Compute the
Adler32 checksum of the buffer. The position,
mark, and limit are unchanged by this operation. The operation is
optimized when the buffer is backed by an array.
- Parameters:
buf - The buffer.pos - The starting position.limit - The limit.
- Returns:
- The checksum.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.