conn::CHeapWrapper Class Reference

class conn::CHeapWrapper : public CBase

This class is instantiated to ensure that data is passed over the Global Shared Heap by a common interface

Inherits from

Constructor & Destructor Documentation

CHeapWrapper()

CHeapWrapper ( ) [private, inline]

C++ constructor initialises read buffer pointer to NULL

~CHeapWrapper()

~CHeapWrapper ( )

virtual C++ destructor

Member Functions Documentation

Buffer(const RChunk &)

TPtr8 & Buffer ( const RChunk & aChunk ) [private]

Parameters

const RChunk & aChunk The RChunk to interrogate for the heap information

CleanReadBuffer()

void CleanReadBuffer ( ) [private]

Delete and NULL the read buffer if necessary

Header(const RChunk &)

THeapWrapperHeader & Header ( const RChunk & aChunk ) const

Getter for the protocol structure

Parameters

const RChunk & aChunk The RChunk to interrogate for the heap information

NewL()

CHeapWrapper * NewL ( ) [static]

Symbian 1st phase constructor

ReadBufferL(const RChunk &)

TPtrC8 & ReadBufferL ( const RChunk & aChunk )

Getter for the GSH descriptor

Parameters

const RChunk & aChunk The RChunk to interrogate for the heap information

ResetHeap(const RChunk &)

TInt ResetHeap ( const RChunk & aChunk )

Reset all of the protocol data in the stack if we're the first users

Parameters

const RChunk & aChunk The RChunk to interrogate for the heap information

WriteBufferL(const RChunk &)

TPtr8 & WriteBufferL ( const RChunk & aChunk )

Lock the heap and return a reference to the descriptor on the GSH

Parameters

const RChunk & aChunk The RChunk to interrogate for the heap information

Member Data Documentation

TPtrC8 * iReadBuf

TPtrC8 * iReadBuf [private]

Pointer to the global buffer