public abstract class AbstractStreamingHasher extends AbstractHasher implements StreamingHasher
seed| 构造器和说明 |
|---|
AbstractStreamingHasher() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
hash(byte[] bytes,
int length,
long seed)
一次性计算 hash
Calculate a hash using bytes from 0 to
length, and
the provided seed value |
void |
reset() |
protected void |
update(byte b) |
void |
update(byte[] bytes,
int off,
int len)
用于流式计算
|
asInt, asLong, createInstance, get, getName, hash, hash, padToLong, setSeed, toLongclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHash, setSeedpublic long hash(byte[] bytes,
int length,
long seed)
Calculate a hash using bytes from 0 to length, and
the provided seed value
hash 在接口中 Hasherhash 在类中 AbstractHasherbytes - input byteslength - length of the valid bytes to considerseed - seed valuepublic void update(byte[] bytes,
int off,
int len)
update 在接口中 StreamingHasherprotected void update(byte b)
public void reset()
reset 在接口中 StreamingHasherCopyright © 2022. All rights reserved.