Class Pixy2.Checksum

  • Enclosing class:
    Pixy2

    public static class Pixy2.Checksum
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Checksum()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChecksum()
      Returns calculated checksum
      void reset()
      Resets checksum
      void updateChecksum​(int b)
      Adds byte to checksum
      • Methods inherited from class java.lang.Object

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

      • Checksum

        public Checksum()
    • Method Detail

      • updateChecksum

        public void updateChecksum​(int b)
        Adds byte to checksum
        Parameters:
        b - Byte to be added
      • getChecksum

        public int getChecksum()
        Returns calculated checksum
        Returns:
        Calculated checksum
      • reset

        public void reset()
        Resets checksum