public class CRC8
extends java.lang.Object
implements java.util.zip.Checksum
public CRC8(int polynomial,
short init)
polynomial - Polynomial, typically one of the POLYNOMIAL_* constants.init - Initial value, typically either 0xff or zero.public void update(byte[] buffer,
int offset,
int len)
update 在接口中 java.util.zip.Checksumpublic void update(byte[] buffer)
update(buffer, 0, buffer.length).buffer - the byte array to update the checksum withpublic void update(int b)
update 在接口中 java.util.zip.Checksumpublic long getValue()
getValue 在接口中 java.util.zip.Checksumpublic void reset()
reset 在接口中 java.util.zip.ChecksumCopyright © 2019. All rights reserved.