CLiwBuffer Class Reference

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

CLiwContainer CLiwContainer::Close CLiwContainer::PushL

Inherits from

Member Functions Documentation

Buf()

TUint8 *Buf()const [pure virtual]

Len()

TInt Len()[pure virtual]

Read(TUint8 *, TInt)

TInt Read(TUint8 *,
TInt
)[inline, virtual]

Parameters

TUint8 *
TInt

Release()

voidRelease()[pure virtual]

TypeID()

TInt TypeID()[pure virtual]

Write(const TUint8 *, TInt)

TInt Write(const TUint8 *,
TInt
)[inline, virtual]

Parameters

const TUint8 *
TInt

operator==(CLiwBuffer &)

TBool operator==(CLiwBuffer &aBuffer)[pure virtual]

Parameters

CLiwBuffer & aBuffer

Member Enumerations Documentation

Enum TLiwBufferAccess

Enumerators

KLiwBufferNonReadable = 0
KLiwBufferReadOnly = 1