net.jpountz.xxhash
Class XXHash32
- java.lang.Object
-
- net.jpountz.xxhash.XXHash32
-
public abstract class XXHash32 extends java.lang.ObjectA 32-bits hash.Instances of this class are thread-safe.
-
-
Constructor Summary
Constructors Constructor and Description XXHash32()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract inthash(byte[] buf, int off, int len, int seed)Compute the 32-bits hash ofbuf[off:off+len]using seedseed.inthash(java.nio.ByteBuffer buf, int seed)Compute the hash of the givenByteBuffer.abstract inthash(java.nio.ByteBuffer buf, int off, int len, int seed)Compute the hash of the given slice of theByteBuffer.java.lang.StringtoString()
-
-
-
Method Detail
-
hash
public abstract int hash(byte[] buf, int off, int len, int seed)Compute the 32-bits hash ofbuf[off:off+len]using seedseed.
-
hash
public abstract int hash(java.nio.ByteBuffer buf, int off, int len, int seed)Compute the hash of the given slice of theByteBuffer.positionandlimitare not modified.
-
hash
public final int hash(java.nio.ByteBuffer buf, int 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