Lines Matching defs:c_stream
204 z_stream c_stream; /* compression stream */
208 c_stream.zalloc = zalloc;
209 c_stream.zfree = zfree;
210 c_stream.opaque = (voidpf)0;
212 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
215 c_stream.next_in = (z_const unsigned char *)hello;
216 c_stream.next_out = compr;
218 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
219 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
220 err = deflate(&c_stream, Z_NO_FLUSH);
225 c_stream.avail_out = 1;
226 err = deflate(&c_stream, Z_FINISH);
231 err = deflateEnd(&c_stream);
283 z_stream c_stream; /* compression stream */
286 c_stream.zalloc = zalloc;
287 c_stream.zfree = zfree;
288 c_stream.opaque = (voidpf)0;
290 err = deflateInit(&c_stream, Z_BEST_SPEED);
293 c_stream.next_out = compr;
294 c_stream.avail_out = (uInt)comprLen;
299 c_stream.next_in = uncompr;
300 c_stream.avail_in = (uInt)uncomprLen;
301 err = deflate(&c_stream, Z_NO_FLUSH);
303 if (c_stream.avail_in != 0) {
309 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);
310 c_stream.next_in = compr;
311 c_stream.avail_in = (uInt)comprLen/2;
312 err = deflate(&c_stream, Z_NO_FLUSH);
316 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED);
317 c_stream.next_in = uncompr;
318 c_stream.avail_in = (uInt)uncomprLen;
319 err = deflate(&c_stream, Z_NO_FLUSH);
322 err = deflate(&c_stream, Z_FINISH);
327 err = deflateEnd(&c_stream);
379 z_stream c_stream; /* compression stream */
383 c_stream.zalloc = zalloc;
384 c_stream.zfree = zfree;
385 c_stream.opaque = (voidpf)0;
387 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
390 c_stream.next_in = (z_const unsigned char *)hello;
391 c_stream.next_out = compr;
392 c_stream.avail_in = 3;
393 c_stream.avail_out = (uInt)*comprLen;
394 err = deflate(&c_stream, Z_FULL_FLUSH);
398 c_stream.avail_in = len - 3;
400 err = deflate(&c_stream, Z_FINISH);
404 err = deflateEnd(&c_stream);
407 *comprLen = c_stream.total_out;
461 z_stream c_stream; /* compression stream */
464 c_stream.zalloc = zalloc;
465 c_stream.zfree = zfree;
466 c_stream.opaque = (voidpf)0;
468 err = deflateInit(&c_stream, Z_BEST_COMPRESSION);
471 err = deflateSetDictionary(&c_stream,
475 dictId = c_stream.adler;
476 c_stream.next_out = compr;
477 c_stream.avail_out = (uInt)comprLen;
479 c_stream.next_in = (z_const unsigned char *)hello;
480 c_stream.avail_in = (uInt)strlen(hello)+1;
482 err = deflate(&c_stream, Z_FINISH);
487 err = deflateEnd(&c_stream);