Location:
btsdp.h
Link against: bluetooth.lib
TUUID
Supported from 6.1
A Bluetooth Universally Unique Identifier.
This is a 128-bit quantity that can be created without a central registry
while still being globally unique.
UUIDs are always held in full 128-bit format, however they can be set from
BT SIG short form (16 or 32 bit) addresses, and returned in
their shortest form using ShortestForm()
.
See the [BS1 SDP] specification for more on UUIDs.
Defined in TUUID
:
Des()
, LongForm()
, SetL()
, ShortestForm()
, TUUID()
, operator!=()
, operator==()
, operator[]()
TUUID(TUint32 aLong);
Constructs a short-form UUID.
The Bluetooth base UUID is appended to the value passed. Use this form of constructor for building 16- or 32-bit short-form UUIDs.
|
TUUID(TUint32 aHH, TUint32 aHL, TUint32 aLH, TUint32 aLL);
Constructs a 128-bit UUID.
Use this constructor to build full length 128-bit UUIDs.
|
const TPtrC8 Des() const;
Gets the shortest form of the UUID, as in ShortestForm()
.
|
const TPtrC8 ShortestForm() const;
Get the smallest version to which the UUID will fit.
This might be 2, 4, or 16 bytes. If 2 or 4 bytes, the ommitted bytes are implicity those from the Bluetooth base UUID.
|
const TPtrC8 LongForm() const;
Gets the full 128 bit version of the UUID.
|
const TUint8& operator[](TInt aIndex) const;
Gets the specified byte of the UUID, const
overload.
|
|
TUint8& operator[](TInt aIndex);
Gets the specified byte of the UUID, non-const
overload.
|
|
void SetL(const TDesC8& aDes);
Set the UUID from a binary descriptor.
This can be a 2, 4, or 16 byte descriptor. If a 2 or 4 byte descriptor is used, the rest of the UUID is filled with the Bluetooth well-known base UUID.
|
|
TBool operator==(const TUUID& aUUID) const;
Equality operator.
|
|
TBool operator!=(const TUUID& aUUID) const;
Inequality operator.
|
|