public interface Checksum
表示数据校验和的接口。
| 方法摘要 | |
|---|---|
long |
getValue() 返回当前的校验和值。 |
void |
reset() 将校验和重置为其初始值。 |
void |
update(byte[] b, int off, int len) 使用指定的字节数组更新当前校验和。 |
void |
update(int b) 使用指定字节更新当前校验和。 |
| 方法详细信息 |
|---|
void update(int b)
b - 更新校验和要使用的字节
void update(byte[] b,
int off,
int len)
b - 更新校验和要使用的字节数组
off - 数据的初始偏移量
len - 用于更新的字节数
long getValue()
void reset()