Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QUuid::Id128Bytes Class Reference

\inmodule QtCore More...

#include <quuid.h>

+ Collaboration diagram for QUuid::Id128Bytes:

Public Member Functions

constexpr operator QByteArrayView () const noexcept
 

Public Attributes

quint8 data [16]
 
quint16 data16 [8]
 
quint32 data32 [4]
 
quint64 data64 [2]
 

Friends

constexpr Id128Bytes qbswap (Id128Bytes b) noexcept
 

Related Symbols

(Note that these are not member symbols.)

QUuid::Id128Bytes qFromBigEndian (QUuid::Id128Bytes src)
 
QUuid::Id128Bytes qFromLittleEndian (QUuid::Id128Bytes src)
 
QUuid::Id128Bytes qToBigEndian (QUuid::Id128Bytes src)
 
QUuid::Id128Bytes qToLittleEndian (QUuid::Id128Bytes src)
 

Detailed Description

\inmodule QtCore

Since
6.6

This trivial structure is 128 bits (16 bytes) in size and holds the binary representation of a UUID. Applications can {memcpy()} its contents to and from many other libraries' UUID or GUID structures that take 128-bit values.

Definition at line 58 of file quuid.h.

Member Function Documentation

◆ operator QByteArrayView()

constexpr QUuid::Id128Bytes::operator QByteArrayView ( ) const
inlineexplicitconstexprnoexcept

Definition at line 74 of file quuid.h.

Friends And Related Symbol Documentation

◆ qbswap

constexpr Id128Bytes qbswap ( Id128Bytes b)
friend

Definition at line 79 of file quuid.h.

◆ qFromBigEndian()

QUuid::Id128Bytes qFromBigEndian ( QUuid::Id128Bytes src)
related
Since
6.6

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Converts src from big-endian byte order and returns the struct holding the binary representation of UUID in host byte order.

See also
<QtEndian>

◆ qFromLittleEndian()

QUuid::Id128Bytes qFromLittleEndian ( QUuid::Id128Bytes src)
related
Since
6.6

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Converts src from little-endian byte order and returns the struct holding the binary representation of UUID in host byte order.

See also
<QtEndian>

◆ qToBigEndian()

QUuid::Id128Bytes qToBigEndian ( QUuid::Id128Bytes src)
related
Since
6.6

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Converts src from host byte order and returns the struct holding the binary representation of UUID in big-endian byte order.

See also
<QtEndian>

◆ qToLittleEndian()

QUuid::Id128Bytes qToLittleEndian ( QUuid::Id128Bytes src)
related
Since
6.6

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Converts src from host byte order and returns the struct holding the binary representation of UUID in little-endian byte order.

See also
<QtEndian>

Member Data Documentation

◆ data

quint8 QUuid::Id128Bytes::data[16]

Definition at line 59 of file quuid.h.

Referenced by QBluetoothSocketPrivateAndroid::reverseUuid().

◆ data16

quint16 QUuid::Id128Bytes::data16[8]

Definition at line 60 of file quuid.h.

◆ data32

quint32 QUuid::Id128Bytes::data32[4]

Definition at line 61 of file quuid.h.

◆ data64

quint64 QUuid::Id128Bytes::data64[2]

Definition at line 62 of file quuid.h.


The documentation for this class was generated from the following files: