Class CRC32C

java.lang.Object
software.amazon.awssdk.crt.checksums.CRC32C
All Implemented Interfaces:
Cloneable, Checksum

public class CRC32C extends Object implements Checksum, Cloneable
CRT implementation of the Java Checksum interface for making Crc32c checksum calculations
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
     
    long
    Returns the current checksum value.
    void
    Resets the checksum to its initial value.
    void
    update(byte[] b)
     
    void
    update(byte[] b, int off, int len)
    Updates the current checksum with the specified array of bytes.
    void
    update(int b)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CRC32C

      public CRC32C()
      Default constructor
  • Method Details

    • clone

      public Object clone()
    • getValue

      public long getValue()
      Returns the current checksum value.
      Specified by:
      getValue in interface Checksum
      Returns:
      the current checksum value.
    • reset

      public void reset()
      Resets the checksum to its initial value.
      Specified by:
      reset in interface Checksum
    • update

      public void update(byte[] b, int off, int len)
      Updates the current checksum with the specified array of bytes.
      Specified by:
      update in interface Checksum
      Parameters:
      b - the byte array to update the checksum with
      off - the starting offset within b of the data to use
      len - the number of bytes to use in the update
    • update

      public void update(byte[] b)
    • update

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