CCirBufBase Class Reference

class CCirBufBase : public CBase

Base class for circular buffers.

The class is part of the implementation of circular buffers and is never instantiated.

The class provides member functions that form part of the interface.

Inherits from

Constructor & Destructor Documentation

CCirBufBase(TInt)

IMPORT_CCCirBufBase(TIntaSize)[protected]

Parameters

TInt aSize

~CCirBufBase()

IMPORT_C~CCirBufBase()

Member Functions Documentation

Count()

TInt Count()const [inline]

Gets the current number of objects in this circular buffer.

The number of objects in this circular buffer. This value can never be greater than the maximum capacity.

DoAdd(const TUint8 *)

IMPORT_C TIntDoAdd(const TUint8 *aPtr)[protected]

Parameters

const TUint8 * aPtr

DoAdd(const TUint8 *, TInt)

IMPORT_C TIntDoAdd(const TUint8 *aPtr,
TIntaCount
)[protected]

Parameters

const TUint8 * aPtr
TInt aCount

DoRemove(TUint8 *)

IMPORT_C TIntDoRemove(TUint8 *aPtr)[protected]

Parameters

TUint8 * aPtr

DoRemove(TUint8 *, TInt)

IMPORT_C TIntDoRemove(TUint8 *aPtr,
TIntaCount
)[protected]

Parameters

TUint8 * aPtr
TInt aCount

Length()

TInt Length()const [inline]

Gets the maximum capacity of this circular buffer.

The capacity is the maximum number of elements that the buffer can hold.

Use SetLengthL() to change the capacity of the circular buffer.

The maximum capacity of this circular buffer.

CCirBufBase::SetLengthL

Reset()

IMPORT_C voidReset()

SetLengthL(TInt)

IMPORT_C voidSetLengthL(TIntaLength)

Parameters

TInt aLength

Member Data Documentation

TInt iCount

TInt iCount[protected]

TUint8 * iHead

TUint8 *iHead[protected]

TInt iLength

TInt iLength[protected]

TUint8 * iPtr

TUint8 *iPtr[protected]

TUint8 * iPtrE

TUint8 *iPtrE[protected]

TInt iSize

TInt iSize[protected]

TUint8 * iTail

TUint8 *iTail[protected]