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.
Public Member Functions | |
---|---|
~CCirBufBase() | |
TInt | Count() |
TInt | Length() |
IMPORT_C void | Reset() |
IMPORT_C void | SetLengthL(TInt) |
Protected Member Functions | |
---|---|
CCirBufBase(TInt) | |
IMPORT_C TInt | DoAdd(const TUint8 *) |
IMPORT_C TInt | DoAdd(const TUint8 *, TInt) |
IMPORT_C TInt | DoRemove(TUint8 *) |
IMPORT_C TInt | DoRemove(TUint8 *, TInt) |
Protected Attributes | |
---|---|
TInt | iCount |
TUint8 * | iHead |
TInt | iLength |
TUint8 * | iPtr |
TUint8 * | iPtrE |
TInt | iSize |
TUint8 * | iTail |
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.
IMPORT_C TInt | DoAdd | ( | const TUint8 * | aPtr | ) | [protected] |
const TUint8 * aPtr |
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.