41#include <cx/platform/cpp.h>
60 return (a->high == b->high) && (a->low == b->low);
73 if (a->high > b->high)
75 if (a->high < b->high)
126#define _suidRetAnno _Success_(return) _Check_return_
Compiler and platform detection macros.
void suidEncode(string *out, const SUID *id)
void suidGen(SUID *out, uint8 idtype)
void suidEncodeBytes(_Out_writes_all_(26) uint8 buf[26], const SUID *id)
int suidCmp(const SUID *a, const SUID *b)
bool suidDecodeBytes(SUID *out, _In_reads_(26) const char buf[26])
bool suidEq(const SUID *a, const SUID *b)
void suidGenPrivate(SUID *out, uint8 idtype)
bool suidDecode(SUID *out, strref str)
128-bit sortable unique identifier
uint64 low
Low 64 bits: host ID low (32) + random/sequence (32)
uint64 high
High 64 bits: type (8) + timestamp (48) + host ID high (8)
Runtime type system and type descriptor infrastructure.