Stores creation time and extra data specific to Discord for entities.
More...
#include <snowflake.hpp>
|
static constexpr std::tuple
< int64_t, int8_t, int8_t,
int16_t > | c_get_all (int64_t _snowflake) noexcept |
| Obtain all the snowflake values as a tuple. More...
|
|
static constexpr int16_t | c_get_count (int64_t _snowflake) noexcept |
|
static constexpr int8_t | c_get_process (int64_t _snowflake) noexcept |
|
static constexpr int8_t | c_get_worker (int64_t _snowflake) noexcept |
|
static constexpr int64_t | c_get_timestamp (int64_t _snowflake) noexcept |
|
static constexpr int64_t | c_get_time (int64_t _snowflake) noexcept |
|
Stores creation time and extra data specific to Discord for entities.
static constexpr std::tuple<int64_t, int8_t, int8_t, int16_t> aegis::snowflake::c_get_all |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
Obtain all the snowflake values as a tuple.
- Returns
- std::tuple of all the snowflake parts
static constexpr int16_t aegis::snowflake::c_get_count |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
- Returns
- int16_t Internal counter for snowflakes
static constexpr int8_t aegis::snowflake::c_get_process |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
- Returns
- int8_t Process ID of the snowflake generator
static constexpr int64_t aegis::snowflake::c_get_time |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
- Returns
- int64_t Unix timestamp this snowflake was generated
static constexpr int64_t aegis::snowflake::c_get_timestamp |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
- Returns
- int64_t The Discord epoch timestamp this snowflake was generated
static constexpr int8_t aegis::snowflake::c_get_worker |
( |
int64_t |
_snowflake | ) |
|
|
staticnoexcept |
- Returns
- int8_t Worker ID of the snowflake generator
constexpr int64_t aegis::snowflake::get |
( |
| ) |
const |
|
noexcept |
Get snowflake as int64_t.
- Returns
- int64_t Snowflake
constexpr std::tuple<int64_t, int8_t, int8_t, int16_t> aegis::snowflake::get_all |
( |
| ) |
const |
|
noexcept |
Obtain all the snowflake values as a tuple.
- Returns
- std::tuple of all the snowflake parts
constexpr int16_t aegis::snowflake::get_count |
( |
| ) |
const |
|
noexcept |
- Returns
- int16_t Internal counter for snowflakes
constexpr int8_t aegis::snowflake::get_process |
( |
| ) |
const |
|
noexcept |
- Returns
- int8_t Process ID of the snowflake generator
constexpr int64_t aegis::snowflake::get_time |
( |
| ) |
const |
|
noexcept |
- Returns
- int64_t Unix timestamp this snowflake was generated
constexpr int64_t aegis::snowflake::get_timestamp |
( |
| ) |
const |
|
noexcept |
- Returns
- int64_t The Discord epoch timestamp this snowflake was generated
constexpr int8_t aegis::snowflake::get_worker |
( |
| ) |
const |
|
noexcept |
- Returns
- int8_t Worker ID of the snowflake generator
std::string aegis::snowflake::gets |
( |
| ) |
const |
|
noexcept |
Get snowflake as std::string.
- Returns
- std::string Snowflake
The documentation for this class was generated from the following files: