CEZFileBufferManager Class Reference

#include <ezfilebuffer.h>

Link against: ezlib.lib

class CEZFileBufferManager : public CBase, public MEZBufferManager

Inherits from

Detailed Description

Concrete class to manage the input and output buffers for compression and de-compression

Member Attribute Documentation

iBufferSize

TInt iBufferSize[protected]

iInputBuffer

TUint8 *iInputBuffer[protected]

iInputDescriptor

TPtr8 iInputDescriptor[protected]

iInputFile

RFile &iInputFile[protected]

iOutputBuffer

TUint8 *iOutputBuffer[protected]

iOutputDescriptor

TPtr8 iOutputDescriptor[protected]

iOutputFile

RFile &iOutputFile[protected]

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
EBadInitialization1

Constructor & Destructor Documentation

CEZFileBufferManager ( RFile &, RFile & )

CEZFileBufferManager(RFile &aInput,
RFile &aOutput
)[protected]

~CEZFileBufferManager ( )

~CEZFileBufferManager()

Member Function Documentation

ConstructL ( TInt )

voidConstructL(TIntaBufferSize)[protected]

FinalizeL ( CEZZStream & )

voidFinalizeL(CEZZStream &aZStream)[virtual]

Finish writing to the stream

Parameters
aZStreamthe stream to complete writing to

InitializeL ( CEZZStream & )

voidInitializeL(CEZZStream &aZStream)[virtual]

Initialise the stream with input and output buffers and starts reading

Parameters
aZStreamthe stream to initialise

NeedInputL ( CEZZStream & )

voidNeedInputL(CEZZStream &aZStream)[virtual]

Set the stream's input buffer and starts reading

Parameters
aZStreamthe steam whose input buffer to set

NeedOutputL ( CEZZStream & )

voidNeedOutputL(CEZZStream &aZStream)[virtual]

Set the stream's output buffer and start writing

Parameters
aZStreamthe steam whose output buffer to set

NewL ( RFile &, RFile &, TInt )

IMPORT_C CEZFileBufferManager *NewL(RFile &aInput,
RFile &aOutput,
TIntaBufferSize = 0x8000
)[static]

Creates a new CEZFileBufferManager object

Parameters
aInputthe input file
aOutputthe output file
aBufferSizethe required size of the buffers
Return Value
the new CEZFileBufferManager object

NewLC ( RFile &, RFile &, TInt )

IMPORT_C CEZFileBufferManager *NewLC(RFile &aInput,
RFile &aOutput,
TIntaBufferSize = 0x8000
)[static]

Creates a new CEZFileBufferManager object and leave it on the CleanupStack

Parameters
aInputthe input file
aOutputthe output file
aBufferSizethe required size of the buffers
Return Value
the new CEZFileBufferManager object, on the CleanupStack