/// <summary> /// End a deflation session. /// </summary> /// <remarks> /// Call this after making a series of one or more calls to Deflate(). All buffers are flushed. /// </remarks> /// <returns>Z_OK if all goes well.</returns> public int EndDeflate() { if (dstate == null) { throw new ZlibException("No Deflate State!"); } int ret = dstate.End(); dstate = null; return(ret); }