Lines Matching refs:c_stream
221 z_stream c_stream; /* compression stream */ local
225 c_stream.zalloc = zalloc;
226 c_stream.zfree = zfree;
227 c_stream.opaque = (voidpf)0;
229 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
232 c_stream.next_in = (z_const unsigned char *)hello;
233 c_stream.next_out = compr;
235 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
236 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
237 err = deflate(&c_stream, Z_NO_FLUSH);
242 c_stream.avail_out = 1;
243 err = deflate(&c_stream, Z_FINISH);
248 err = deflateEnd(&c_stream);
300 z_stream c_stream; /* compression stream */ local
303 c_stream.zalloc = zalloc;
304 c_stream.zfree = zfree;
305 c_stream.opaque = (voidpf)0;
307 err = deflateInit(&c_stream, Z_BEST_SPEED);
310 c_stream.next_out = compr;
311 c_stream.avail_out = (uInt)comprLen;
316 c_stream.next_in = uncompr;
317 c_stream.avail_in = (uInt)uncomprLen;
318 err = deflate(&c_stream, Z_NO_FLUSH);
320 if (c_stream.avail_in != 0) {
326 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);
327 c_stream.next_in = compr;
328 c_stream.avail_in = (uInt)comprLen/2;
329 err = deflate(&c_stream, Z_NO_FLUSH);
333 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED);
334 c_stream.next_in = uncompr;
335 c_stream.avail_in = (uInt)uncomprLen;
336 err = deflate(&c_stream, Z_NO_FLUSH);
339 err = deflate(&c_stream, Z_FINISH);
344 err = deflateEnd(&c_stream);
396 z_stream c_stream; /* compression stream */ local
400 c_stream.zalloc = zalloc;
401 c_stream.zfree = zfree;
402 c_stream.opaque = (voidpf)0;
404 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
407 c_stream.next_in = (z_const unsigned char *)hello;
408 c_stream.next_out = compr;
409 c_stream.avail_in = 3;
410 c_stream.avail_out = (uInt)*comprLen;
411 err = deflate(&c_stream, Z_FULL_FLUSH);
415 c_stream.avail_in = len - 3;
417 err = deflate(&c_stream, Z_FINISH);
421 err = deflateEnd(&c_stream);
424 *comprLen = c_stream.total_out;
478 z_stream c_stream; /* compression stream */ local
481 c_stream.zalloc = zalloc;
482 c_stream.zfree = zfree;
483 c_stream.opaque = (voidpf)0;
485 err = deflateInit(&c_stream, Z_BEST_COMPRESSION);
488 err = deflateSetDictionary(&c_stream,
492 dictId = c_stream.adler;
493 c_stream.next_out = compr;
494 c_stream.avail_out = (uInt)comprLen;
496 c_stream.next_in = (z_const unsigned char *)hello;
497 c_stream.avail_in = (uInt)strlen(hello)+1;
499 err = deflate(&c_stream, Z_FINISH);
504 err = deflateEnd(&c_stream);