Exemple #1
0
        public override byte[] ReadBytes(int count)
        {
            var result = base.ReadBytes(count);

            this.currentCrc = RarCRC.CheckCrc(this.currentCrc, result, 0, result.Length);
            return(result);
        }
        public override byte ReadByte()
        {
            var b = base.ReadByte();

            _currentCrc = RarCRC.CheckCrc(_currentCrc, b);
            return(b);
        }
Exemple #3
0
 protected void UpdateCrc(byte b)
 {
     this.currentCrc = RarCRC.CheckCrc(this.currentCrc, b);
 }
 protected void UpdateCrc(byte b)
 {
     _currentCrc = RarCRC.CheckCrc(_currentCrc, b);
 }