|
||
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 CSdpAttrValueUint::Uint()const
for up to 32 bit size, CSdpAttrValue::Uint64(TUint64 &)const
for up to 64 bit size or CSdpAttrValue::Uint128(TUint64 &,TUint64 &)const
for up to 128 bit size. The size can be found using CSdpAttrValueUint::DataSize()const
. If the incorrect function is used the code will panic.
CBase
-
Base class for all classes to be instantiated on the heap.
CSdpAttrValue
- Base class for classes that encapsulate SDP attributes values.
CSdpAttrValueUint
- A unsigned integer value of an attribute.
Defined in CSdpAttrValueUint
:
DataSize()const
Gets the size of the attribute.Des()const
Gets the value as a data buffer.DoesIntFit()const
Tests if the attribute can be stored in an integer value.NewUintL(const TDesC8 &)
Allocates and constructs a new CSdpAttrValueUint object.SetUintValue(const TDesC8 &)
Replaces the current value.Type()const
Gets the attribute type.Uint()const
Gets the value as an unsigned integer type.~CSdpAttrValueUint()
Destructor. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from CSdpAttrValue
:
AcceptVisitorL(MSdpAttributeValueVisitor &)
Request a call back to pass the attribute value.Bool()const
Gets a Boolean attribute value.Int()const
Gets a signed integer attribute value.UUID()const
Gets a UUID attribute value.Uint128(TUint64 &,TUint64 &)const
Gets two TUint64s, one being the high 64 bits and one being the low 64 bits of a...Uint64(TUint64 &)const
Gets the value as an unsigned 64 bit integerIMPORT_C static CSdpAttrValueUint* NewUintL(const TDesC8 &aUint);
Allocates and constructs a new CSdpAttrValueUint object.
|
|
IMPORT_C void SetUintValue(const TDesC8 &aValue);
Replaces the current value.
|
|
virtual TSdpElementType Type() const;
Gets the attribute type.
|
virtual TUint DataSize() const;
Gets the size of the attribute.
|
virtual TUint Uint() const;
Gets the value as an unsigned integer type.
The size of the unsigned integer should be checked with CSdpAttrValueUint::DataSize()const
before calling.
|
virtual TBool DoesIntFit() const;
Tests if the attribute can be stored in an integer value.
|
virtual const TPtrC8 Des() const;
Gets the value as a data buffer.
|