MCommsBufPondIntf Class Reference

class MCommsBufPondIntf

This class defines a interface to communicate with the legacy mbufmanager or with the system wide shared buffer mechanism

Member Functions Documentation

Alloc(TInt, TInt, TInt)

RCommsBuf * Alloc ( TInt aSize,
TInt aMinBufSize,
TInt aMaxBufSize
) [pure virtual]

Allocate a new RCommsBuf

Parameters

TInt aSize - Requested total size
TInt aMinBufSize - The size that the allocated buffer must atleast have
TInt aMaxBufSize - The size that the allocated buffer "can" have.

BytesAvailable()

TInt BytesAvailable ( ) const [pure virtual]

Total bytes available in the mbufmgr or shared buffer system

BytesAvailable(TInt)

TInt BytesAvailable ( TInt aSize ) const [pure virtual]

Total bytes available in a pool with a given size.

Parameters

TInt aSize

CancelRequest(CCommsBufAsyncRequest &)

void CancelRequest ( CCommsBufAsyncRequest & aRequest ) [pure virtual]

Cance the request to allocate a RCommsBuf asynchronously

Parameters

CCommsBufAsyncRequest & aRequest

CommsBufPondDbg()

MCommsBufPondDbg & CommsBufPondDbg ( ) [pure virtual]

Free(RCommsBuf *)

void Free ( RCommsBuf * aBuf ) [pure virtual]

Frees the RCommsBuf

Parameters

RCommsBuf * aBuf - RCommsBuf for freeing

FromHandle(TInt)

RCommsBuf * FromHandle ( TInt aHandle ) [pure virtual]

Parameters

TInt aHandle

LargestBufSize()

TInt LargestBufSize ( ) const [pure virtual]

Larget buffer size available in the mbufmgr or shared buffer system

NextBufSize(TInt)

TInt NextBufSize ( TInt aSize ) const [pure virtual]

Returns the buffer size that is greater than the given size.

Parameters

TInt aSize

Release(RLibrary &)

void Release ( RLibrary & aLib ) [pure virtual]

Parameters

RLibrary & aLib

SetContext()

void SetContext ( ) [pure virtual]

Set the conext. In the case of system shared buffer manager this function is not having any implmentation as the context will be set by the RCommsBufPond . For mbufmgr which is another DLL needs to set the context for the usage of global timers etc...

StartRequest(CCommsBufAsyncRequest &)

void StartRequest ( CCommsBufAsyncRequest & aRequest ) [pure virtual]

Request to allocate a RCommsBuf asynchronously

Parameters

CCommsBufAsyncRequest & aRequest

Store(TDes8 &)

TInt Store ( TDes8 & aStore ) const [pure virtual]

Parameters

TDes8 & aStore