public int EndDeflate() { if (dstate == null) throw new ZlibException("No Deflate State!"); int ret = dstate.End(); dstate = null; return ret; }