Uuid Class.
More...
#include <Uuid.h>
◆ Uuid() [1/2]
◆ Uuid() [2/2]
sese::Uuid::Uuid |
( |
uint8_t | self_id, |
|
|
uint64_t | timestamp, |
|
|
uint8_t | r = 0 ) |
|
noexcept |
Create UUID
- Parameters
-
self_id | Device ID |
timestamp | Timestamp |
r | Reserved bit |
◆ getR()
uint8_t sese::Uuid::getR |
( |
| ) |
const |
|
nodiscardnoexcept |
Get Reserved bit
- Returns
- Reserved bit
◆ getSelfId()
uint8_t sese::Uuid::getSelfId |
( |
| ) |
const |
|
nodiscardnoexcept |
Get Device ID
- Returns
- Device ID
References selfId.
◆ getTimestamp()
uint64_t sese::Uuid::getTimestamp |
( |
| ) |
const |
|
nodiscardnoexcept |
Get Timestamp
- Returns
- Timestamp
◆ parse()
void sese::Uuid::parse |
( |
uint64_t | number | ) |
|
|
noexcept |
Parse numeric format UUID to Uuid object
- Parameters
-
number | Numeric format UUID |
◆ setR()
void sese::Uuid::setR |
( |
uint8_t | r | ) |
|
|
noexcept |
Set Reserved bit
- Parameters
-
References r.
◆ setSelfId()
void sese::Uuid::setSelfId |
( |
uint8_t | i | ) |
|
|
noexcept |
Set Device ID
- Parameters
-
References selfId.
◆ setTimestamp()
void sese::Uuid::setTimestamp |
( |
uint64_t | i | ) |
|
|
noexcept |
Set Timestamp
- Parameters
-
References timestamp.
◆ toNumber()
uint64_t sese::Uuid::toNumber |
( |
| ) |
const |
|
nodiscardnoexcept |
Output numeric format UUID
- Returns
- Numeric format UUID
uint8_t sese::Uuid::r = 0 |
|
protected |
◆ selfId
uint8_t sese::Uuid::selfId = 0 |
|
protected |
◆ timestamp
uint64_t sese::Uuid::timestamp = 0 |
|
protected |
The documentation for this class was generated from the following files: