#include <e32des8.h>
class TBuf8 : public TBufBase8 |
Protected Attributes | |
---|---|
TUint8 | iBuf |
Public Member Functions | |
---|---|
TBuf8() | |
TBuf8(TInt) | |
TBuf8(const TUint8 *) | |
TBuf8(const TDesC8 &) | |
TBuf8< S > & | operator=(const TUint8 *) |
TBuf8< S > & | operator=(const TDesC8 &) |
TBuf8< S > & | operator=(const TBuf8< S > &) |
Inherited Attributes | |
---|---|
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
A descriptor class which provides a buffer of fixed length for containing, accessing and manipulating TUint8 data.
The class is intended for instantiation. The 8-bit data that the descriptor represents is part of the descriptor object itself.
The class is templated, based on an integer value which determines the size of the data area which is created as part of the buffer descriptor object; this is also the maximum length of the descriptor.
The data is intended to be both accessed and modified. The base classes provide the functions through which the data is accessed.
TUint8 | iBuf | [protected] |
TBuf8 | ( | ) | [inline] |
Constructs an empty 8-bit modifiable buffer descriptor.
It contains no data.
The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.
TBuf8 | ( | TInt | aLength | ) | [inline, explicit] |
Constructs an empty 8-bit modifiable buffer descriptor and sets the its length to the specified value.
No data is assigned to the descriptor.
The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.
Parameters | |
---|---|
aLength | The length of this modifiable buffer descriptor. |
Panic Codes | |
---|---|
USER | 20, if aLength is negative or is greater than the value of the integer template parameter. |
TBuf8 | ( | const TUint8 * | aString | ) | [inline] |
Constructs the 8-bit modifiable buffer descriptor from a zero terminated string.
The integer template parameter determines the size of the data area that is created as part of the object, and defines the descriptor's maximum length.
The string, excluding the zero terminator, is copied into this buffer descriptor's data area. The length of this buffer descriptor is set to the length of the string, excluding the zero terminator.
Parameters | |
---|---|
aString | A pointer to a zero terminated string. |
Panic Codes | |
---|---|
USER | 23, if the length of the string, excluding the zero terminator, is greater than the value of the integer template parameter. |
TBuf8 | ( | const TDesC8 & | aDes | ) | [inline] |
Constructs the 8-bit modifiable buffer descriptor from any existing 8-bit descriptor.
The integer template parameter determines the size of the data area created as part of this object and defines the descriptor's maximum length.
Data is copied from the source descriptor into this modifiable buffer descriptor and the length of this modifiable buffer descriptor is set to the length of the source descriptor.
Parameters | |
---|---|
aDes | The source 8-bit non-modifiable descriptor. |
Panic Codes | |
---|---|
USER | 23, if the length of the source descriptor is greater than the value of the integer template parameter. |
Reimplemented from TDes8::operator=(const TUint8 *)
Copies data into this 8-bit modifiable buffer descriptor, replacing any existing data.
The length of this descriptor is set to reflect the new data.
Parameters | |
---|---|
aString | A pointer to a zero-terminated string. |
Panic Codes | |
---|---|
USER | 23, if the length of the string, excluding the zero terminator, is greater than the maximum length of this (target) descriptor. |
Reimplemented from TDes8::operator=(const TDesC8 &)
Copies data into this 8-bit modifiable buffer descriptor, replacing any existing data.
The length of this descriptor is set to reflect the new data.
Parameters | |
---|---|
aDes | An 8 bit non-modifiable descriptor. |
Panic Codes | |
---|---|
USER | 23, if the length of the descriptor aDes is greater than the maximum length of this (target) descriptor. |
Copies data into this 8-bit modifiable buffer descriptor replacing any existing data.
The length of this descriptor is set to reflect the new data.
Parameters | |
---|---|
aBuf | The source 8-bit modifiable buffer descriptor with the same template value. |