Class CRC


  • class CRC
    extends java.lang.Object
    A simple class the hold and calculate the CRC for sanity checking of the data.
    Author:
    Keiron Liddle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int[] crc32Table  
      (package private) int globalCrc  
    • Constructor Summary

      Constructors 
      Constructor Description
      CRC()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getFinalCRC()  
      (package private) int getGlobalCRC()  
      (package private) void initialiseCRC()  
      (package private) void setGlobalCRC​(int newCrc)  
      (package private) void updateCRC​(int inCh)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • crc32Table

        public static int[] crc32Table
      • globalCrc

        int globalCrc
    • Constructor Detail

      • CRC

        public CRC()
    • Method Detail

      • initialiseCRC

        void initialiseCRC()
      • getFinalCRC

        int getFinalCRC()
      • getGlobalCRC

        int getGlobalCRC()
      • setGlobalCRC

        void setGlobalCRC​(int newCrc)
      • updateCRC

        void updateCRC​(int inCh)