Sese Framework
x.y.z
A cross-platform framework
|
#include <Uuid.h>
Public 成员函数 | |
Uuid () noexcept=default | |
Uuid (uint8_t self_id, uint64_t timestamp, uint8_t r=0) noexcept | |
uint8_t | getSelfId () const noexcept |
void | setSelfId (uint8_t i) noexcept |
uint8_t | getR () const noexcept |
void | setR (uint8_t r) noexcept |
uint64_t | getTimestamp () const noexcept |
void | setTimestamp (uint64_t i) noexcept |
uint64_t | toNumber () const noexcept |
void | parse (uint64_t number) noexcept |
Protected 属性 | |
uint8_t | selfId = 0 |
uint8_t | r = 0 |
uint64_t | timestamp = 0 |
Uuid 类
|
defaultnoexcept |
|
noexcept |
创建 UUID
self_id | 本机 ID |
timestamp | 时间戳 |
r | 保留位 |
|
nodiscardnoexcept |
获取保留位
|
nodiscardnoexcept |
|
nodiscardnoexcept |
获取时间戳
|
noexcept |
从纯数字格式 UUID 中解析为 UUID 对象
number | 纯数字格式 UUID |
|
noexcept |
|
noexcept |
|
noexcept |
|
nodiscardnoexcept |
输出纯数字格式 UUID
|
protected |
被这些函数引用 setR().
|
protected |
被这些函数引用 getSelfId() , 以及 setSelfId().
|
protected |
被这些函数引用 setTimestamp().