#include <ezfilebuffer.h>
Link against: ezlib.lib
| class CEZFileBufferManager : public CBase, public MEZBufferManager |
| Protected Attributes | |
|---|---|
| TInt | iBufferSize |
| TUint8 * | iInputBuffer |
| TPtr8 | iInputDescriptor |
| RFile & | iInputFile |
| TUint8 * | iOutputBuffer |
| TPtr8 | iOutputDescriptor |
| RFile & | iOutputFile |
| Public Member Enumerations | |
|---|---|
| enum | anonymous { EBadInitialization } |
| Public Member Functions | |
|---|---|
| ~CEZFileBufferManager() | |
| virtual void | FinalizeL(CEZZStream &) |
| virtual void | InitializeL(CEZZStream &) |
| virtual void | NeedInputL(CEZZStream &) |
| virtual void | NeedOutputL(CEZZStream &) |
| IMPORT_C CEZFileBufferManager * | NewL(RFile &, RFile &, TInt) |
| IMPORT_C CEZFileBufferManager * | NewLC(RFile &, RFile &, TInt) |
| Protected Member Functions | |
|---|---|
| CEZFileBufferManager(RFile &, RFile &) | |
| void | ConstructL(TInt) |
Concrete class to manage the input and output buffers for compression and de-compression
| TInt | iBufferSize | [protected] |
| TUint8 * | iInputBuffer | [protected] |
| TPtr8 | iInputDescriptor | [protected] |
| RFile & | iInputFile | [protected] |
| TUint8 * | iOutputBuffer | [protected] |
| TPtr8 | iOutputDescriptor | [protected] |
| RFile & | iOutputFile | [protected] |
| Enumerator | Value | Description |
|---|---|---|
| EBadInitialization | 1 |
| CEZFileBufferManager | ( | RFile & | aInput, |
| RFile & | aOutput | ||
| ) | [protected] | ||
| ~CEZFileBufferManager | ( | ) |
| void | ConstructL | ( | TInt | aBufferSize | ) | [protected] |
| void | FinalizeL | ( | CEZZStream & | aZStream | ) | [virtual] |
Reimplemented from MEZBufferManager::FinalizeL(CEZZStream &)
Finish writing to the stream
| Parameters | |
|---|---|
| aZStream | the stream to complete writing to |
| void | InitializeL | ( | CEZZStream & | aZStream | ) | [virtual] |
Reimplemented from MEZBufferManager::InitializeL(CEZZStream &)
Initialise the stream with input and output buffers and starts reading
| Parameters | |
|---|---|
| aZStream | the stream to initialise |
| void | NeedInputL | ( | CEZZStream & | aZStream | ) | [virtual] |
Reimplemented from MEZBufferManager::NeedInputL(CEZZStream &)
Set the stream's input buffer and starts reading
| Parameters | |
|---|---|
| aZStream | the steam whose input buffer to set |
| void | NeedOutputL | ( | CEZZStream & | aZStream | ) | [virtual] |
Reimplemented from MEZBufferManager::NeedOutputL(CEZZStream &)
Set the stream's output buffer and start writing
| Parameters | |
|---|---|
| aZStream | the steam whose output buffer to set |
| IMPORT_C CEZFileBufferManager * | NewL | ( | RFile & | aInput, |
| RFile & | aOutput, | |||
| TInt | aBufferSize = 0x8000 | |||
| ) | [static] | |||
Creates a new CEZFileBufferManager object
| Parameters | |
|---|---|
| aInput | the input file |
| aOutput | the output file |
| aBufferSize | the required size of the buffers |
| IMPORT_C CEZFileBufferManager * | NewLC | ( | RFile & | aInput, |
| RFile & | aOutput, | |||
| TInt | aBufferSize = 0x8000 | |||
| ) | [static] | |||
Creates a new CEZFileBufferManager object and leave it on the CleanupStack
| Parameters | |
|---|---|
| aInput | the input file |
| aOutput | the output file |
| aBufferSize | the required size of the buffers |