Class SdkCrc32CChecksum

java.lang.Object
software.amazon.awssdk.checksums.internal.SdkCrc32CChecksum
All Implemented Interfaces:
Cloneable, Checksum

public final class SdkCrc32CChecksum extends Object implements Checksum, Cloneable
  • Method Details

    • create

      public static SdkCrc32CChecksum create()
    • 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
    • clone

      public SdkCrc32CChecksum clone()