def _calc_crc(self, decoded): """ Calculate the CRC based on the decoded content passed in """ self._escape = crc32(decoded, self._escape) self._crc = (self._escape ^ -1)