MurmurHash3.IncrementalHash32public static class MurmurHash3.IncrementalHash32x86 extends java.lang.Object
This is an implementation of the 32-bit hash function MurmurHash3_x86_32
from from Austin Applyby's original MurmurHash3 c++ code in SMHasher.
| Constructor | Description |
|---|---|
IncrementalHash32x86() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(byte[] data,
int offset,
int length) |
Adds the byte array to the current incremental hash.
|
int |
end() |
Generate the 32-bit hash value.
|
void |
start(int seed) |
Starts a new incremental hash.
|
public IncrementalHash32x86()
public final void start(int seed)
seed - The initial seed valuepublic final void add(byte[] data, int offset, int length)
data - The input byte arrayoffset - The offset of datalength - The length of arraypublic final int end()