public virtual void End() { if (z == null) return; if (compress) z.deflateEnd(); else z.inflateEnd(); z.free(); z = null; }