System.ZLib.TZCompressionStream.Create

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

constructor Create(dest: TStream); overload;
constructor Create(dest: TStream; compressionLevel: TZCompressionLevel; windowBits: Integer); overload;
constructor Create(compressionLevel: TCompressionLevel; dest: TStream); overload;

C++

__fastcall TZCompressionStream(System::Classes::TStream* dest)/* overload */;
__fastcall TZCompressionStream(System::Classes::TStream* dest, TZCompressionLevel compressionLevel, int windowBits)/* overload */;
__fastcall TZCompressionStream(TCompressionLevel compressionLevel, System::Classes::TStream* dest)/* overload */;

Properties

Type Visibility Source Unit Parent
constructor public
System.ZLib.pas
System.ZLib.hpp
System.ZLib TZCompressionStream

Description

Creates and initializes an instance of a TZCompressionStream object.

Call Create to instantiate a TZCompressionStream object.

The CompressionLevel parameter determines the type of compression algorithm to be used, and must be one of the following: clNone, clFastest, clDefault, or clMax.

The Dest parameter is a TStream object; compressed data will be written to this stream.

Code Examples