Public Types | Public Member Functions | Public Attributes | List of all members
CZipCompressor::COptions Struct Referenceabstract

#include <ZipCompressor.h>

Inheritance diagram for CZipCompressor::COptions:
Inheritance graph

Public Types

enum  Constants { cDefaultBufferSize = 2 * 65536 }
 

Public Member Functions

virtual COptionsClone () const =0
 
virtual int GetType () const =0
 

Public Attributes

int m_iBufferSize
 

Detailed Description

The base class for compressors options.

See Also
Compressing Data
CZipArchive::SetCompressionOptions

Definition at line 123 of file ZipCompressor.h.

Member Enumeration Documentation

Helper constants.

Enumerator:
cDefaultBufferSize 

The default size of the buffer used in compression and decompression operations.

Definition at line 129 of file ZipCompressor.h.

Member Function Documentation

virtual COptions* CZipCompressor::COptions::Clone ( ) const
pure virtual

Clones the current options object.

Returns
The cloned object of the same type as the current object.

Implemented in ZipArchiveLib::CDeflateCompressor::COptions.

virtual int CZipCompressor::COptions::GetType ( ) const
pure virtual

Returns the type of the compressor to which the current options apply.

Returns
The type of the compressor. It can be one of the CompressorType values.

Implemented in ZipArchiveLib::CDeflateCompressor::COptions.

Member Data Documentation

int CZipCompressor::COptions::m_iBufferSize

The size of the buffer used in compression and decompression operations. By default it is set to cDefaultBufferSize. For the optimal performance of the deflate algorithm it should be set at least to 128kB.

See Also
CZipArchive::SetAdvanced

Definition at line 166 of file ZipCompressor.h.


The documentation for this struct was generated from the following file:

The ZipArchive Library Copyright © 2000 - 2022 Artpol Software - Tadeusz Dracz. Generated at Sat Dec 17 2022 19:57:04.