This API is compatible with the {@link XXHash32 block API} and the followingcode samples are equivalent:
int hash(XXHashFactory xxhashFactory, byte[] buf, int off, int len, int seed) { return xxhashFactory.hash32().hash(buf, off, len, seed); }
int hash(XXHashFactory xxhashFactory, byte[] buf, int off, int len, int seed) { StreamingXXHash32 sh32 = xxhashFactory.newStreamingHash32(seed); sh32.update(buf, off, len); return sh32.getValue(); }
Instances of this class are not thread-safe.
|
|