14 lines
305 B
C++
14 lines
305 B
C++
#pragma once
|
|
#include <iostream>
|
|
|
|
union snowflake {
|
|
std::byte _value[8];
|
|
unsigned char _cValue[8];
|
|
struct {
|
|
unsigned int sequence : 12;
|
|
unsigned int instance : 10;
|
|
unsigned long long timestamp : 41;
|
|
unsigned int sign : 1;
|
|
};
|
|
unsigned long long value;
|
|
}; |