| class TWspPrimitiveDecoder |
Decoder for WSP Primitves - WAP-WSP Section 8.4.1
| Public Member Functions | |
|---|---|
| TWspPrimitiveDecoder(TPtrC8) | |
| IMPORT_C TInt | Date(TDateTime &) |
| IMPORT_C TInt | Integer(TUint32 &) |
| IMPORT_C TInt | LengthVal(TInt &) |
| IMPORT_C TInt | LongInt(TUint32 &) |
| IMPORT_C TInt | String(TPtrC8 &) |
| IMPORT_C TInt | UintVar(TUint32 &) |
| IMPORT_C TInt | Val7Bit(TUint8 &) |
| IMPORT_C TWspHeaderType | VarType() |
| IMPORT_C TInt | VersionL(RStringPool, RStringF &) |
| Public Member Enumerations | |
|---|---|
| enum | TWspHeaderType { ENotSet, ELengthVal, EQuotedString, EString, E7BitVal } |
| Private Attributes | |
|---|---|
| TPtrC8 | iBuffer |
| TInt | iOffset |
| TWspPrimitiveDecoder | ( | TPtrC8 | aBuffer | ) | [inline] |
Constructor
| TPtrC8 aBuffer | In - the buffer containing the value in its raw format |
| IMPORT_C TInt | VersionL | ( | RStringPool | aPool, |
| RStringF & | aVer | |||
| ) | ||||
| RStringPool aPool | |
| RStringF & aVer |
TWspHeaderType describe the types from WAP-WSP Section 8.4.1.2
| ENotSet |
The type has not been set |
| ELengthVal |
0-31 - octet is a value length |
| EQuotedString |
34 - value is a quoted text string, terminated by a Null |
| EString |
32-127 - value is a text string, terminated by a Null |
| E7BitVal |
128-255 - encoded 7 bit value, this header has no more data |