Lines Matching full:strm
55 constructor Create(Strm: TStream);
241 function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar;
243 function deflate(var strm: TZStreamRec; flush: Integer): Integer; external;
244 function deflateEnd(var strm: TZStreamRec): Integer; external;
247 function inflateInit_(var strm: TZStreamRec; version: PChar;
249 function inflate(var strm: TZStreamRec; flush: Integer): Integer; external;
250 function inflateEnd(var strm: TZStreamRec): Integer; external;
251 function inflateReset(var strm: TZStreamRec): Integer; external;
289 strm: TZStreamRec;
292 FillChar(strm, sizeof(strm), 0);
293 strm.zalloc := zlibAllocMem;
294 strm.zfree := zlibFreeMem;
298 strm.next_in := InBuf;
299 strm.avail_in := InBytes;
300 strm.next_out := OutBuf;
301 strm.avail_out := OutBytes;
302 CCheck(deflateInit_(strm, Z_BEST_COMPRESSION, zlib_version, sizeof(strm)));
304 while CCheck(deflate(strm, Z_FINISH)) <> Z_STREAM_END do
309 strm.next_out := PChar(Integer(OutBuf) + (Integer(strm.next_out) - Integer(P)));
310 strm.avail_out := 256;
313 CCheck(deflateEnd(strm));
315 ReallocMem(OutBuf, strm.total_out);
316 OutBytes := strm.total_out;
327 strm: TZStreamRec;
331 FillChar(strm, sizeof(strm), 0);
332 strm.zalloc := zlibAllocMem;
333 strm.zfree := zlibFreeMem;
341 strm.next_in := InBuf;
342 strm.avail_in := InBytes;
343 strm.next_out := OutBuf;
344 strm.avail_out := OutBytes;
345 DCheck(inflateInit_(strm, zlib_version, sizeof(strm)));
347 while DCheck(inflate(strm, Z_NO_FLUSH)) <> Z_STREAM_END do
352 strm.next_out := PChar(Integer(OutBuf) + (Integer(strm.next_out) - Integer(P)));
353 strm.avail_out := BufInc;
356 DCheck(inflateEnd(strm));
358 ReallocMem(OutBuf, strm.total_out);
359 OutBytes := strm.total_out;
369 strm: TZStreamRec;
371 FillChar(strm, sizeof(strm), 0);
372 strm.zalloc := zlibAllocMem;
373 strm.zfree := zlibFreeMem;
374 strm.next_in := InBuf;
375 strm.avail_in := InBytes;
376 strm.next_out := OutBuf;
377 strm.avail_out := BufSize;
378 DCheck(inflateInit_(strm, zlib_version, sizeof(strm)));
380 if DCheck(inflate(strm, Z_FINISH)) <> Z_STREAM_END then
383 DCheck(inflateEnd(strm));
389 constructor TCustomZLibStream.Create(Strm: TStream);
392 FStrm := Strm;
393 FStrmPos := Strm.Position;