| class CLiwBuffer : public CLiwContainer |
Abstract generic buffer representation. Class used for passing generic buffer data between service provider and the consumers.
The class offers APIs for the consumers to access the buffer data in a generic manner. Depending on the data agreement between the service provider and its consumers, one or more of the API operations may be inappropriate e.g. a service provider may not support write operation on the buffer
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Since container objects are reference counted, they cannot go with CleanupStack::PushL . The issue is solved by using CleanupClosePushL for pushing the container objects into the CleanupStack . Hence CLiwContainer::Close method is introduced common to all container objects.
This implies that the object of this concrete implementation class being created should be pushed into the CleanupStack using CLiwContainer::PushL .
ServiceHandler.lib
| Public Member Functions | |
|---|---|
| TUint8 * | Buf () |
| TInt | Len () |
| TInt | Read ( TUint8 *, TInt ) |
| void | Release () |
| TInt | TypeID () |
| TInt | Write (const TUint8 *, TInt ) |
| TBool | operator== ( CLiwBuffer &) |
| Public Member Enumerations | |
|---|---|
| enum | TLiwBufferAccess { KLiwBufferNonReadable = 0, KLiwBufferReadOnly = 1 } |
| TBool | operator== | ( | CLiwBuffer & | aBuffer | ) | [pure virtual] |
| CLiwBuffer & aBuffer |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.