Class CRC32

java.lang.Object
com.jcraft.jzlib.CRC32
All Implemented Interfaces:
Checksum

public final class CRC32 extends Object implements Checksum
  • Field Details

    • v

      private int v
    • crc_table

      private static int[] crc_table
    • GF2_DIM

      private static final int GF2_DIM
      See Also:
  • Constructor Details

    • CRC32

      public CRC32()
  • Method Details

    • update

      public void update(byte[] buf, int index, int len)
      Specified by:
      update in interface Checksum
    • reset

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

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

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

      static long combine(long crc1, long crc2, long len2)
    • gf2_matrix_times

      private static long gf2_matrix_times(long[] mat, long vec)
    • gf2_matrix_square

      static final void gf2_matrix_square(long[] square, long[] mat)
    • copy

      public CRC32 copy()
      Specified by:
      copy in interface Checksum
    • getCRC32Table

      public static int[] getCRC32Table()