com.aliyun.oss.common.utils

## 类 CRC64

- java.lang.Object
- - com.aliyun.oss.common.utils.CRC64

- 所有已实现的接口:
    Checksum

      public class CRC64
      extends Object
      implements Checksum

  CRC-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

- - ### 构造器概要

    构造器
    构造器和说明
    `CRC64()`
    `CRC64(byte[] b, int len)`
    `CRC64(long value)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static CRC64` | `combine(CRC64 summ1, CRC64 summ2, long len2)`
    `static long` | `combine(long crc1, long crc2, long len2)`
    `static CRC64` | `fromBytes(byte[] b)` Construct new CRC64 instance from byte array.
    `byte[]` | `getBytes()` Get 8 byte representation of current CRC64 value.
    `long` | `getValue()` Get long representation of current CRC64 value.
    `void` | `reset()`
    `void` | `update(byte b)` Update CRC64 with new byte.
    `void` | `update(byte[] b, int len)` Update CRC64 with new byte block.
    `void` | `update(byte[] b, int off, int len)`
    `void` | `update(int b)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### CRC64

          public CRC64()

    - #### CRC64

          public CRC64(long value)

    - #### CRC64

          public CRC64(byte[] b,
               int len)

  - ### 方法详细资料

    - #### 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` 在接口中 `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` 在接口中 `Checksum`

    - #### update

          public void update(byte[] b,
                    int off,
                    int len)

      指定者:
        `update` 在接口中 `Checksum`

    - #### reset

          public void reset()

      指定者:
        `reset` 在接口中 `Checksum`

    - #### combine

          public static CRC64 combine(CRC64 summ1,
                      CRC64 summ2,
                      long len2)

    - #### combine

          public static long combine(long crc1,
                     long crc2,
                     long len2)

Copyright © 2020. All Rights Reserved.