RMBufQ Class Reference

class RMBufQ : public RCommsBufQ

MBUF QUEUE

Inherits from

Constructor & Destructor Documentation

RMBufQ()

RMBufQ ( ) [inline]

Constructor

RMBufQ(RMBuf *)

IMPORT_C RMBufQ ( 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 void Append ( RMBuf * aBuf )

Appends a MBuf to the queue

Parameters

RMBuf * aBuf the buffer to be prepended

Append(RMBufQ &)

IMPORT_C void Append ( RMBufQ & aQueue )

Appends a MBuf queue to this queue

Parameters

RMBufQ & aQueue the queue to be appended

Append(RMBufChain &)

IMPORT_C void Append ( RMBufChain & aChain )

Appends a MBuf chain to this queue

Parameters

RMBufChain & aChain the chain to be appended

Assign(RMBufQ &)

IMPORT_C void Assign ( RMBufQ & aQueue )

Assign this queue to a MBuf queue

Parameters

RMBufQ & aQueue to queue

Assign(RMBufChain &)

IMPORT_C void Assign ( RMBufChain & aChain )

Assign this a MBuf chain to this queue

Parameters

RMBufChain & aChain the chain

First()

RMBuf * First ( ) [inline]

Returns the first in the queue

Free()

IMPORT_C void Free ( )

Frees the queue making it empty

Init()

IMPORT_C void Init ( )

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 void Prepend ( RMBuf * aBuf )

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

Parameters

RMBuf * aBuf the buffer to be appended

Prepend(RMBufQ &)

IMPORT_C void Prepend ( RMBufQ & aQueue )

Prepends a MBuf queue to this queue

Parameters

RMBufQ & aQueue the queue to be prepended

Prepend(RMBufChain &)

IMPORT_C void Prepend ( RMBufChain & aChain )

Prepends a MBuf chain to this queue

Parameters

RMBufChain & aChain the 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 TInt Transfer ( RMBufQ & aQueue,
TInt aSize,
TInt aBufSize
) [private]

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

Parameters

RMBufQ & aQueue the queue
TInt aSize the size
TInt aBufSize