#include <wspdecoder.h>
| class TWspHeaderSegmenter |
| Public Member Functions | |
|---|---|
| TWspHeaderSegmenter(RStringPool, const TStringTable &, TPtrC8) | |
| IMPORT_C TInt | NextL(TWspField &) |
| TInt | Offset() |
| TWspHeaderSegmenter | ( | RStringPool | aPool, |
| const TStringTable & | aStringTable, | ||
| TPtrC8 | aBuffer | ||
| ) | [inline] | ||
Constructor
| Parameter | Description |
|---|---|
| aPool | In - an opened RStringPool - owned by the caller |
| aStringTable | In - the string table in the string pool to use |
| aBuffer | In - the buffer containing the WSP header data - owned by the caller |
NextL iterates through the buffer. Each call returns a TWspField in the paramater.
The TWspField::iHdrName will be opened internally. It must be closed by the caller before this class is destroyed.
| Parameter | Description |
|---|---|
| aWspHeader | Out - a TWspField containing the header <name,value> pair. |
Returns: KErrNone if next field is returned KErrNotFound at the end of the buffer - no TWspField param returned KErrCorrupt if segmenting does not parse correctly
| TInt | Offset | ( | ) | const [inline] |
Offset returns the current offset into the buffer being parsed.
Returns: TInt offset value. It will point to beginning of next segmented field. If NextL has not been called it will be set to 0. The beginning of the buffer. If buffer has been completely parsed, will return KErrNotFound.