net.jpountz.xxhash
Class XXHash64
- java.lang.Object
-
- net.jpountz.xxhash.XXHash64
-
public abstract class XXHash64 extends java.lang.ObjectA 64-bits hash.Instances of this class are thread-safe.
-
-
Constructor Summary
Constructors Constructor and Description XXHash64()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract longhash(byte[] buf, int off, int len, long seed)Compute the 64-bits hash ofbuf[off:off+len]using seedseed.abstract longhash(java.nio.ByteBuffer buf, int off, int len, long seed)Compute the hash of the given slice of theByteBuffer.longhash(java.nio.ByteBuffer buf, long seed)Compute the hash of the givenByteBuffer.java.lang.StringtoString()
-
-
-
Method Detail
-
hash
public abstract long hash(byte[] buf, int off, int len, long seed)Compute the 64-bits hash ofbuf[off:off+len]using seedseed.
-
hash
public abstract long hash(java.nio.ByteBuffer buf, int off, int len, long seed)Compute the hash of the given slice of theByteBuffer.positionandlimitare not modified.
-
hash
public final long hash(java.nio.ByteBuffer buf, long seed)Compute the hash of the givenByteBuffer. Thepositionis moved in order to reflect bytes which have been read.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG