Implements stream-based compression using the ZLib compression library.
Parameters |
Description |
AStream |
Stream with content to be commpressed using the ZLib library. |
ALevel |
Compression level for the operation. |
AWindowBits |
Number of bits used for the ZLib compression window. |
AMemLevel |
Memory level used in the ZLib library. |
AStrategy |
Compression strategy to use for the operation. |
AOutStream |
Stream used to store zlib-compressed output. |
CompressStream is an overridden procedure that implements the abstract virtual method declared in the ancestor class.
AStream is the stream containing the uncompressed contents used in the compression operation.
AOutStream is the stream used to store the compressed contents from the compression operation. AOutStream is cleared prior to outputting the compressed contents from the operation. When AOutStream is omitted, the stream in AStream is cleared and reused for the output from the compression operation.
Use ALevel to indicate the desired compression level for the operation.
Use AWindowsBits and AMemLevel to control the memory footprint required to perform in-memory compression using the ZLib library.
Use AStrategy to control the RLE-encoding strategy used in the compression operation.
Exceptions |
Description |
CompressStream can raise an EIdCompressorInitFailure exception if the ZLib library cannot be initialized using the parameters for the method. | |
CompressStream may raise an EIdCompressionError exception during the compression operation. |
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|