Class SdkCrc32Checksum

    • Method Detail

      • combine

        public static long combine​(Long crcPairOne,
                                   Long crcPair,
                                   long originalLengthOfCrc32)
        Combines two CRC32 values into a single CRC using the specified combine matrices. Please refer CrcCombineChecksumUtil.combine(long, long, long, long[][])
        Parameters:
        crcPair - A pair of CRC values to combine.
        originalLengthOfCrc32 - The length of the original data.
        Returns:
        The combined CRC value.
      • 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 offset,
                           int len)
        Specified by:
        update in interface Checksum
      • update

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