CBuffer Class Reference

class CBuffer : public CBase

Inherits from

Constructor & Destructor Documentation

CBuffer(HEtelBufC8 *, HEtelBufC16 *, RHeap *, TInt, TInt, TInt)

CBuffer(HEtelBufC8 *aBuf8,
HEtelBufC16 *aBuf16,
RHeap *aHeap,
TIntaSizeOfData1,
TIntaSizeOfData2,
TIntaNoOfSlots
)

Parameters

HEtelBufC8 * aBuf8
HEtelBufC16 * aBuf16
RHeap * aHeap
TInt aSizeOfData1
TInt aSizeOfData2
TInt aNoOfSlots

CBuffer(HEtelBufC16 *, RHeap *, TInt, TInt, TInt)

CBuffer(HEtelBufC16 *aBuf,
RHeap *aHeap,
TIntaSizeOfData1,
TIntaSizeOfData2,
TIntaNoOfSlots
)

Parameters

HEtelBufC16 * aBuf
RHeap * aHeap
TInt aSizeOfData1
TInt aSizeOfData2
TInt aNoOfSlots

~CBuffer()

~CBuffer()

Member Functions Documentation

BufferFull()

TBool BufferFull()const [inline]

CompareRWPtrs()

TInt CompareRWPtrs()const

CurrentSlotData1(TWhichSlot)

TUint8 *CurrentSlotData1(TWhichSlotaWhichSlot)const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData1u(TWhichSlot)

TUint16 *CurrentSlotData1u(TWhichSlotaWhichSlot)const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData2(TWhichSlot)

TUint8 *CurrentSlotData2(TWhichSlotaWhichSlot)const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData2u(TWhichSlot)

TUint16 *CurrentSlotData2u(TWhichSlotaWhichSlot)const

Parameters

TWhichSlot aWhichSlot

EqualSizes(TInt, TInt)

TBool EqualSizes(TIntaSize1,
TIntaSize2
)const

Parameters

TInt aSize1
TInt aSize2

IncRead()

voidIncRead()

IncWrite()

voidIncWrite()

NewL(HEtelBufC8 *, HEtelBufC16 *, RHeap *, TInt, TInt, TInt)

CBuffer *NewL(HEtelBufC8 *aBuf8,
HEtelBufC16 *aBuf16,
RHeap *aHeap,
TIntaSizeOfData1,
TIntaSizeOfData2,
TIntaNoOfSlots
)[static]

Parameters

HEtelBufC8 * aBuf8
HEtelBufC16 * aBuf16
RHeap * aHeap
TInt aSizeOfData1
TInt aSizeOfData2
TInt aNoOfSlots

OverFlow()

TBool OverFlow()const [inline]

Size()

TUint Size()const

operator delete(TAny *)

voidoperator delete(TAny *aPtr)[static]

Parameters

TAny * aPtr

operator delete(TAny *, TLeave)

voidoperator delete(TAny *aPtr,
TLeaveaLeave
)[static, inline]

Parameters

TAny * aPtr
TLeave aLeave

operator delete(TAny *, TUint)

voidoperator delete(TAny *aPtr,
TUintaExtraSize
)[static, inline]

Parameters

TAny * aPtr
TUint aExtraSize

operator delete(TAny *, RHeap *)

voidoperator delete(TAny *aPtr,
RHeap *aHeap
)[static, inline]

Parameters

TAny * aPtr
RHeap * aHeap

operator new(TUint)

TAny *operator new(TUintaSize)[static]

Allocates the object from the heap and then initialises its contents to binary zeroes.

Parameters

TUint aSizeThe size of the derived class. This parameter is specified implicitly by C++ in all circumstances in which a derived class is allocated.

operator new(TUint, TLeave)

TAny *operator new(TUintaSize,
TLeave
)[static]

Allocates the object from the heap and then initialises its contents to binary zeroes.

Parameters

TUint aSizeThe size of the derived class. This parameter is specified implicitly by C++ in all circumstances in which a derived class is allocated.
TLeave

operator new(TUint, TUint)

TAny *operator new(TUintaSize,
TUintaExtraSize
)[static]

Allocates the object from the heap and then initialises its contents to binary zeroes.

Use of this overload is rare.

Parameters

TUint aSizeThe size of the derived class. This parameter is specified implicitly by C++ in all circumstances in which a derived class is allocated.
TUint aExtraSizeIndicates additional size beyond the end of the base class.

operator new(TUint, RHeap *)

TAny *operator new(TUintaSize,
RHeap *aHeap
)[static]

Parameters

TUint aSize
RHeap * aHeap

Member Enumerations Documentation

Enum TWhichSlot

Enumerators

ESlotRead
ESlotWrite

Member Data Documentation

HEtelBufC16 * iBuf16

HEtelBufC16 *iBuf16

HEtelBufC8 * iBuf8

HEtelBufC8 *iBuf8

TBool iBufferFull

TBool iBufferFull[private]

RHeap * iHeap

RHeap *iHeap

TInt iNoOfSlots

TInt iNoOfSlots[private]

TBool iOverFlow

TBool iOverFlow[private]

TInt iRead

TInt iRead[private]

TInt iSizeOfData1

TInt iSizeOfData1[private]

TInt iSizeOfData2

TInt iSizeOfData2[private]

TInt iWrite

TInt iWrite[private]