ulid
Namespaces | Typedefs | Functions
ulid_uint128.hh File Reference
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <random>
#include <vector>
Include dependency graph for ulid_uint128.hh:

Go to the source code of this file.

Namespaces

 ulid
 

Typedefs

typedef __uint128_t ulid::ULID
 

Functions

void ulid::EncodeTime (time_t timestamp, ULID &ulid)
 
void ulid::EncodeTimeNow (ULID &ulid)
 
void ulid::EncodeTimeSystemClockNow (ULID &ulid)
 
void ulid::EncodeEntropy (const std::function< uint8_t()> &rng, ULID &ulid)
 
void ulid::EncodeEntropyRand (ULID &ulid)
 
std::uniform_int_distribution< uint8_t > ulid::Distribution_0_255 (0, 255)
 
void ulid::EncodeEntropyMt19937 (std::mt19937 &generator, ULID &ulid)
 
void ulid::Encode (time_t timestamp, const std::function< uint8_t()> &rng, ULID &ulid)
 
void ulid::EncodeNowRand (ULID &ulid)
 
ULID ulid::Create (time_t timestamp, const std::function< uint8_t()> &rng)
 
ULID ulid::CreateNowRand ()
 
void ulid::MarshalTo (const ULID &ulid, char dst[26])
 
std::string ulid::Marshal (const ULID &ulid)
 
void ulid::MarshalBinaryTo (const ULID &ulid, uint8_t dst[16])
 
std::vector< uint8_t > ulid::MarshalBinary (const ULID &ulid)
 
void ulid::UnmarshalFrom (const char str[26], ULID &ulid)
 
ULID ulid::Unmarshal (const std::string &str)
 
void ulid::UnmarshalBinaryFrom (const uint8_t b[16], ULID &ulid)
 
ULID ulid::UnmarshalBinary (const std::vector< uint8_t > &b)
 
int ulid::CompareULIDs (const ULID &ulid1, const ULID &ulid2)
 
time_t ulid::Time (const ULID &ulid)