code: public void update(int bval) {
          int c = ~crc;
          c = crc_table[(c ^ bval) & 0xff] ^ (c >>> 8);
          crc = ~c;
      }
docs: Updates the checksum with the int bval.
  
  @param bval (the byte is taken as the lower 8 bits of bval)