public abstract class AbstractNonStreamingHasher extends AbstractHasher
seed| 构造器和说明 |
|---|
AbstractNonStreamingHasher() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract long |
doFinal(byte[] bytes,
int off,
int len)
对指定bytes 范围进行 hash运算
|
long |
hash(byte[] bytes,
int length,
long seed)
一次性计算 hash
Calculate a hash using bytes from 0 to
length, and
the provided seed value |
public long hash(byte[] bytes,
int length,
long seed)
AbstractHasher
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 valueprotected abstract long doFinal(byte[] bytes,
int off,
int len)
bytes - bytes数组off - 起始位置len - 要进行hash的byte长度Copyright © 2022. All rights reserved.