• Home
  • Raw
  • Download

Lines Matching refs:d_stream

232     d_stream: z_stream; (* decompression stream *)
236 d_stream.zalloc := NIL;
237 d_stream.zfree := NIL;
238 d_stream.opaque := NIL;
240 d_stream.next_in := compr;
241 d_stream.avail_in := 0;
242 d_stream.next_out := uncompr;
244 err := inflateInit(d_stream);
247 while (d_stream.total_out < uncomprLen) and
248 (d_stream.total_in < comprLen) do
250 d_stream.avail_out := 1; (* force small buffers *)
251 d_stream.avail_in := 1;
252 err := inflate(d_stream, Z_NO_FLUSH);
258 err := inflateEnd(d_stream);
327 d_stream: z_stream; (* decompression stream *)
331 d_stream.zalloc := NIL;
332 d_stream.zfree := NIL;
333 d_stream.opaque := NIL;
335 d_stream.next_in := compr;
336 d_stream.avail_in := Integer(comprLen);
338 err := inflateInit(d_stream);
343 d_stream.next_out := uncompr; (* discard the output *)
344 d_stream.avail_out := Integer(uncomprLen);
345 err := inflate(d_stream, Z_NO_FLUSH);
351 err := inflateEnd(d_stream);
354 if d_stream.total_out <> 2 * uncomprLen + comprLen div 2 then
356 WriteLn('bad large inflate: ', d_stream.total_out);
410 d_stream: z_stream; (* decompression stream *)
414 d_stream.zalloc := NIL;
415 d_stream.zfree := NIL;
416 d_stream.opaque := NIL;
418 d_stream.next_in := compr;
419 d_stream.avail_in := 2; (* just read the zlib header *)
421 err := inflateInit(d_stream);
424 d_stream.next_out := uncompr;
425 d_stream.avail_out := Integer(uncomprLen);
427 inflate(d_stream, Z_NO_FLUSH);
430 d_stream.avail_in := Integer(comprLen-2); (* read all compressed data *)
431 err := inflateSync(d_stream); (* but skip the damaged part *)
434 err := inflate(d_stream, Z_FINISH);
439 err := inflateEnd(d_stream);
487 d_stream: z_stream; (* decompression stream *)
491 d_stream.zalloc := NIL;
492 d_stream.zfree := NIL;
493 d_stream.opaque := NIL;
495 d_stream.next_in := compr;
496 d_stream.avail_in := Integer(comprLen);
498 err := inflateInit(d_stream);
501 d_stream.next_out := uncompr;
502 d_stream.avail_out := Integer(uncomprLen);
506 err := inflate(d_stream, Z_NO_FLUSH);
511 if d_stream.adler <> dictId then
513 err := inflateSetDictionary(d_stream, dictionary, StrLen(dictionary));
518 err := inflateEnd(d_stream);