RMBufChain Class Reference

class RMBufChain : public RCommsBufChain

Inherits from

Public Member Functions
RMBufChain()
RMBufChain(RCommsBuf *)
IMPORT_C TIntAlign(TInt)
IMPORT_C TIntAlloc(TInt)
IMPORT_C TIntAlloc(TInt, TInt)
IMPORT_C TIntAlloc(TInt, TInt, TInt)
IMPORT_C TIntAlloc(TInt, RMBufAllocator &)
IMPORT_C TIntAlloc(TInt, TInt, RMBufAllocator &)
IMPORT_C TIntAlloc(TInt, TInt, TInt, RMBufAllocator &)
IMPORT_C voidAllocL(TInt)
IMPORT_C voidAllocL(TInt, RMBufAllocator &)
IMPORT_C voidAppend(RMBufChain &)
IMPORT_C TIntAppend(TInt)
IMPORT_C TIntAppend(TInt, RMBufAllocator &)
IMPORT_C voidAppendL(TInt)
IMPORT_C voidAssign(RMBufQ &)
IMPORT_C voidAssign(RMBufChain &)
TInt Copy(RMBufChain &)
TInt Copy(RMBufChain &, TInt)
TInt Copy(RMBufChain &, TInt, TInt)
IMPORT_C TIntCopy(RMBufChain &, TInt, TInt, TInt)
IMPORT_C voidCopyIn(const TDesC8 &, TInt)
IMPORT_C voidCopyL(RMBufChain &, TInt, TInt)
IMPORT_C voidCopyOut(TDes8 &, TInt)
IMPORT_C TIntCreate(const TDesC8 &, TInt)
IMPORT_C voidCreateL(const TDesC8 &, TInt)
IMPORT_C voidFillZ(TInt)
RMBuf *First()
const RMBuf *First()
IMPORT_C voidFree()
IMPORT_C TBoolGoto(TInt, RMBuf *&, TInt &, TInt &, RMBuf *&)
TBool Goto(TInt, RMBuf *&, TInt &, TInt &)
voidInit()
TBool IsEmpty()
IMPORT_C RMBuf *Last()
IMPORT_C TIntLength()
voidLink(RMBufChain &)
RMBufChain &Next()
const RMBufChain &Next()
IMPORT_C TIntNumBufs()
IMPORT_C TIntPrepend(TInt)
IMPORT_C TIntPrepend(TInt, RMBufAllocator &)
IMPORT_C voidPrepend(RMBuf *)
IMPORT_C voidPrepend(RMBufChain &)
IMPORT_C voidPrependL(TInt)
IMPORT_C TIntReAlloc(TInt)
IMPORT_C voidReAllocL(TInt)
IMPORT_C RMBuf *Remove()
IMPORT_C TIntSplit(TInt, RMBufChain &)
IMPORT_C TIntSplit(TInt, RMBufChain &, RMBufAllocator &)
IMPORT_C voidSplitL(TInt, RMBufChain &)
IMPORT_C voidTrimEnd(TInt)
IMPORT_C voidTrimStart(TInt)
voidUnlink()
RMBufChain &operator=(RMBuf *)
Private Member Functions
TInt Alloc(TInt, const RMBufChain &)
TInt Alloc(TInt, const RMBufChain &, RMBufAllocator &)
Inherited Functions
RCommsBufChain::Alloc(TInt,TCommsBufAllocator &)
RCommsBufChain::Alloc(TInt,TInt,TCommsBufAllocator &)
RCommsBufChain::Alloc(TInt,TInt,TInt,TCommsBufAllocator &)
RCommsBufChain::Append(RCommsBuf *)
RCommsBufChain::Append(RCommsBufChain &)
RCommsBufChain::Assign(RCommsBufChain &)
RCommsBufChain::Goto(TInt,TInt &,TInt &)const
RCommsBufChain::Goto(TInt,TInt &,TInt &,RCommsBuf *&)const
RCommsBufChain::Prepend(RCommsBuf *)
RCommsBufChain::Prepend(RCommsBufChain &)
RCommsBufChain::RCommsBufChain()
RCommsBufChain::RCommsBufChain(RCommsBuf *)
RCommsBufChain::Read(TDes8 &,TInt)const
RCommsBufChain::Split(TInt,RCommsBufChain &)
RCommsBufChain::Write(const TDesC8 &,TInt)
Inherited Attributes
RCommsBufChain::iNext

Constructor & Destructor Documentation

RMBufChain()

RMBufChain()[inline]

Constructor

RMBufChain(RCommsBuf *)

RMBufChain(RCommsBuf *aBuf)[inline]

Constructor

