Lines Matching refs:decomp
80 deflate_global(u_int8_t *data, u_int32_t size, int decomp, u_int8_t **out,
83 /* decomp indicates whether we compress (0) or decompress (1) */
100 if (!decomp) {
120 error = decomp ? inflateInit2(&zbuf, window_inflate) :
127 error = decomp ? inflate(&zbuf, Z_SYNC_FLUSH) :
140 else if (decomp && (error == Z_OK || error == Z_BUF_ERROR)
179 if (decomp)
186 if (decomp)
228 int decomp, u_int8_t **out, int size_hint)
230 /* decomp indicates whether we compress (0) or decompress (1) */
239 DPRINTF("decomp %d, size %u\n", decomp, size);
246 if (!decomp) {
312 error = decomp ? inflateInit2(&zbuf, window_inflate) :
321 DPRINTF("pre: %s in:%u out:%u\n", decomp ? "deflate()" : "inflate()",
323 error = decomp ? inflate(&zbuf, Z_SYNC_FLUSH) :
325 DPRINTF("post: %s in:%u out:%u\n", decomp ? "deflate()" : "inflate()",
334 else if (decomp && error == Z_BUF_ERROR
353 if (decomp) {
367 if (decomp)
377 if (decomp) {
395 if (!decomp) {
420 if (decomp)