Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: ezfilebuffer.h
Link against: ezlib.lib

Class CEZFileBufferManager

class CEZFileBufferManager : public CBase, public MEZBufferManager;

Description

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

Derivation

Members

Defined in CEZFileBufferManager:
EBadInitialization, FinalizeL(), InitializeL(), NeedInputL(), NeedOutputL(), NewL(), NewLC(), anonymous, iBufferSize, iInputBuffer, iInputDescriptor, iInputFile, iOutputBuffer, iOutputDescriptor, iOutputFile

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewLC()

static IMPORT_C CEZFileBufferManager *NewLC(RFile &aInput, RFile &aOutput, TInt aBufferSize=0x8000);

Description

Creates a new CEZFileBufferManager object and leave it on the CleanupStack

Parameters

RFile &aInput

the input file

RFile &aOutput

the output file

TInt aBufferSize

the required size of the buffers

Return value

CEZFileBufferManager *

the new CEZFileBufferManager object, on the CleanupStack


NewL()

static IMPORT_C CEZFileBufferManager *NewL(RFile &aInput, RFile &aOutput, TInt aBufferSize=0x8000);

Description

Creates a new CEZFileBufferManager object

Parameters

RFile &aInput

the input file

RFile &aOutput

the output file

TInt aBufferSize

the required size of the buffers

Return value

CEZFileBufferManager *

the new CEZFileBufferManager object

[Top]


Member functions


InitializeL()

virtual void InitializeL(CEZZStream &aZStream);

Description

Initialise the stream with input and output buffers and starts reading

Parameters

CEZZStream &aZStream

the stream to initialise


NeedInputL()

virtual void NeedInputL(CEZZStream &aZStream);

Description

Set the stream's input buffer and starts reading

Parameters

CEZZStream &aZStream

the steam whose input buffer to set


NeedOutputL()

virtual void NeedOutputL(CEZZStream &aZStream);

Description

Set the stream's output buffer and start writing

Parameters

CEZZStream &aZStream

the steam whose output buffer to set


FinalizeL()

virtual void FinalizeL(CEZZStream &aZStream);

Description

Finish writing to the stream

Parameters

CEZZStream &aZStream

the stream to complete writing to

[Top]


Member enumerations


Enum anonymous

n/a

Description

EBadInitialization

[Top]


Member data


iInputFile

protected: RFile & iInputFile;

Description


iOutputFile

protected: RFile & iOutputFile;

Description


iBufferSize

protected: TInt iBufferSize;

Description


iInputBuffer

protected: TUint8 * iInputBuffer;

Description


iOutputBuffer

protected: TUint8 * iOutputBuffer;

Description


iInputDescriptor

protected: TPtr8 iInputDescriptor;

Description


iOutputDescriptor

protected: TPtr8 iOutputDescriptor;

Description