Lines Matching defs:cx

47     z_stream cx;
62 deflateReset(&state->cx);
104 state->cx.next_out = wp;
105 state->cx.avail_out = DEFLATE_CHUNK_LEN - 2;
106 state->cx.next_in = MBUF_CTOP(mi);
107 state->cx.avail_in = mi->m_len;
112 if ((res = deflate(&state->cx, flush)) != Z_OK) {
116 res, state->cx.msg ? state->cx.msg : "");
123 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0)
126 if (state->cx.avail_in == 0 && mi->m_next != NULL) {
128 state->cx.next_in = MBUF_CTOP(mi);
129 state->cx.avail_in = mi->m_len;
134 if (state->cx.avail_out == 0) {
139 state->cx.next_out = MBUF_CTOP(mo);
140 state->cx.avail_out = DEFLATE_CHUNK_LEN;
144 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out);
194 inflateReset(&state->cx);
246 state->cx.next_in = MBUF_CTOP(mi);
247 state->cx.avail_in = mi->m_len;
248 state->cx.next_out = wp + 1;
249 state->cx.avail_out = 1;
257 if ((res = inflate(&state->cx, flush)) != Z_OK) {
261 res, state->cx.msg ? state->cx.msg : "");
268 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0)
271 if (state->cx.avail_in == 0 && mi && (mi = m_free(mi)) != NULL) {
273 state->cx.next_in = MBUF_CTOP(mi);
274 ilen += (state->cx.avail_in = mi->m_len);
279 if (state->cx.avail_out == 0) {
285 state->cx.next_out--;
286 state->cx.avail_out = DEFLATE_CHUNK_LEN-1;
288 state->cx.avail_out = DEFLATE_CHUNK_LEN-2;
294 state->cx.next_out = MBUF_CTOP(mo);
295 state->cx.avail_out = DEFLATE_CHUNK_LEN;
310 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out);
327 state->cx.next_out = garbage;
328 state->cx.avail_out = sizeof garbage;
329 state->cx.next_in = EMPTY_BLOCK;
330 state->cx.avail_in = sizeof EMPTY_BLOCK;
331 inflate(&state->cx, Z_SYNC_FLUSH);
372 state->cx.next_in = rp;
373 state->cx.avail_in = mi->m_len;
374 state->cx.next_out = garbage;
375 state->cx.avail_out = sizeof garbage;
380 if ((res = inflate(&state->cx, flush)) != Z_OK) {
386 res, state->cx.msg ? state->cx.msg : "");
388 state->cx.avail_in, state->cx.avail_out);
394 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0)
397 if (state->cx.avail_in == 0 && mi && (mi = mi->m_next) != NULL) {
399 state->cx.next_in = MBUF_CTOP(mi);
400 state->cx.avail_in = mi->m_len;
405 if (state->cx.avail_out == 0) {
406 if (state->cx.avail_in == 0)
420 state->cx.next_out = garbage;
421 state->cx.avail_out = sizeof garbage;
496 state->cx.zalloc = NULL;
497 state->cx.opaque = NULL;
498 state->cx.zfree = NULL;
499 state->cx.next_out = NULL;
500 if (inflateInit2(&state->cx, -state->winsize) == Z_OK)
519 state->cx.zalloc = NULL;
520 state->cx.opaque = NULL;
521 state->cx.zfree = NULL;
522 state->cx.next_in = NULL;
523 if (deflateInit2(&state->cx, Z_DEFAULT_COMPRESSION, 8,
540 inflateEnd(&state->cx);
549 deflateEnd(&state->cx);