Location:
WSPEncoder.h
Link against: InetProtUtil.lib
class TWspPrimitiveEncoder;
Support
Supported from 7.0
Description
A collection of primitive encoding functions defined by the WSP
standard.
Data is treated as 8-bit.
Defined in TWspPrimitiveEncoder:
DateL(), LongIntL(), ShortInt(), TextStringL(), TextStringL(), UintVarL()
static TUint8 ShortInt(const TUint8 aValue);
Description
Sets the top bit of the specified value, using the WSP defined
ShortInt encoding method.
Parameters
const
TUint8 aValue |
The value whose top bit is to be set. |
|
Return value
TUint8
|
The input value with the top bit (i.e. 0x80) set. This is zero,
if the input value is greater that 127. |
|
static HBufC8* LongIntL(const TUint32 aValue);
Description
Encodes the specified value, using the WSP defined LongInt
encoding method.
Parameters
const
TUint32 aValue |
The value to be encoded. |
|
Return value
HBufC8* |
A pointer to heap descriptor containing the encoded
value. |
|
Leave codes
static HBufC8* UintVarL(const TUint32 aInt);
Description
Encodes the specified value, using the WSP defined UintVar
encoding method.
Parameters
const
TUint32 aInt |
The value to be encoded. |
|
Return value
HBufC8* |
A pointer to heap descriptor containing the encoded
value. |
|
Leave codes
static HBufC8* TextStringL(const RString aText);
Description
Encodes the specified string, using the WSP defined TextString
encoding method.
Parameters
const
RString aText |
The string, stored in a string pool, that is to be
encoded. |
|
Return value
HBufC8* |
A pointer to heap descriptor containing the encoded
string. |
|
Leave codes
static HBufC8* TextStringL(const TDesC8& aText);
Description
Encodes the specified string, using the WSP defined TextString
encoding method.
Parameters
const
TDesC8& aText |
The string, supplied in a descriptor, that is to be
encoded. |
|
Return value
HBufC8* |
A pointer to heap descriptor containing the encoded
string. |
|
Leave codes
static HBufC8* DateL(const TDateTime aDate);
Description
Encodes the specified date/time value, using the WSP defined
Date encoding method.
Parameters
const
TDateTime aDate |
The date/time to be encoded. |
|
Return value
HBufC8* |
A pointer to heap descriptor containing the encoded
date/time. |
|
Leave codes