Reset() public method

Reset internal state
public Reset ( ) : void
return void
Example #1
0
 /// <summary>
 /// Resets the deflater.  The deflater acts afterwards as if it was
 /// just created with the same compression level and strategy as it
 /// had before.
 /// </summary>
 public void Reset()
 {
     state    = (noHeader ? BUSY_STATE : INIT_STATE);
     totalOut = 0;
     pending.Reset();
     engine.Reset();
 }
Example #2
0
 public void Reset()
 {
     state    = (noZlibHeaderOrFooter ? 16 : 0);
     totalOut = 0L;
     pending.Reset();
     engine.Reset();
 }