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
      private static int[] CRC32_TABLE  
      private int m_globalCrc  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CRC()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getFinalCRC()  
      (package private) void initialiseCRC()  
      (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

      • CRC32_TABLE

        private static int[] CRC32_TABLE
      • m_globalCrc

        private int m_globalCrc
    • Constructor Detail

      • CRC

        protected CRC()
    • Method Detail

      • getFinalCRC

        int getFinalCRC()
      • initialiseCRC

        void initialiseCRC()
      • updateCRC

        void updateCRC​(int inCh)