#include <e32des8.h>
class TAlignedBuf8 : public TBufBase8 |
Public Attributes | |
---|---|
TUint8 | iBuf |
double | only_here_to_force_8byte_alignment |
Protected Attributes | |
---|---|
union TAlignedBuf8::@2 | @3 |
Public Member Functions | |
---|---|
TAlignedBuf8() | |
TAlignedBuf8(TInt) | |
TAlignedBuf8(const TUint8 *) | |
TAlignedBuf8(const TDesC8 &) | |
TAlignedBuf8< S > & | operator=(const TUint8 *) |
TAlignedBuf8< S > & | operator=(const TDesC8 &) |
TAlignedBuf8< S > & | operator=(const TAlignedBuf8< S > &) |
Inherited Attributes | |
---|---|
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
A descriptor class functionally identical to TBuf8, the only difference from it being that TAlignedBuf8's internal buffer is guaranteed to be 64-bit aligned.
At present this class is not intended for general use. It exists solely to support TPckgBuf which derives from it.
TAlignedBuf8 | ( | ) | [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.
TAlignedBuf8 | ( | 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.
Parameter | Description |
---|---|
aLength | The length of this modifiable buffer descriptor. |
TAlignedBuf8 | ( | 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.
Parameter | Description |
---|---|
aString | A pointer to a zero terminated string. |
TAlignedBuf8 | ( | 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.
Parameter | Description |
---|---|
aDes | The source 8-bit non-modifiable descriptor. |
TAlignedBuf8< S > & | operator= | ( | const TUint8 * | aString | ) | [inline] |
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.
Parameter | Description |
---|---|
aString | A pointer to a zero-terminated string. |
Returns: A reference to this 8-bit modifiable buffer descriptor.
TAlignedBuf8< S > & | operator= | ( | const TDesC8 & | aDes | ) | [inline] |
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.
Parameter | Description |
---|---|
aDes | An 8 bit non-modifiable descriptor. |
Returns: A reference to this 8-bit modifiable buffer descriptor.
TAlignedBuf8< S > & | operator= | ( | const TAlignedBuf8< S > & | aBuf | ) | [inline] |
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.
Parameter | Description |
---|---|
aBuf | The source 8-bit modifiable buffer descriptor with the same template value. |
Returns: A reference to this 8-bit modifiable buffer descriptor.