Class SdkCrc32CChecksum

    • Method Detail

      • combine

        public static long combine​(long crc1,
                                   long crc2,
                                   long originalLengthOfCrc2)
        Combines the CRCs of two parts.Please refer CrcCombineChecksumUtil.combine(long, long, long, long[][])
        Parameters:
        crc1 - The CRC of the first part.
        crc2 - The CRC of the second part.
        originalLengthOfCrc2 - The length of the second part's CRC before combining.
        Returns:
        The combined CRC.
      • getValue

        public long getValue()
        Specified by:
        getValue in interface Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface Checksum
      • update

        public void update​(int b)
        Specified by:
        update in interface Checksum