[Overview][Types][Classes] |
Create a new instance of the compression stream.
Source position: zstream.pp line 69
public constructor TCompressionStream.Create( |
CompressionLevel: TCompressionLevel; |
Dest: TStream; |
ASkipHeader: Boolean = false |
); |
CompressionLevel |
|
Compression level to use when writing data to the stream |
Dest |
|
Output stream to which compressed data is written. |
ASkipHeader |
|
If set, the deflated data block header is not written to stream |
Createcreates a new instance of the compression stream. It merely calls the inherited constructor with the destination stream Destand stores the compression level.
If ASkipHeaderis set to True, the method will not write the block header to the stream. This is required for deflated data in a zip file.
Note that the compressed data is only completely written after the compression stream is destroyed.
|
Flushe data to the output stream and destroys the compression stream. |