Contents - Index - Previous - Next


ZLibDecompressBuffer method


 

Applies to

TVCLUnZip component

 

Declaration

 

procedure ZLibDecompressBuffer(const inBuffer: Pointer; inSize: Integer;

                  out outBuffer: Pointer; out outSize: Integer; outEstimate: Integer = 0; HttpCompression: Boolean = False);

 

Description

 

Decompresses data in inBuffer.  Resulting decompressed data will be placed in outBufferinSize is the size of inBuffer.  outSize is the resulting size of the decompressed buffer.  You may pass in an estimate of the resulting size in outEstimate, or let VCLZip estimate for you. Regardless, the resulting outBuffer will be the same size as the amount of decompressed data.

 

Set HttpCompression to True if the compressed data was previously compressed with no ZLib headers. This would mainly be used for http1.1 browser compliant compression. So if the data was previously compressed with one of the ZLib compression methods and HttpCompression was set to true, then you should set HttpCompression to True when uncompressing also.