1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // EZLib: FILEBUFFER.H
15 // Declaration for FileBufferManager class which facilitates the aynchronous compression and
16 // decompression of data streams.
20 #ifndef __EZFILEBUFFERMANAGER_H__
21 #define __EZFILEBUFFERMANAGER_H__
29 Concrete class to manage the input and output buffers for compression and de-compression
34 class CEZFileBufferManager : public CBase, public MEZBufferManager
38 enum { EBadInitialization = 1 };
41 ~CEZFileBufferManager();
42 IMPORT_C static CEZFileBufferManager* NewLC(RFile &aInput, RFile &aOutput, TInt aBufferSize = 0x8000);
43 IMPORT_C static CEZFileBufferManager* NewL(RFile &aInput, RFile &aOutput, TInt aBufferSize = 0x8000);
45 void InitializeL(CEZZStream &aZStream);
46 void NeedInputL(CEZZStream &aZStream);
47 void NeedOutputL(CEZZStream &aZStream);
48 void FinalizeL(CEZZStream &aZStream);
51 void ConstructL(TInt aBufferSize);
52 CEZFileBufferManager(RFile &aInput, RFile &aOutput);
59 TUint8* iOutputBuffer;
60 TPtr8 iInputDescriptor; // always points to start of the input Buffer
61 TPtr8 iOutputDescriptor; // always points to start of the output Buffer