Reset() private method

private Reset ( ) : void
return void
Exemplo n.º 1
0
 /// <summary>
 /// Reset a codec for another deflation session.
 /// </summary>
 /// <remarks>
 /// Call this to reset the deflation state.  For example if a thread is deflating
 /// non-consecutive blocks, you can call Reset() after the Deflate(Sync) of the first
 /// block and before the next Deflate(None) of the second block.
 /// </remarks>
 /// <returns>Z_OK if all goes well.</returns>
 public void ResetDeflate()
 {
     if (dstate == null)
     {
         throw new ZlibException("No Deflate State!");
     }
     dstate.Reset();
 }