Home | History | Annotate | Download | only in zlib

Lines Matching refs:c_stream

173     z_stream c_stream; /* compression stream */
177 c_stream.zalloc = (alloc_func)0;
178 c_stream.zfree = (free_func)0;
179 c_stream.opaque = (voidpf)0;
181 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
184 c_stream.next_in = (Bytef*)hello;
185 c_stream.next_out = compr;
187 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
188 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
189 err = deflate(&c_stream, Z_NO_FLUSH);
194 c_stream.avail_out = 1;
195 err = deflate(&c_stream, Z_FINISH);
200 err = deflateEnd(&c_stream);
252 z_stream c_stream; /* compression stream */
255 c_stream.zalloc = (alloc_func)0;
256 c_stream.zfree = (free_func)0;
257 c_stream.opaque = (voidpf)0;
259 err = deflateInit(&c_stream, Z_BEST_SPEED);
262 c_stream.next_out = compr;
263 c_stream.avail_out = (uInt)comprLen;
268 c_stream.next_in = uncompr;
269 c_stream.avail_in = (uInt)uncomprLen;
270 err = deflate(&c_stream, Z_NO_FLUSH);
272 if (c_stream.avail_in != 0) {
278 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);
279 c_stream.next_in = compr;
280 c_stream.avail_in = (uInt)comprLen/2;
281 err = deflate(&c_stream, Z_NO_FLUSH);
285 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED);
286 c_stream.next_in = uncompr;
287 c_stream.avail_in = (uInt)uncomprLen;
288 err = deflate(&c_stream, Z_NO_FLUSH);
291 err = deflate(&c_stream, Z_FINISH);
296 err = deflateEnd(&c_stream);
348 z_stream c_stream; /* compression stream */
352 c_stream.zalloc = (alloc_func)0;
353 c_stream.zfree = (free_func)0;
354 c_stream.opaque = (voidpf)0;
356 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);
359 c_stream.next_in = (Bytef*)hello;
360 c_stream.next_out = compr;
361 c_stream.avail_in = 3;
362 c_stream.avail_out = (uInt)*comprLen;
363 err = deflate(&c_stream, Z_FULL_FLUSH);
367 c_stream.avail_in = len - 3;
369 err = deflate(&c_stream, Z_FINISH);
373 err = deflateEnd(&c_stream);
376 *comprLen = c_stream.total_out;
430 z_stream c_stream; /* compression stream */
433 c_stream.zalloc = (alloc_func)0;
434 c_stream.zfree = (free_func)0;
435 c_stream.opaque = (voidpf)0;
437 err = deflateInit(&c_stream, Z_BEST_COMPRESSION);
440 err = deflateSetDictionary(&c_stream,
444 dictId = c_stream.adler;
445 c_stream.next_out = compr;
446 c_stream.avail_out = (uInt)comprLen;
448 c_stream.next_in = (Bytef*)hello;
449 c_stream.avail_in = (uInt)strlen(hello)+1;
451 err = deflate(&c_stream, Z_FINISH);
456 err = deflateEnd(&c_stream);