Topic Path: Pending > TIdCompressorZLibEx.DecompressStream@TStream@Integer@TStream
ContentsIndexHome
PreviousUpNext
TIdCompressorZLibEx.DecompressStream@TStream@Integer@TStream

Implements stream-based decompression using the ZLib library.

Parameters 
Description 
AStream 
Stream with data for the decompression operation.
 
AWindowBits 
Number of bits used for the ZLib decompression window.
 
AOutStream 
Stream for the decompressed contents from the opetration. The default value is nil. 

DecompressStream is an overridden procedure that implements the abstract virtual method declared in the ancestor class. 

AStream is the stream containing the compressed contents used in the decompression operation. 

AOutStream is the stream used to store the decompressed contents from the operation. AOutStream is cleared prior to outputting the decompressed contents from the operation. When AOutStream is omitted, the stream in AStream is cleared and reused for the output from the decompression operation. 

Use AWindowsBits and AMemLevel to control the memory footprint required to perform in-memory decompression using the ZLib library.

Exceptions 
Description 
DecompressStream can raise an EIdCompressorInitFailure exception if the ZLib library cannot be initialized using the parameters for the method.
 
CompressStream may raise an EIdDecompressionError exception during the decompression operation. 
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.