RMBufQ Class Reference

class RMBufQ : public RCommsBufQ

MBUF QUEUE

Inherits from

Constructor & Destructor Documentation

RMBufQ()

RMBufQ()[inline]

Constructor

RMBufQ(RMBuf *)

IMPORT_CRMBufQ(RMBuf *aChain)

Parameters

RMBuf * aChain

RMBufQ(RMBuf *, RMBuf *)

RMBufQ(RMBuf *aFirst,
RMBuf *aLast
)[inline]

Constructor

Parameters

RMBuf * aFirst
RMBuf * aLast

Member Functions Documentation

Append(RMBuf *)

IMPORT_C voidAppend(RMBuf *aBuf)

Appends a MBuf to the queue

Parameters

RMBuf * aBufthe buffer to be prepended

Append(RMBufQ &)

IMPORT_C voidAppend(RMBufQ &aQueue)

Appends a MBuf queue to this queue

Parameters

RMBufQ & aQueuethe queue to be appended

Append(RMBufChain &)

IMPORT_C voidAppend(RMBufChain &aChain)

Appends a MBuf chain to this queue

Parameters

RMBufChain & aChainthe chain to be appended

Assign(RMBufQ &)

IMPORT_C voidAssign(RMBufQ &aQueue)

Assign this queue to a MBuf queue

Parameters

RMBufQ & aQueueto queue

Assign(RMBufChain &)

IMPORT_C voidAssign(RMBufChain &aChain)

Assign this a MBuf chain to this queue

Parameters

RMBufChain & aChainthe chain

First()

RMBuf *First()[inline]

Returns the first in the queue

Free()

IMPORT_C voidFree()

Frees the queue making it empty

Init()

IMPORT_C voidInit()

initializes the members

IsEmpty()

TBool IsEmpty()[inline]

Check if the queue is empty

Last()

RMBuf *Last()[inline]

Returns the last in the queue

Prepend(RMBuf *)

IMPORT_C voidPrepend(RMBuf *aBuf)

Prepends one MBuf to this queue. aBuf must not point to any further Mbufs.

Parameters

RMBuf * aBufthe buffer to be appended

Prepend(RMBufQ &)

IMPORT_C voidPrepend(RMBufQ &aQueue)

Prepends a MBuf queue to this queue

Parameters

RMBufQ & aQueuethe queue to be prepended

Prepend(RMBufChain &)

IMPORT_C voidPrepend(RMBufChain &aChain)

Prepends a MBuf chain to this queue

Parameters

RMBufChain & aChainthe chain to be prepended

Remove()

IMPORT_C RMBuf *Remove()

Removes the first MBuf from the queue

RemoveLast()

IMPORT_C RMBuf *RemoveLast()[private]

Removes and returns the last RMBuf from the queu

Transfer(RMBufQ &, TInt, TInt)

IMPORT_C TIntTransfer(RMBufQ &aQueue,
TIntaSize,
TIntaBufSize
)[private]

For the benefit of the MBuf allocator Grab as many buffer as possible, as quickly as possible.

Parameters

RMBufQ & aQueuethe queue
TInt aSizethe size
TInt aBufSize