RCommsBufChain Class Reference

class RCommsBufChain
Public Member Functions
RCommsBufChain()
RCommsBufChain(RCommsBuf *)
IMPORT_C TIntAlign(TInt)
IMPORT_C TIntAlloc(TInt, TCommsBufAllocator &)
IMPORT_C TIntAlloc(TInt, TInt, TCommsBufAllocator &)
IMPORT_C TIntAlloc(TInt, TInt, TInt, TCommsBufAllocator &)
IMPORT_C voidAppend(RCommsBufChain &)
IMPORT_C voidAppend(RCommsBuf *)
IMPORT_C TIntAppend(TInt)
IMPORT_C voidAssign(RCommsBufChain &)
IMPORT_C voidFree()
TBool IsEmpty()
IMPORT_C TIntLength()
IMPORT_C voidPrepend(RCommsBufChain &)
IMPORT_C voidPrepend(RCommsBuf *)
IMPORT_C TIntPrepend(TInt)
IMPORT_C voidRead(TDes8 &, TInt)
IMPORT_C TIntSplit(TInt, RCommsBufChain &)
IMPORT_C voidTrimEnd(TInt)
IMPORT_C voidTrimStart(TInt)
IMPORT_C voidWrite(const TDesC8 &, TInt)
Protected Member Functions
IMPORT_C RCommsBuf *Goto(TInt, TInt &, TInt &, RCommsBuf *&)
RCommsBuf *Goto(TInt, TInt &, TInt &)
IMPORT_C RCommsBuf *Last()
Private Member Functions
RCommsBuf *First()
const RCommsBuf *First()
RCommsBuf *Last()
Protected Attributes
RCommsBuf *iNext

Constructor & Destructor Documentation

RCommsBufChain()

RCommsBufChain()[inline]

RCommsBufChain(RCommsBuf *)

RCommsBufChain(RCommsBuf *aHeadBuf)[inline]

Parameters

RCommsBuf * aHeadBuf

Member Functions Documentation

Align(TInt)

IMPORT_C TIntAlign(TIntaSize)

Parameters

TInt aSize

Alloc(TInt, TCommsBufAllocator &)

IMPORT_C TIntAlloc(TIntaSize,
TCommsBufAllocator &aAccessor
)

Parameters

TInt aSize
TCommsBufAllocator & aAccessor

Alloc(TInt, TInt, TCommsBufAllocator &)

IMPORT_C TIntAlloc(TIntaSize,
TIntaMinBufSize,
TCommsBufAllocator &aAccessor
)

Parameters

TInt aSize
TInt aMinBufSize
TCommsBufAllocator & aAccessor

Alloc(TInt, TInt, TInt, TCommsBufAllocator &)

IMPORT_C TIntAlloc(TIntaSize,
TIntaMinBufSize,
TIntaMaxBufSize,
TCommsBufAllocator &aAccessor
)

Parameters

TInt aSize
TInt aMinBufSize
TInt aMaxBufSize
TCommsBufAllocator & aAccessor

Append(RCommsBufChain &)

IMPORT_C voidAppend(RCommsBufChain &aChain)

Parameters

RCommsBufChain & aChain

Append(RCommsBuf *)

IMPORT_C voidAppend(RCommsBuf *aBuf)

Parameters

RCommsBuf * aBuf

Append(TInt)

IMPORT_C TIntAppend(TIntaLen)

Parameters

TInt aLen

Assign(RCommsBufChain &)

IMPORT_C voidAssign(RCommsBufChain &aChain)

Parameters

RCommsBufChain & aChain

First()

RCommsBuf *First()[private, inline]

Returns the first RCommsBuf in the chain.

First()

const RCommsBuf *First()const [private, inline]

Free()

IMPORT_C voidFree()

Goto(TInt, TInt &, TInt &, RCommsBuf *&)

IMPORT_C RCommsBuf *Goto(TIntaDataOffset,
TInt &aBufDataOffset,
TInt &aBufDataLen,
RCommsBuf *&resPrevBuf
)const [protected]

Parameters

TInt aDataOffset
TInt & aBufDataOffset
TInt & aBufDataLen
RCommsBuf *& resPrevBuf

Goto(TInt, TInt &, TInt &)

RCommsBuf *Goto(TIntaDataOffset,
TInt &aBufDataOffset,
TInt &aBufDataLen
)const [protected, inline]

Goto specified byte offset into a CommsBuf chain. Used as part of copyin/out, split etc to position RCommsBuf pointer and offset from start of iBuffer.

ETrue if successful

Parameters

TInt aDataOffset
TInt & aBufDataOffset
TInt & aBufDataLen

IsEmpty()

TBool IsEmpty()const [inline]

Check if the chain is empty. If empty returns ETrue otherwise EFalse

Last()

IMPORT_C RCommsBuf *Last()const [protected]

Last()

RCommsBuf *Last()[private]

Length()

IMPORT_C TIntLength()const

Prepend(RCommsBufChain &)

IMPORT_C voidPrepend(RCommsBufChain &aChain)

Parameters

RCommsBufChain & aChain

Prepend(RCommsBuf *)

IMPORT_C voidPrepend(RCommsBuf *aBuf)

Parameters

RCommsBuf * aBuf

Prepend(TInt)

IMPORT_C TIntPrepend(TIntaLen)

Parameters

TInt aLen

Read(TDes8 &, TInt)

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

Parameters

TDes8 & aDes
TInt aOffset = 0

Split(TInt, RCommsBufChain &)

IMPORT_C TIntSplit(TIntaOffset,
RCommsBufChain &aNewChain
)

Parameters

TInt aOffset
RCommsBufChain & aNewChain

TrimEnd(TInt)

IMPORT_C voidTrimEnd(TIntanOffset)

Parameters

TInt anOffset

TrimStart(TInt)

IMPORT_C voidTrimStart(TIntnBytes)

Parameters

TInt nBytes

Write(const TDesC8 &, TInt)

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

Parameters

const TDesC8 & aDes
TInt aOffset = 0

Member Data Documentation

RCommsBuf * iNext

RCommsBuf *iNext[protected]