• Home
  • Raw
  • Download

Lines Matching refs:c_stream

185 var c_stream: z_stream; (* compression stream *)
191 c_stream.zalloc := NIL;
192 c_stream.zfree := NIL;
193 c_stream.opaque := NIL;
195 err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
198 c_stream.next_in := hello;
199 c_stream.next_out := compr;
201 while (c_stream.total_in <> len) and
202 (c_stream.total_out < comprLen) do
204 c_stream.avail_out := 1; { force small buffers }
205 c_stream.avail_in := 1;
206 err := deflate(c_stream, Z_NO_FLUSH);
213 c_stream.avail_out := 1;
214 err := deflate(c_stream, Z_FINISH);
220 err := deflateEnd(c_stream);
274 var c_stream: z_stream; (* compression stream *)
277 c_stream.zalloc := NIL;
278 c_stream.zfree := NIL;
279 c_stream.opaque := NIL;
281 err := deflateInit(c_stream, Z_BEST_SPEED);
284 c_stream.next_out := compr;
285 c_stream.avail_out := Integer(comprLen);
290 c_stream.next_in := uncompr;
291 c_stream.avail_in := Integer(uncomprLen);
292 err := deflate(c_stream, Z_NO_FLUSH);
294 if c_stream.avail_in <> 0 then
298 deflateParams(c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY);
299 c_stream.next_in := compr;
300 c_stream.avail_in := Integer(comprLen div 2);
301 err := deflate(c_stream, Z_NO_FLUSH);
305 deflateParams(c_stream, Z_BEST_COMPRESSION, Z_FILTERED);
306 c_stream.next_in := uncompr;
307 c_stream.avail_in := Integer(uncomprLen);
308 err := deflate(c_stream, Z_NO_FLUSH);
311 err := deflate(c_stream, Z_FINISH);
315 err := deflateEnd(c_stream);
369 var c_stream: z_stream; (* compression stream *)
375 c_stream.zalloc := NIL;
376 c_stream.zfree := NIL;
377 c_stream.opaque := NIL;
379 err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
382 c_stream.next_in := hello;
383 c_stream.next_out := compr;
384 c_stream.avail_in := 3;
385 c_stream.avail_out := Integer(comprLen);
386 err := deflate(c_stream, Z_FULL_FLUSH);
390 c_stream.avail_in := len - 3;
392 err := deflate(c_stream, Z_FINISH);
396 err := deflateEnd(c_stream);
399 comprLen := c_stream.total_out;
451 var c_stream: z_stream; (* compression stream *)
454 c_stream.zalloc := NIL;
455 c_stream.zfree := NIL;
456 c_stream.opaque := NIL;
458 err := deflateInit(c_stream, Z_BEST_COMPRESSION);
461 err := deflateSetDictionary(c_stream, dictionary, StrLen(dictionary));
464 dictId := c_stream.adler;
465 c_stream.next_out := compr;
466 c_stream.avail_out := Integer(comprLen);
468 c_stream.next_in := hello;
469 c_stream.avail_in := StrLen(hello)+1;
471 err := deflate(c_stream, Z_FINISH);
475 err := deflateEnd(c_stream);