Parameters

RCommsBuf * aBuf

Member Functions Documentation

Align(TInt)

IMPORT_C TIntAlign(TIntaSize)

Parameters

TInt aSize

Alloc(TInt)

IMPORT_C TIntAlloc(TIntaLen = 0)

Parameters

TInt aLen = 0

Alloc(TInt, TInt)

IMPORT_C TIntAlloc(TIntaLen,
TIntaMinMBufSize
)

Parameters

TInt aLen
TInt aMinMBufSize

Alloc(TInt, TInt, TInt)

IMPORT_C TIntAlloc(TIntaLen,
TIntaMinMBufSize,
TIntaMaxMBufSize
)

Parameters

TInt aLen
TInt aMinMBufSize
TInt aMaxMBufSize

Alloc(TInt, RMBufAllocator &)

IMPORT_C TIntAlloc(TIntaLen,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
RMBufAllocator & aRMBufAllocator

Alloc(TInt, TInt, RMBufAllocator &)

IMPORT_C TIntAlloc(TIntaLen,
TIntaMinMBufSize,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
TInt aMinMBufSize
RMBufAllocator & aRMBufAllocator

Alloc(TInt, TInt, TInt, RMBufAllocator &)

IMPORT_C TIntAlloc(TIntaLen,
TIntaMinMBufSize,
TIntaMaxMBufSize,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
TInt aMinMBufSize
TInt aMaxMBufSize
RMBufAllocator & aRMBufAllocator

Alloc(TInt, const RMBufChain &)

TInt Alloc(TIntaLen,
const RMBufChain &aMBufChain
)[private]

Parameters

TInt aLen
const RMBufChain & aMBufChain

Alloc(TInt, const RMBufChain &, RMBufAllocator &)

TInt Alloc(TIntaLen,
const RMBufChain &aMBufChain,
RMBufAllocator &aRMBufAllocator
)[private]

Parameters

TInt aLen
const RMBufChain & aMBufChain
RMBufAllocator & aRMBufAllocator

AllocL(TInt)

IMPORT_C voidAllocL(TIntaLen = 0)

Parameters

TInt aLen = 0

AllocL(TInt, RMBufAllocator &)

IMPORT_C voidAllocL(TIntaLen,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
RMBufAllocator & aRMBufAllocator

Append(RMBufChain &)

IMPORT_C voidAppend(RMBufChain &aChain)

Parameters

RMBufChain & aChain

Append(TInt)

IMPORT_C TIntAppend(TIntaLen)

Parameters

TInt aLen

Append(TInt, RMBufAllocator &)

IMPORT_C TIntAppend(TIntaLen,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
RMBufAllocator & aRMBufAllocator

AppendL(TInt)

IMPORT_C voidAppendL(TIntaLen)

Parameters

TInt aLen

Assign(RMBufQ &)

IMPORT_C voidAssign(RMBufQ &aQueue)

Parameters

RMBufQ & aQueue

Assign(RMBufChain &)

IMPORT_C voidAssign(RMBufChain &aChain)

Parameters

RMBufChain & aChain

Copy(RMBufChain &)

TInt Copy(RMBufChain &newChain)const [inline]

Parameters

RMBufChain & newChain

Copy(RMBufChain &, TInt)

TInt Copy(RMBufChain &newChain,
TIntaOffset
)const [inline]

Parameters

RMBufChain & newChain
TInt aOffset

Copy(RMBufChain &, TInt, TInt)

TInt Copy(RMBufChain &newChain,
TIntaOffset,
TIntaLen
)const [inline]

Parameters

RMBufChain & newChain
TInt aOffset
TInt aLen

Copy(RMBufChain &, TInt, TInt, TInt)

IMPORT_C TIntCopy(RMBufChain &newChain,
TIntaOffset,
TIntaLen,
TIntaHdrReserve
)const

Parameters

RMBufChain & newChain
TInt aOffset
TInt aLen
TInt aHdrReserve

CopyIn(const TDesC8 &, TInt)

IMPORT_C voidCopyIn(const TDesC8 &aDes,
TIntaOffset = 0
)

Parameters

const TDesC8 & aDes
TInt aOffset = 0

CopyL(RMBufChain &, TInt, TInt)

IMPORT_C voidCopyL(RMBufChain &newChain,
TIntaOffset = 0,
TIntaLen =  KMBufAll
)const

Parameters

RMBufChain & newChain
TInt aOffset = 0
TInt aLen =  KMBufAll

CopyOut(TDes8 &, TInt)

IMPORT_C voidCopyOut(TDes8 &aDes,
TIntaOffset = 0
)const

Parameters

TDes8 & aDes
TInt aOffset = 0

Create(const TDesC8 &, TInt)

IMPORT_C TIntCreate(const TDesC8 &aDes,
TIntaHdrLen = 0
)

Parameters

const TDesC8 & aDes
TInt aHdrLen = 0

CreateL(const TDesC8 &, TInt)

IMPORT_C voidCreateL(const TDesC8 &aDes,
TIntaHdrLen = 0
)

Parameters

const TDesC8 & aDes
TInt aHdrLen = 0

FillZ(TInt)

IMPORT_C voidFillZ(TIntaLen =  KMBufAll )

Parameters

TInt aLen =  KMBufAll

First()

RMBuf *First()[inline]

Rerurns the first in the chain the first in the chain

First()

const RMBuf *First()const [inline]

Returns the first in the chain the first in the chain

Free()

IMPORT_C voidFree()

Goto(TInt, RMBuf *&, TInt &, TInt &, RMBuf *&)

IMPORT_C TBoolGoto(TIntaOffset,
RMBuf *&resBuf,
TInt &resOffset,
TInt &resLength,
RMBuf *&resPrevBuf
)const

Parameters

TInt aOffset
RMBuf *& resBuf
TInt & resOffset
TInt & resLength
RMBuf *& resPrevBuf

Goto(TInt, RMBuf *&, TInt &, TInt &)

TBool Goto(TIntaOffset,
RMBuf *&resBuf,
TInt &resOffset,
TInt &resLength
)const [inline]

Goto specified byte offset into an Mbuf chain. Used as part of copyin/out, split etc to position MBuf pointer and offset from start of iBuffer. ETrue if successful

Parameters

TInt aOffsetThe offset
RMBuf *& resBufresult buffer
TInt & resOffsetresult offset
TInt & resLengthresult length

Init()

voidInit()[inline]

Initializes the members (iNext = NULL)

IsEmpty()

TBool IsEmpty()const [inline]

Check if empty, if empty returns true

Last()

IMPORT_C RMBuf *Last()const

Length()

IMPORT_C TIntLength()const

Link(RMBufChain &)

voidLink(RMBufChain &aChain)[inline]

Links a chain to the chain in the chain

Parameters

RMBufChain & aChainThe chain to be linked

Next()

RMBufChain &Next()[inline]

Returns next in the chain if there is next else returns the current

Next()

const RMBufChain &Next()const [inline]

Returns next in the chain if there is next else returns the current

NumBufs()

IMPORT_C TIntNumBufs()const

Prepend(TInt)

IMPORT_C TIntPrepend(TIntaLen)

Parameters

TInt aLen

Prepend(TInt, RMBufAllocator &)

IMPORT_C TIntPrepend(TIntaLen,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aLen
RMBufAllocator & aRMBufAllocator

Prepend(RMBuf *)

IMPORT_C voidPrepend(RMBuf *aBuf)

Parameters

RMBuf * aBuf

Prepend(RMBufChain &)

IMPORT_C voidPrepend(RMBufChain &aChain)

Parameters

RMBufChain & aChain

PrependL(TInt)

IMPORT_C voidPrependL(TIntaLen)

Parameters

TInt aLen

ReAlloc(TInt)

IMPORT_C TIntReAlloc(TIntaLen)

Parameters

TInt aLen

ReAllocL(TInt)

IMPORT_C voidReAllocL(TIntaLen)

Parameters

TInt aLen

Remove()

IMPORT_C RMBuf *Remove()

Split(TInt, RMBufChain &)

IMPORT_C TIntSplit(TIntaOffset,
RMBufChain &newChain
)

Parameters

TInt aOffset
RMBufChain & newChain

Split(TInt, RMBufChain &, RMBufAllocator &)

IMPORT_C TIntSplit(TIntaOffset,
RMBufChain &newChain,
RMBufAllocator &aRMBufAllocator
)

Parameters

TInt aOffset
RMBufChain & newChain
RMBufAllocator & aRMBufAllocator

SplitL(TInt, RMBufChain &)

IMPORT_C voidSplitL(TIntaOffset,
RMBufChain &newChain
)

Parameters

TInt aOffset
RMBufChain & newChain

TrimEnd(TInt)

IMPORT_C voidTrimEnd(TIntaOffset)

Parameters

TInt aOffset

TrimStart(TInt)

IMPORT_C voidTrimStart(TIntnBytes)

Parameters

TInt nBytes

Unlink()

voidUnlink()[inline]

Unlink the nfirst in the chain

operator=(RMBuf *)

RMBufChain &operator=(RMBuf *aChain)[inline]

operator =

Parameters

RMBuf * aChain