Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Construction and destruction


NewLC(RFile &,RFile &,TInt)

IMPORT_C static 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(RFile &,RFile &,TInt)

IMPORT_C static 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(CEZZStream &)

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(CEZZStream &)

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(CEZZStream &)

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(CEZZStream &)

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