예제 #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();
 }
예제 #2
0
파일: ZlibCodec.cs 프로젝트: tvrjcf/Demo
 /// <summary>
 /// 重置解压状态。
 /// </summary>
 /// <returns>如果正常返回 ZlibState.Success 。</returns>
 public void ResetDeflate()
 {
     Thrower.ThrowZlibExceptionIf(DState == null, "没有初始化 Deflate 状态。");
     DState.Reset();
 }