Lines Matching full:cx

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