类 CRC64

  • 所有已实现的接口:
    java.util.zip.Checksum

    public class CRC64
    extends java.lang.Object
    implements java.util.zip.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 long combine​(long crc1, long crc2, long len2)  
      static CRC64 combine​(CRC64 summ1, CRC64 summ2, 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
      • 从接口继承的方法 java.util.zip.Checksum

        update, update
    • 构造器详细资料

      • 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 在接口中 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 CRC64 combine​(CRC64 summ1,
                                    CRC64 summ2,
                                    long len2)
      • combine

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