System.ZLib.ZDecompressStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ZDecompressStream(inStream, outStream: TStream);

C++

extern DELPHI_PACKAGE void __fastcall ZDecompressStream(System::Classes::TStream* inStream, System::Classes::TStream* outStream);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.ZLib.pas
System.ZLib.hpp
System.ZLib System.ZLib

Description

ZDecompressStream decompresses the source stream represented by inStream into the destination stream represented by outStream.

ZDecompressStream may raise an EZDecompressionError.

See sample:

procedure myDecompress(sourcePath, destPath: string);
var
  Source, Dest: TFileStream;
begin
  Source := TFileStream.Create(sourcePath, fmOpenRead);
  Dest := TFileStream.Create(destPath, fmCreate or fmOpenWrite);
  ZDecompressStream(Source, Dest, zcDefault);
end;

See Also