ZipArchiveLib::CDeflateCompressor Class Reference
#include <DeflateCompressor.h>
List of all members.
Detailed Description
Compresses and decompresses data using the Zlib library.
Constructor & Destructor Documentation
| ZipArchiveLib::CDeflateCompressor::CDeflateCompressor |
( |
CZipStorage * |
pStorage |
) |
|
Initializes a new instance of the CDeflateCompressor class.
- Parameters:
-
| pStorage | The current storage object. |
Member Function Documentation
| bool ZipArchiveLib::CDeflateCompressor::CanProcess |
( |
WORD |
uMethod |
) |
[inline, virtual] |
Returns the value indicating, if the current CZipCompressor object supports the given compression method.
- Parameters:
-
- Returns:
true, if the compression method is supported; false otherwise.
Implements CZipCompressor.
| void ZipArchiveLib::CDeflateCompressor::Compress |
( |
const void * |
pBuffer, |
|
|
DWORD |
uSize | |
|
) |
| | [virtual] |
| int ZipArchiveLib::CDeflateCompressor::ConvertInternalError |
( |
int |
iErr |
) |
const [inline, protected, virtual] |
Converts internal error code of the compressor to the ZipArchive Library error code.
- Parameters:
-
| iErr | An internal error code. |
- Returns:
- A ZipArchive Library error code.
Reimplemented from CZipCompressor.
| DWORD ZipArchiveLib::CDeflateCompressor::Decompress |
( |
void * |
pBuffer, |
|
|
DWORD |
uSize | |
|
) |
| | [virtual] |
Decompresses the given data.
- Parameters:
-
| pBuffer | The buffer that receives the decompressed data. |
| uSize | The size of pBuffer. |
- Returns:
- The number of bytes decompressed and written to pBuffer.
- Note:
- This method should be called repeatedly until it returns 0.
- See also:
- InitDecompression
FinishDecompression
Implements CZipCompressor.
| void ZipArchiveLib::CDeflateCompressor::FinishCompression |
( |
bool |
bAfterException |
) |
[virtual] |
The method called at the end of the compression process.
- Parameters:
-
| bAfterException | Set to true, if an exception occurred before or to false otherwise. |
- See also:
- InitCompression
Compress
Reimplemented from CZipCompressor.
| void ZipArchiveLib::CDeflateCompressor::FinishDecompression |
( |
bool |
bAfterException |
) |
[virtual] |
The method called at the end of the decompression process.
- Parameters:
-
| bAfterException | Set to true, if an exception occurred before or to false otherwise. |
- See also:
- InitDecompression
Decompress
Reimplemented from CZipCompressor.
| COffsetsArray* ZipArchiveLib::CDeflateCompressor::GetOffsetsArray |
( |
|
) |
const [inline] |
The method called when a new file is opened for compression.
- Parameters:
-
| iLevel | The compression level. |
| pFile | The file being compressed. |
| pCryptograph | The current CZipCryptograph. Can be NULL, if no encryption is used. |
- See also:
- Compress
FinishCompression
Reimplemented from CZipCompressor.
| bool ZipArchiveLib::CDeflateCompressor::IsCodeErrorOK |
( |
int |
iErr |
) |
const [inline, protected, virtual] |
| void ZipArchiveLib::CDeflateCompressor::UpdateOptions |
( |
const CZipCompressor::COptions * |
pOptions |
) |
[inline, protected, virtual] |
Updates the current options with the new options.
- Parameters:
-
| pOptions | The new options to apply. |
Reimplemented from CZipCompressor.
The documentation for this class was generated from the following file: