|
||
class TWspPrimitiveDecoder;
Decoder for WSP Primitves - WAP-WSP Section 8.4.1
Defined in TWspPrimitiveDecoder
:
Date(TDateTime &)
Returns a TDateTime offset from January 1, 1970 - WAP WSP Section 8.4.2.3 Panics...E7BitVal
128-255 - encoded 7 bit value, this header has no more dataELengthVal
0-31 - octet is a value lengthENotSet
The type has not been setEQuotedString
34 - value is a quoted text string, terminated by a NullEString
32-127 - value is a text string, terminated by a NullInteger(TUint32 &)
Returns an Integer - could be short or long.LengthVal(TInt &)
Returns length of the data following this byte.LongInt(TUint32 &)
Returns a long int the buffer is currently pointing at.String(TPtrC8 &)
Returns a TPtrC holding the string the buffer currently points at without the NU...TWspHeaderType
TWspHeaderType describe the types from WAP-WSP Section 8.4.1.2TWspPrimitiveDecoder(TPtrC8)
ConstructorUintVar(TUint32 &)
Returns a TUint32Val7Bit(TUint8 &)
Returns a token, a short int or an octet value with the top bit clearedVarType()const
Looks at the byte currently pointed at in this buffer and returns the type.VersionL(RStringPool,RStringF &)
Returns a formatted version stringinline TWspPrimitiveDecoder(TPtrC8 aBuffer);
Constructor
|
IMPORT_C TWspHeaderType VarType() const;
Looks at the byte currently pointed at in this buffer and returns the type.
|
IMPORT_C TInt LengthVal(TInt &aVal);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal
Returns length of the data following this byte.
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt String(TPtrC8 &aString);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspType::EString
Returns a TPtrC holding the string the buffer currently points at without the NULL termination. If the String type is a quoted string then the quotes are not included in the returned buffer.
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt Val7Bit(TUint8 &aVal);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::E7BitVal
Returns a token, a short int or an octet value with the top bit cleared
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt Integer(TUint32 &aVal);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal or TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::E7BitVal
Returns an Integer - could be short or long.
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt LongInt(TUint32 &aVal);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal
Returns a long int the buffer is currently pointing at.
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt UintVar(TUint32 &aVal);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal or TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::E7BitVal
Returns a TUint32
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt VersionL(RStringPool aPool, RStringF &aVer);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal
Returns a formatted version string
internal offset gets updated to move past this primitive
|
|
IMPORT_C TInt Date(TDateTime &aDateTime);
iBuffer[iOffset] must be valid, TWspPrimitiveDecoder::VarType()const
== TWspHeaderType::ELengthVal
Returns a TDateTime
offset from January 1, 1970 - WAP WSP Section 8.4.2.3 Panics if the time val is greater then the maximum allowable integer
size (32 bits).
internal offset gets updated to move past this primitive
|
|
TWspHeaderType
TWspHeaderType describe the types from WAP-WSP Section 8.4.1.2
|