public abstract class XXHash64 extends Object
Instances of this class are thread-safe.
| Constructor and Description |
|---|
XXHash64() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
hash(byte[] buf,
int off,
int len,
long seed)
Computes the 64-bits hash of
buf[off:off+len] using seed
seed. |
abstract long |
hash(ByteBuffer buf,
int off,
int len,
long seed)
Computes the hash of the given slice of the
ByteBuffer. |
long |
hash(ByteBuffer buf,
long seed)
Computes the hash of the given
ByteBuffer. |
String |
toString() |
public abstract long hash(byte[] buf,
int off,
int len,
long seed)
buf[off:off+len] using seed
seed.buf - the input dataoff - the start offset in buflen - the number of bytes to hashseed - the seed to usepublic abstract long hash(ByteBuffer buf, int off, int len, long seed)
buf - the input dataoff - the start offset in buflen - the number of bytes to hashseed - the seed to usepublic final long hash(ByteBuffer buf, long seed)
ByteBuffer. The
position is moved in order to reflect bytes
which have been read.buf - the input dataseed - the seed to use