CEZDecompressor Class Reference

class CEZDecompressor : public CEZZStream

The CEZDecompressor class provides in-memory de-compression functions, including integrity checks of the compressed data. This version of the library supports only one compression / de-compression method (deflation / inflation). De-compression can be done in a single step (using DecompressL()) if the buffers are large enough (for example if an input file is mmap'ed), or can be done by repeated calls of the InflateL() function. The source data is de-compressed to the target buffer (both source and target contained within the buffer manager argument).

Note: In this version of the library a windowBits value of 8 is unsupported due to a problem with the window size being set to 256 bytes. Although a value of 8 will be accepted by the CEZCompressor constructors, as it is being changed internally by Zlib from 8 to 9, it will not be possible to use the same value for decompression. This is because the Zlib functions called by the CEZDecompressor constructors do not make the same change internally and as a result a KEZlibErrData is returned when calling InflateL(). It is therefore advised that for this version of the library windowBits of 9 is used in place of 8.

Inherits from

Public Member Functions
~CEZDecompressor()
IMPORT_C voidDecompressL(TDes8 &, const TDesC8 &)
IMPORT_C TBoolInflateL()
IMPORT_C CEZDecompressor *NewL(MEZBufferManager &, TInt)
IMPORT_C CEZDecompressor *NewL(MEZBufferManager &, const TDesC8 &, TInt)
IMPORT_C CEZDecompressor *NewLC(MEZBufferManager &, TInt)
IMPORT_C CEZDecompressor *NewLC(MEZBufferManager &, const TDesC8 &, TInt)
IMPORT_C voidResetL(MEZBufferManager &)
Private Member Functions
CEZDecompressor(MEZBufferManager *)
CEZDecompressor(MEZBufferManager *, const TUint8 *, TInt)
voidConstructL(TInt)
voidSetDictionaryL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CEZZStream::Adler32()const
CEZZStream::AvailIn()const
CEZZStream::AvailOut()const
CEZZStream::CEZZStream()
CEZZStream::OutputDescriptor()const
CEZZStream::Progress(TInt)const
CEZZStream::SetInput(const TDesC8 &)
CEZZStream::SetOutput(TDes8 &)
CEZZStream::TotalIn()const
CEZZStream::TotalOut()const
Public Member Enumerations
enumanonymous { EInflateInitlialiserError = EUnexpected + 1, EInflateVersionError, EInflateTerminated, EInflateDictionaryError }
enumanonymous { EMaxWBits = MAX_WBITS }
Private Member Enumerations
enumTInflationState { ENoFlush, EFinalize, ETerminated }
Inherited Enumerations
CEZZStream:@43
Private Attributes
MEZBufferManager *iBufferInit
const TUint8 *iDictionary
TInt iDictionaryLength
TInflationState iInflationState
Inherited Attributes
CEZZStream::iOutputBufferLength
CEZZStream::iOutputPointer
CEZZStream::iStream

Constructor & Destructor Documentation

CEZDecompressor(MEZBufferManager *)

CEZDecompressor(MEZBufferManager *aInit)[private]

Parameters

MEZBufferManager * aInit

CEZDecompressor(MEZBufferManager *, const TUint8 *, TInt)

CEZDecompressor(MEZBufferManager *aInit,
const TUint8 *aDictionary,
TIntaLength
)[private]

Parameters

MEZBufferManager * aInit
const TUint8 * aDictionary
TInt aLength

~CEZDecompressor()

~CEZDecompressor()

Member Functions Documentation

ConstructL(TInt)

voidConstructL(TIntaWindowBits)[private]

Parameters

TInt aWindowBits

DecompressL(TDes8 &, const TDesC8 &)

IMPORT_C voidDecompressL(TDes8 &aDestination,
const TDesC8 &aSource
)[static]

Parameters

TDes8 & aDestination
const TDesC8 & aSource

InflateL()

IMPORT_C TBoolInflateL()

NewL(MEZBufferManager &, TInt)

IMPORT_C CEZDecompressor *NewL(MEZBufferManager &aInit,
TIntaWindowBits = EMaxWBits
)[static]

Parameters

MEZBufferManager & aInit
TInt aWindowBits = EMaxWBits

NewL(MEZBufferManager &, const TDesC8 &, TInt)

IMPORT_C CEZDecompressor *NewL(MEZBufferManager &aInit,
const TDesC8 &aDictionary,
TIntaWindowBits = EMaxWBits
)[static]

Parameters

MEZBufferManager & aInit
const TDesC8 & aDictionary
TInt aWindowBits = EMaxWBits

NewLC(MEZBufferManager &, TInt)

IMPORT_C CEZDecompressor *NewLC(MEZBufferManager &aInit,
TIntaWindowBits = EMaxWBits
)[static]

Parameters

MEZBufferManager & aInit
TInt aWindowBits = EMaxWBits

NewLC(MEZBufferManager &, const TDesC8 &, TInt)

IMPORT_C CEZDecompressor *NewLC(MEZBufferManager &aInit,
const TDesC8 &aDictionary,
TIntaWindowBits = EMaxWBits
)[static]

Parameters

MEZBufferManager & aInit
const TDesC8 & aDictionary
TInt aWindowBits = EMaxWBits

ResetL(MEZBufferManager &)

IMPORT_C voidResetL(MEZBufferManager &aInit)

Parameters

MEZBufferManager & aInit

SetDictionaryL()

voidSetDictionaryL()[private]

Member Enumerations Documentation

Enum anonymous

Decompression panic values

Enumerators

EInflateInitlialiserError = EUnexpected + 1
EInflateVersionError
EInflateTerminated
EInflateDictionaryError

Enum anonymous

Window Bits - the base two logarithm of the window size (the size of the history buffer)

Enumerators

EMaxWBits = MAX_WBITS

Enum TInflationState

Enumerators

ENoFlush
EFinalize
ETerminated

Member Data Documentation

MEZBufferManager * iBufferInit

MEZBufferManager *iBufferInit[private]

const TUint8 * iDictionary

const TUint8 *iDictionary[private]

TInt iDictionaryLength

TInt iDictionaryLength[private]

TInflationState iInflationState

TInflationState iInflationState[private]