TTlvStructBase Class Reference
Provides methods to append, remove or perform iterative lookup for items in container buffer. Classes ItemIdType and ItemDataLengthType have to implement interfaces MTlvItemIdType and MTlvItemDataLengthType in order to enable proper encoding and decoding of the first two fields in the unit.
Protected Member Functions |
---|
| TTlvStructBase(TPtr8 &, TUint8) |
IMPORT_C TInt | AnyNextItemL(MTlvItemIdType &, TPtr8 &, MTlvItemIdType &, MTlvItemDataLengthType &) |
IMPORT_C TInt | AppendItemL(MTlvItemIdType &, MTlvItemDataLengthType &, const TPtr8 &) |
IMPORT_C TInt | NextItemL(const MTlvItemIdType &, TPtr8 &, MTlvItemIdType &, MTlvItemDataLengthType &) |
IMPORT_C TInt | RemoveNextItemL(MTlvItemIdType &, MTlvItemIdType &, MTlvItemDataLengthType &) |
Constructor & Destructor Documentation
TTlvStructBase(TPtr8 &, TUint8)
Default constructor initializes data members
Member Functions Documentation
AnyNextItemL(MTlvItemIdType &, TPtr8 &, MTlvItemIdType &, MTlvItemDataLengthType &)
AppendItemL(MTlvItemIdType &, MTlvItemDataLengthType &, const TPtr8 &)
Base class implementation of methods in the templated class
NextItemL(const MTlvItemIdType &, TPtr8 &, MTlvItemIdType &, MTlvItemDataLengthType &)
RemoveNextItemL(MTlvItemIdType &, MTlvItemIdType &, MTlvItemDataLengthType &)
ResetCursorPos()
IMPORT_C void | ResetCursorPos | ( | ) | |
Sets position of the cursor to start position (0)
Member Data Documentation
TUint
iCursorPos
TUint
| iCursorPos | [protected] |
Cursor indicates last accessed item in the buffer
TUint8
iFreeSpaceChar
TUint8
| iFreeSpaceChar | [protected] |
Character used to populate the zone that hasn't been assigned to any element. this free zone ends at the end of the buffer
TUint
iFreeSpacePos
TUint
| iFreeSpacePos | [protected] |
Position in the buffer that indicates start of the zone that hasn't been assigned to any element. this free zone ends at the end of the buffer
TPtr8 & iPtr
Reference to external buffer that holds encoded TLV data
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.