RMBuf Class Reference

class RMBuf : public RCommsBuf

RMBuf is a thin wrapper over RCommsBuf providing compatibility for existing code.

Inherits from

Public Member Functions
voidAdjustEnd(TInt)
voidAdjustStart(TInt)
IMPORT_C RMBuf *Alloc()
IMPORT_C RMBuf *Alloc(TUint)
IMPORT_C RMBuf *Alloc(RMBufAllocator &)
IMPORT_C RMBuf *Alloc(TUint, RMBufAllocator &)
IMPORT_C RMBuf *AllocL()
IMPORT_C RMBuf *AllocL(TUint)
IMPORT_C RMBuf *AllocL(RMBufAllocator &)
IMPORT_C RMBuf *AllocL(TUint, RMBufAllocator &)
TUint8 *Buffer()
const TUint8 *Buffer()
TInt End()
TUint8 *EndPtr()
const TUint8 *EndPtr()
voidFillZ()
IMPORT_C voidFree()
TUint8 Get(TInt)
IMPORT_C voidInit(TMBufType)
IMPORT_C RMBuf *Last()
TInt Length()
voidLink(RMBuf *)
voidLinkPkt(RMBufChain &)
RMBuf *Next()
const RMBuf *Next()
RMBufChain &NextPkt()
const RMBufChain &NextPkt()
TInt Offset()
TUint8 *Ptr()
const TUint8 *Ptr()
voidPut(TUint8, TInt)
voidSetData(TInt, TInt)
voidSetLength(TInt)
voidSetOffset(TInt)
voidSetType(TMBufType)
TInt Size()
TMBufType Type()
voidUnlink()
voidUnlinkPkt()
Private Member Functions
RMBuf()
RMBuf(const RMBuf &)
IMPORT_C TUint8__DbgGet(TInt)
IMPORT_C void__DbgPut(TUint8, TInt)
voidoperator delete(TAny *, TUint8 *)
TAny *operator new(TUint, TUint8 *)
RMBuf &operator=(const RMBuf &)
Inherited Functions
RCommsBuf::AdjustDataEnd(TInt)
RCommsBuf::AdjustDataStart(TInt)
RCommsBuf::Alloc(TUint,TCommsBufAllocator &)
RCommsBuf::Append(const TDesC8 &)
RCommsBuf::AppendLimit()const
RCommsBuf::DesC8()const
RCommsBuf::Prepend(const TDesC8 &)
RCommsBuf::PrependLimit()const
RCommsBuf::RCommsBuf()
RCommsBuf::RCommsBuf(TInt,TUint,TInt)
RCommsBuf::RCommsBuf(TInt,TUint,TInt,TInt)
RCommsBuf::RawBase()
RCommsBuf::RawBase()const
RCommsBuf::RawSize()const
RCommsBuf::Read(TDes8 &,TInt)const
RCommsBuf::Reset()
RCommsBuf::SetDataRange(TInt,TInt)
RCommsBuf::SetNext(RCommsBuf *)
RCommsBuf::Write(const TDesC8 &,TInt)
RCommsBuf::operator[](TInt)
RCommsBuf::operator[](TInt)const
Inherited Attributes
RCommsBuf::iCommsBufMetaData

Constructor & Destructor Documentation

RMBuf()

RMBuf()[private]

RMBuf(const RMBuf &)

RMBuf(const RMBuf &)[private]

Parameters

const RMBuf &

Member Functions Documentation

AdjustEnd(TInt)

voidAdjustEnd(TIntaLen)[inline]

Parameters

TInt aLen

AdjustStart(TInt)

voidAdjustStart(TIntaLen)[inline]

Parameters

TInt aLen

Alloc()

IMPORT_C RMBuf *Alloc()[static]

Allocates memory for a RMBuf object - the size of the mbuf to be allocate will depend on the available pool chains, eg. 128, 256 etc...

Alloc(TUint)

IMPORT_C RMBuf *Alloc(TUintaSize)[static]

Allocates memory for a RMBuf object. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

Parameters

TUint aSizeThe requested size for the RMBuf

Alloc(RMBufAllocator &)

IMPORT_C RMBuf *Alloc(RMBufAllocator &aRMBufAllocator)[static]

Allocates memory for a RMBuf object using a given RMBufAllocator. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

RMBufAllocator

Parameters

RMBufAllocator & aRMBufAllocatorRMBufAllocator object

Alloc(TUint, RMBufAllocator &)

IMPORT_C RMBuf *Alloc(TUintaSize,
RMBufAllocator &aRMBufAllocator
)[static]

Allocates memory for a RMBuf object using a given RMBufAllocator and a given size. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

RMBufAllocator

Parameters

TUint aSizeThe requested size for the RMBuf
RMBufAllocator & aRMBufAllocatorRMBufAllocator object

AllocL()

IMPORT_C RMBuf *AllocL()[static]

Allocates memory for a RMBuf object - the size of the mbuf to be allocate will depend on the available pool chains, eg. 128, 256 etc...

leave
KErrNoMemory On allocation failure

AllocL(TUint)

IMPORT_C RMBuf *AllocL(TUintaSize)[static]

Allocates memory for a RMBuf object. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

leave
KErrNoMemory On allocation failure

Parameters

TUint aSizeThe requested size for the RMBuf

AllocL(RMBufAllocator &)

IMPORT_C RMBuf *AllocL(RMBufAllocator &aRMBufAllocator)[static]

Allocates memory for a RMBuf object using a given RMBufAllocator. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

RMBufAllocator
leave
KErrNoMemory On allocation failure

Parameters

RMBufAllocator & aRMBufAllocatorRMBufAllocator object

AllocL(TUint, RMBufAllocator &)

IMPORT_C RMBuf *AllocL(TUintaSize,
RMBufAllocator &aRMBufAllocator
)[static]

Allocates memory for a RMBuf object using a given RMBufAllocator and a given size. Multiple RMBuf's maybe allocated internally if the requested size is greater than the maximum size of the RMBuf on the available pool chains.

RMBufAllocator
leave
KErrNoMemory On allocation failure

Parameters

TUint aSizeThe requested size for the RMBuf
RMBufAllocator & aRMBufAllocatorRMBufAllocator object

Buffer()

TUint8 *Buffer()[inline]

Buffer()

const TUint8 *Buffer()const [inline]

End()

TInt End()const [inline]

EndPtr()

TUint8 *EndPtr()[inline]

EndPtr()

const TUint8 *EndPtr()const [inline]

FillZ()

voidFillZ()[inline]

Free()

IMPORT_C voidFree()

Get(TInt)

TUint8 Get(TIntaOffset = 0)const [inline]

Parameters

TInt aOffset = 0

Init(TMBufType)

IMPORT_C voidInit(TMBufTypeaType)

Initialises MBuf's members

Parameters

TMBufType aTypeA MBuf type

Last()

IMPORT_C RMBuf *Last()

Last MBuf in a chain. Not really supposed to be in RMBuf, but putting it here allows the code to be shared by RMBufChain and RMBufQ

Length()

TInt Length()const [inline]

Returns the length of the RCommsBuf data

Link(RMBuf *)

voidLink(RMBuf *aBuf)[inline]

Parameters

RMBuf * aBuf

LinkPkt(RMBufChain &)

voidLinkPkt(RMBufChain &aChain)[inline]

Parameters

RMBufChain & aChain

Next()

RMBuf *Next()[inline]

Next()

const RMBuf *Next()const [inline]

NextPkt()

RMBufChain &NextPkt()[inline]

NextPkt()

const RMBufChain &NextPkt()const [inline]

Offset()

TInt Offset()const [inline]

Returns the offset of the RCommsBuf data

Ptr()

TUint8 *Ptr()[inline]

Returns a pointer to the actual location of the data start.

RCommsBuf::RawBase

Ptr()

const TUint8 *Ptr()const [inline]

Returns a const pointer to the actual location of the data start. Actual data start location may differ from the start of the data

RCommsBuf::RawBase

Put(TUint8, TInt)

voidPut(TUint8aVal,
TIntaOffset = 0
)[inline]

Parameters

TUint8 aVal
TInt aOffset = 0

SetData(TInt, TInt)

voidSetData(TIntaOffset,
TIntaLength
)[inline]

Parameters

TInt aOffset
TInt aLength

SetLength(TInt)

voidSetLength(TIntaLength)[inline]

Parameters

TInt aLength

SetOffset(TInt)

voidSetOffset(TIntaOffset)[inline]

Sets the RCommsBuf data offset

Parameters

TInt aOffsetAn offset

SetType(TMBufType)

voidSetType(TMBufTypeaType)[inline]

Parameters

TMBufType aType

Size()

TInt Size()const [inline]

Type()

TMBufType Type()const [inline]

Unlink()

voidUnlink()[inline]

UnlinkPkt()

voidUnlinkPkt()[inline]

__DbgGet(TInt)

IMPORT_C TUint8__DbgGet(TIntaOffset = 0)const [private]

Parameters

TInt aOffset = 0

__DbgPut(TUint8, TInt)

IMPORT_C void__DbgPut(TUint8aVal,
TIntaOffset = 0
)[private]

Parameters

TUint8 aVal
TInt aOffset = 0

operator delete(TAny *, TUint8 *)

voidoperator delete(TAny *aPtr,
TUint8 *
)[private]

Parameters

TAny * aPtr
TUint8 *

operator new(TUint, TUint8 *)

TAny *operator new(TUintaSize,
TUint8 *aPtr
)[private]

Parameters

TUint aSize
TUint8 * aPtr

operator=(const RMBuf &)

RMBuf &operator=(const RMBuf &)[private]

Parameters

const RMBuf &