Foundation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
Foundation::Core::FUUID Struct Reference

128-bit identifier. Two flavors, both well-formed per RFC 9562: More...

#include <UUID.hpp>

Public Member Functions

bool IsNil () const noexcept
 
char const * Format (char *buf, size_t bufSize) const noexcept
 

Static Public Member Functions

static FUUID Generate ()
 
static FUUID FromBytes (const void *data, size_t size)
 
static FUUID FromString (std::string_view s)
 

Public Attributes

uint64_t hi {0}
 
uint64_t lo {0}
 

Friends

bool operator== (FUUID, FUUID) noexcept=default
 
bool operator!= (FUUID, FUUID) noexcept=default
 
bool operator< (FUUID a, FUUID b) noexcept
 
bool operator> (FUUID a, FUUID b) noexcept
 
bool operator<= (FUUID a, FUUID b) noexcept
 
bool operator>= (FUUID a, FUUID b) noexcept
 

Detailed Description

128-bit identifier. Two flavors, both well-formed per RFC 9562:

Member Function Documentation

◆ Format()

char const * Foundation::Core::FUUID::Format ( char *  buf,
size_t  bufSize 
) const
noexcept

◆ FromBytes()

FUUID Foundation::Core::FUUID::FromBytes ( const void *  data,
size_t  size 
)
static

◆ FromString()

static FUUID Foundation::Core::FUUID::FromString ( std::string_view  s)
inlinestatic

◆ Generate()

FUUID Foundation::Core::FUUID::Generate ( )
static

◆ IsNil()

bool Foundation::Core::FUUID::IsNil ( ) const
inlinenoexcept

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( FUUID  ,
FUUID   
)
friend

◆ operator<

bool operator< ( FUUID  a,
FUUID  b 
)
friend

◆ operator<=

bool operator<= ( FUUID  a,
FUUID  b 
)
friend

◆ operator==

bool operator== ( FUUID  ,
FUUID   
)
friend

◆ operator>

bool operator> ( FUUID  a,
FUUID  b 
)
friend

◆ operator>=

bool operator>= ( FUUID  a,
FUUID  b 
)
friend

Member Data Documentation

◆ hi

uint64_t Foundation::Core::FUUID::hi {0}

◆ lo

uint64_t Foundation::Core::FUUID::lo {0}

The documentation for this struct was generated from the following files: