#include <badesca.h>
Link against: bafl.lib
class CPtrC8Array : public CArrayFixFlat< TPtrC8 >, public MDesC8Array |
Public Member Functions | |
---|---|
CPtrC8Array(TInt) | |
~CPtrC8Array() | |
IMPORT_C void | CopyL(const MDesC8Array &) |
virtual IMPORT_C TInt | MdcaCount() |
virtual IMPORT_C TPtrC8 | MdcaPoint(TInt) |
void | operator=(const MDesC8Array &) |
IMPORT_C | CPtrC8Array | ( | TInt | aGranularity | ) |
Constructs an array of 8 bit non-modifiable descriptors with the specified granularity. The length of all elements in the array buffer is the length of a TPtrC8 object.
No memory is allocated to the array buffer by this constructor.
Parameters | |
---|---|
aGranularity | The granularity of the array. This value must be positive otherwise the constructor raises an E32USER-CBase 18 panic. |
IMPORT_C | ~CPtrC8Array | ( | ) |
Frees all resources owned by the object, prior to its destruction.
IMPORT_C void | CopyL | ( | const MDesC8Array & | aArray | ) |
Copies a descriptor array into this array, deleting any pre-existing elements.
The function constructs TPtrC8 elements for each descriptor element in the specified descriptor array.
Parameters | |
---|---|
aArray | A reference to any descriptor array which satisfies the protocol defined by this mixin class. |
IMPORT_C TInt | MdcaCount | ( | ) | const [virtual] |
Reimplemented from MDesC8Array::MdcaCount()const
Returns the number of elements in the array. The function implements the pure virtual function MDesC8Array::MdcaCount().
Reimplemented from MDesC8Array::MdcaPoint(TInt)const
Indexes into the descriptor array. The function implements the pure virtual function MDesC8Array::MdcaPoint().
Parameters | |
---|---|
aIndex | The position of the descriptor element within the array. The position is relative to zero; i.e. zero implies the first descriptor element in the array. This value must be non-negative and must be less than the number of elements currently in the array otherwise the operator raises a E32USER-CBase 21 panic. |
void | operator= | ( | const MDesC8Array & | aArray | ) | [inline] |
Copies a descriptor array into this array, deleting any pre-existing elements.
The function constructs TPtrC8 elements for each descriptor element in the specified descriptor array. This operator behaves in the same ways as CPtrC8Array::CopyL().