Lines Matching refs:zbuf
63 z_stream zbuf;
69 bzero(&zbuf, sizeof(z_stream));
73 zbuf.next_in = data; /* data that is going to be processed */
74 zbuf.zalloc = zcalloc;
75 zbuf.zfree = zcfree;
76 zbuf.opaque = Z_NULL;
77 zbuf.avail_in = size; /* Total length of data to be processed */
96 zbuf.next_out = buf[0].out;
97 zbuf.avail_out = buf[0].size;
100 inflateInit2(&zbuf, window_inflate) :
101 deflateInit2(&zbuf, Z_DEFAULT_COMPRESSION, Z_METHOD,
108 inflate(&zbuf, Z_PARTIAL_FLUSH) :
109 deflate(&zbuf, Z_FINISH);
114 if (zbuf.avail_out == 0 && i < (ZBUF - 1)) {
122 zbuf.next_out = buf[i].out;
125 zbuf.avail_out = buf[i].size;
130 result = count = zbuf.total_out;
136 inflateEnd(&zbuf);
138 deflateEnd(&zbuf);
162 inflateEnd(&zbuf);
164 deflateEnd(&zbuf);