#include <Bzip2Compressor.h>
|
| enum | CompressionLevel { levelDefault = -1,
levelStore = 0,
levelFastest = 1,
levelBest = 9
} |
| |
| enum | CompressionMethod { methodStore = 0,
methodDeflate = 8,
methodBzip2 = 12,
methodWinZipAes = 99
} |
| |
| enum | CompressorType { typeDeflate = 1,
typeBzip2,
typePPMd
} |
| |
|
typedef CZipArray< COffsetsPair * > | CZipOffsetsPairsArray |
| |
| static CZipCompressor * | CreateCompressor (WORD uMethod, CZipStorage *pStorage) |
| |
| static bool | IsCompressionSupported (WORD uCompressionMethod) |
| |
| ZIP_SIZE_TYPE | m_uComprLeft |
| | The number of bytes left to compress.
|
| |
| DWORD | m_uCrc32 |
| | The CRC32 file checksum.
|
| |
| ZIP_SIZE_TYPE | m_uUncomprLeft |
| | The number of bytes left to decompress.
|
| |
| static void * | _zipalloc (void *opaque, UINT items, UINT size) |
| |
| static void | _zipfree (void *opaque, void *address) |
| |
| bool | m_bDecompressionDone |
| |
A compressor that uses the bzip2 algorithm.
- See Also
- Compressing Data
| ZipArchiveLib::CBzip2Compressor::CBzip2Compressor |
( |
CZipStorage * |
pStorage | ) |
|
Initializes a new instance of the CBzip2Compressor class.
- Parameters
-
| pStorage | The current storage object. |
| bool ZipArchiveLib::CBzip2Compressor::CanProcess |
( |
WORD |
uMethod | ) |
|
|
inlinevirtual |
Returns the value indicating whether the current CZipCompressor object supports the given compression method.
- Parameters
-
- Returns
true, if the compression method is supported; false otherwise.
Implements CZipCompressor.
| void ZipArchiveLib::CBzip2Compressor::Compress |
( |
const void * |
pBuffer, |
|
|
DWORD |
uSize |
|
) |
| |
|
virtual |
| int ZipArchiveLib::CBzip2Compressor::ConvertInternalError |
( |
int |
iErr | ) |
const |
|
inlineprotectedvirtual |
Converts an 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::CBzip2Compressor::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::CBzip2Compressor::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::CBzip2Compressor::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.
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. It can be NULL, if no encryption is used. |
- See Also
- Compress
-
FinishCompression
Reimplemented from CZipCompressor.
| bool ZipArchiveLib::CBzip2Compressor::IsCodeErrorOK |
( |
int |
iErr | ) |
const |
|
inlineprotectedvirtual |
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: