类 CRC64
- java.lang.Object
-
- com.tencent.cos.xml.utils.CRC64
-
- 所有已实现的接口:
java.util.zip.Checksum
public class CRC64 extends java.lang.Object implements java.util.zip.ChecksumCRC-64 implementation with ability to combine checksums calculated over different blocks of data. Standard ECMA-182, http://www.ecma-international.org/publications/standards/Ecma-182.htm
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static longcombine(long crc1, long crc2, long len2)static CRC64combine(CRC64 summ1, CRC64 summ2, long len2)static CRC64fromBytes(byte[] b)Construct new CRC64 instance from byte array.byte[]getBytes()Get 8 byte representation of current CRC64 value.longgetValue()Get long representation of current CRC64 value.voidreset()voidupdate(byte b)Update CRC64 with new byte.voidupdate(byte[] b, int len)Update CRC64 with new byte block.voidupdate(byte[] b, int off, int len)voidupdate(int b)
-
-
-
方法详细资料
-
fromBytes
public static CRC64 fromBytes(byte[] b)
Construct new CRC64 instance from byte array.
-
getBytes
public byte[] getBytes()
Get 8 byte representation of current CRC64 value.
-
getValue
public long getValue()
Get long representation of current CRC64 value.- 指定者:
getValue在接口中java.util.zip.Checksum
-
update
public void update(byte[] b, int len)Update CRC64 with new byte block.
-
update
public void update(byte b)
Update CRC64 with new byte.
-
update
public void update(int b)
- 指定者:
update在接口中java.util.zip.Checksum
-
update
public void update(byte[] b, int off, int len)- 指定者:
update在接口中java.util.zip.Checksum
-
reset
public void reset()
- 指定者:
reset在接口中java.util.zip.Checksum
-
combine
public static long combine(long crc1, long crc2, long len2)
-
-