Lines Matching refs:c_stream
229 z_stream c_stream; /* compression stream */ local
233 c_stream.zalloc = zalloc;
234 c_stream.zfree = zfree;
235 c_stream.opaque = (voidpf)0;
237 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
240 c_stream.next_in = (z_const unsigned char *)hello;
241 c_stream.next_out = compr;
243 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
244 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
245 err = deflate(&c_stream, Z_NO_FLUSH);
250 c_stream.avail_out = 1;
251 err = deflate(&c_stream, Z_FINISH);
256 err = deflateEnd(&c_stream);
308 z_stream c_stream; /* compression stream */ local
311 c_stream.zalloc = zalloc;
312 c_stream.zfree = zfree;
313 c_stream.opaque = (voidpf)0;
315 err = deflateInit(&c_stream, Z_BEST_SPEED);
318 c_stream.next_out = compr;
319 c_stream.avail_out = (uInt)comprLen;
324 c_stream.next_in = uncompr;
325 c_stream.avail_in = (uInt)uncomprLen;
326 err = deflate(&c_stream, Z_NO_FLUSH);
328 if (c_stream.avail_in != 0) {
334 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);
335 c_stream.next_in = compr;
336 c_stream.avail_in = (uInt)comprLen/2;
337 err = deflate(&c_stream, Z_NO_FLUSH);
341 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED);
342 c_stream.next_in = uncompr;
343 c_stream.avail_in = (uInt)uncomprLen;
344 err = deflate(&c_stream, Z_NO_FLUSH);
347 err = deflate(&c_stream, Z_FINISH);
352 err = deflateEnd(&c_stream);
404 z_stream c_stream; /* compression stream */ local
408 c_stream.zalloc = zalloc;
409 c_stream.zfree = zfree;
410 c_stream.opaque = (voidpf)0;
412 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
415 c_stream.next_in = (z_const unsigned char *)hello;
416 c_stream.next_out = compr;
417 c_stream.avail_in = 3;
418 c_stream.avail_out = (uInt)*comprLen;
419 err = deflate(&c_stream, Z_FULL_FLUSH);
423 c_stream.avail_in = len - 3;
425 err = deflate(&c_stream, Z_FINISH);
429 err = deflateEnd(&c_stream);
432 *comprLen = c_stream.total_out;
486 z_stream c_stream; /* compression stream */ local
489 c_stream.zalloc = zalloc;
490 c_stream.zfree = zfree;
491 c_stream.opaque = (voidpf)0;
493 err = deflateInit(&c_stream, Z_BEST_COMPRESSION);
496 err = deflateSetDictionary(&c_stream,
500 dictId = c_stream.adler;
501 c_stream.next_out = compr;
502 c_stream.avail_out = (uInt)comprLen;
504 c_stream.next_in = (z_const unsigned char *)hello;
505 c_stream.avail_in = (uInt)strlen(hello)+1;
507 err = deflate(&c_stream, Z_FINISH);
512 err = deflateEnd(&c_stream);