internal int inflateReset(ZStream z) { if (z == null || z.istate == null) return Z_STREAM_ERROR; z.total_in = z.total_out = 0; z.msg = null; z.istate.mode = z.istate.nowrap != 0?BLOCKS:METHOD; z.istate.blocks.reset(z, null); return Z_OK; }