CSdpAttrValueUint Class Reference
class CSdpAttrValueUint : public CSdpAttrValue |
A unsigned integer value of an attribute.
The value can be up to 128 bits in size. You need to choose to use either Uint() for up to 32 bit size, Uint64() for up to 64 bit size or Uint128() for up to 128 bit size. The size can be found using DataSize(). If the incorrect function is used the code will panic.
Constructor & Destructor Documentation
CSdpAttrValueUint(const TDesC8 &)
CSdpAttrValueUint | ( | const TDesC8 & | aUint | ) | [private] |
~CSdpAttrValueUint()
~CSdpAttrValueUint | ( | ) | [virtual] |
Member Functions Documentation
DataSize()
TUint
| DataSize | ( | ) | const [virtual] |
Gets the size of the attribute.
Des()
const TPtrC8 | Des | ( | ) | const [virtual] |
Gets the value as a data buffer.
DoesIntFit()
TBool
| DoesIntFit | ( | ) | const [virtual] |
Tests if the attribute can be stored in an integer value.
Extension_(TUint, TAny *&, TAny *)
The extension method provides a polymorphic behaviour to allow interface extension.
Implements the functions for the Uint64 and Uint128 without breaking binary compatibility
NewUintL(const TDesC8 &)
Parameters
const TDesC8 & aUint | Buffer containing an unsigned integer value for the attribute |
SetUintValue(const TDesC8 &)
IMPORT_C void | SetUintValue | ( | const TDesC8 & | aValue | ) | |
Replaces the current value.
-
panic
- USER 23 if the supplied value is too long.
Parameters
const TDesC8 & aValue | The new value. The provided value must not exceed KSdpMaxUintSize. |
Uint()
TUint
| Uint | ( | ) | const [virtual] |
Gets the value as an unsigned integer type.
The size of the unsigned integer should be checked with DataSize() before calling.
Member Data Documentation
TBuf8< KSdpMaxUintSize > iUint
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.