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(TIntaSize,
TIntaMinBufSize,
TIntaMaxBufSize
)[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(TIntaSize)const [pure virtual]

Total bytes available in a pool with a given size.

Parameters

TInt aSize

CancelRequest(CCommsBufAsyncRequest &)

voidCancelRequest(CCommsBufAsyncRequest &aRequest)[pure virtual]

Cance the request to allocate a RCommsBuf asynchronously

Parameters

CCommsBufAsyncRequest & aRequest

CommsBufPondDbg()

MCommsBufPondDbg &CommsBufPondDbg()[pure virtual]

Free(RCommsBuf *)

voidFree(RCommsBuf *aBuf)[pure virtual]

Frees the RCommsBuf

Parameters

RCommsBuf * aBuf- RCommsBuf for freeing

FromHandle(TInt)

RCommsBuf *FromHandle(TIntaHandle)[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(TIntaSize)const [pure virtual]

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

Parameters

TInt aSize

Release(RLibrary &)

voidRelease(RLibrary &aLib)[pure virtual]

Parameters

RLibrary & aLib

SetContext()

voidSetContext()[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 &)

voidStartRequest(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