Class Crc32

java.lang.Object
com.linkedin.alpini.base.hash.Crc32
All Implemented Interfaces:
Checksum

public final class Crc32 extends Object implements Checksum
CRC32 algorithm as used by Deflate.
  • Constructor Details

    • Crc32

      public Crc32()
  • Method Details

    • crc32

      public static int crc32(int crc32, @Nonnull byte[] buf, int index, int len)
    • update

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

      public void update(byte[] b)
      Specified by:
      update in interface Checksum
    • update

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

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

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