CrcError() static private method

static private CrcError ( ) : void
return void
Esempio n. 1
0
 private void Complete()
 {
     this.storedCombinedCRC = this.BsGetInt32();
     if (this.storedCombinedCRC != (int)this.computedCombinedCRC)
     {
         BZip2InputStream.CrcError();
     }
     this.streamEnd = true;
 }
Esempio n. 2
0
 private void EndBlock()
 {
     this.computedBlockCRC = (int)this.mCrc.Value;
     if (this.storedBlockCRC != this.computedBlockCRC)
     {
         BZip2InputStream.CrcError();
     }
     this.computedCombinedCRC  = ((this.computedCombinedCRC << 1 & uint.MaxValue) | this.computedCombinedCRC >> 31);
     this.computedCombinedCRC ^= (uint)this.computedBlockCRC;
 }