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,
TInt aSizeOfData1,
TInt aSizeOfData2,
TInt aNoOfSlots
)

Parameters

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

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

CBuffer ( HEtelBufC16 * aBuf,
RHeap * aHeap,
TInt aSizeOfData1,
TInt aSizeOfData2,
TInt aNoOfSlots
)

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 ( TWhichSlot aWhichSlot ) const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData1u(TWhichSlot)

TUint16 * CurrentSlotData1u ( TWhichSlot aWhichSlot ) const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData2(TWhichSlot)

TUint8 * CurrentSlotData2 ( TWhichSlot aWhichSlot ) const

Parameters

TWhichSlot aWhichSlot

CurrentSlotData2u(TWhichSlot)

TUint16 * CurrentSlotData2u ( TWhichSlot aWhichSlot ) const

Parameters

TWhichSlot aWhichSlot

EqualSizes(TInt, TInt)

TBool EqualSizes ( TInt aSize1,
TInt aSize2
) const

Parameters

TInt aSize1
TInt aSize2

IncRead()

void IncRead ( )

IncWrite()

void IncWrite ( )

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

CBuffer * NewL ( HEtelBufC8 * aBuf8,
HEtelBufC16 * aBuf16,
RHeap * aHeap,
TInt aSizeOfData1,
TInt aSizeOfData2,
TInt aNoOfSlots
) [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 *)

void operator delete ( TAny * aPtr ) [static]

Parameters

TAny * aPtr

operator delete(TAny *, TLeave)

void operator delete ( TAny * aPtr,
TLeave aLeave
) [static, inline]

Parameters

TAny * aPtr
TLeave aLeave

operator delete(TAny *, TUint)

void operator delete ( TAny * aPtr,
TUint aExtraSize
) [static, inline]

Parameters

TAny * aPtr
TUint aExtraSize

operator delete(TAny *, RHeap *)

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

Parameters

TAny * aPtr
RHeap * aHeap

operator new(TUint)

TAny * operator new ( TUint aSize ) [static]

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

Parameters

TUint aSize The 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 ( TUint aSize,
TLeave
) [static]

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

Parameters

TUint aSize The 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 ( TUint aSize,
TUint aExtraSize
) [static]

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

Use of this overload is rare.

Parameters

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

operator new(TUint, RHeap *)

TAny * operator new ( TUint aSize,
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]