public abstract class XXHash64
extends java.lang.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)
Compute the 64-bits hash of
buf[off:off+len] using seed
seed. |
abstract long |
hash(java.nio.ByteBuffer buf,
int off,
int len,
long seed)
Compute the hash of the given slice of the
ByteBuffer. |
long |
hash(java.nio.ByteBuffer buf,
long seed)
Compute the hash of the given
ByteBuffer. |
java.lang.String |
toString() |
public abstract long hash(byte[] buf,
int off,
int len,
long seed)
buf[off:off+len] using seed
seed.public abstract long hash(java.nio.ByteBuffer buf,
int off,
int len,
long seed)
ByteBuffer.
position and limit
are not modified.public final long hash(java.nio.ByteBuffer buf,
long seed)
ByteBuffer. The
position is moved in order to reflect bytes
which have been read.public java.lang.String toString()
toString in class java.lang.Object