97ListHexByte
to_hex(uint64_t n);
const char * Str
String type.
Definition lib.h:73
#define DefList(type)
Definition list.h:93
Byte buffer.
Definition lib.h:92
A hexadecimal Byte.
Definition uuid.h:39
char r
lower nibble
Definition uuid.h:41
char l
upper nibble
Definition uuid.h:40
This is useful for printing UUID's.
Definition uuid.h:33
char uuid[39]
enough space for the UUID in hex (34 characters) and 4 dashes and a null character.
Definition uuid.h:34
UUID type Layout taken from: https://en.wikipedia.org/wiki/Universally_unique_identifier#Binary_repre...
Definition uuid.h:24
uint32_t id1
time_high wire format
Definition uuid.h:25
uint64_t id5
node wire format
Definition uuid.h:29
uint16_t id2
time_low wire format
Definition uuid.h:26
uint16_t id3
reserved wire format
Definition uuid.h:27
uint16_t id4
family wire format
Definition uuid.h:28
void ListHexByte_print(ListHexByte list, char end)
Print a list of hex bytes.
Definition uuid.c:149
Buffer UUID_serialize(UUID uuid)
Serialize a UUID into a Buffer.
Definition uuid.c:40
UUID new_uuid(void)
Creates a new UUID.
Definition uuid.c:74
HexByte to_hex1(unsigned char c)
Converts a single byte to the character representation.
Definition uuid.c:131
UUID UUID_deserialize(Buffer buf)
Deserialize a Buffer into a UUID.
Definition uuid.c:44
bool UUID_eq(UUID lhs, UUID rhs)
Compare 2 UUID's.
Definition uuid.c:32
ListHexByte to_hex(uint64_t n)
Converts an entire 64-bit integer into the character representation.
Definition uuid.c:139
uint64_t from_hex(Str str, size_t max_len)
Converts a wire format string into a 64-bit integer.
Definition uuid.c:56