|
|
|
|
Location:
WSPDecoder.h
Link against: inetprotutil.lib
class TWspPrimitiveDecoder;
Decoder for WSP Primitves - WAP-WSP Section 8.4.1
Defined in TWspPrimitiveDecoder:
Date(), E7BitVal, ELengthVal, ENotSet, EQuotedString, EString, Integer(), LengthVal(), LongInt(), String(), TWspHeaderType, TWspPrimitiveDecoder(), UintVar(), Val7Bit(), VarType(), VersionL()
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, VarType() == 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, VarType() == 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, VarType() == 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, VarType() == TWspHeaderType::ELengthVal or VarType() == 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, VarType() == 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, VarType() == TWspHeaderType::ELengthVal or VarType() == 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, VarType() == 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, VarType() == 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
|