#include "uuid.h"#include <stdbool.h>#include <stdlib.h>#include "list_str.h"#include "lib.h"#include "log.h"Functions | |
| ImplList (HexByte) | |
| bool | UUID_eq (UUID l, UUID r) |
| Compare 2 UUID's. | |
| Buffer | UUID_serialize (UUID in) |
| Serialize a UUID into a Buffer. | |
| UUID | UUID_deserialize (Buffer in) |
| Deserialize a Buffer into a UUID. | |
| uint64_t | from_hex (Str str, size_t len) |
| Converts a wire format string into a 64-bit integer. | |
| UUID | new_uuid (void) |
| Creates a new UUID. | |
| HexByte | to_hex1 (unsigned char c) |
| Converts a single byte to the character representation. | |
| ListHexByte | to_hex (uint64_t n) |
| Converts an entire 64-bit integer into the character representation. | |
| void | ListHexByte_print (ListHexByte list, char end) |
| Print a list of hex bytes. | |
| uint64_t from_hex | ( | Str | str, |
| size_t | max_len ) |
Converts a wire format string into a 64-bit integer.
| str | the wire format string to convert |
| max_len | the amount of characters to read from the string |
| ImplList | ( | HexByte | ) |
| void ListHexByte_print | ( | ListHexByte | list, |
| char | end ) |
Print a list of hex bytes.
| list | the list of hex bytes to print |
| end | the character to end the print with |
| UUID new_uuid | ( | void | ) |
| ListHexByte to_hex | ( | uint64_t | n | ) |
Converts an entire 64-bit integer into the character representation.
Caller must free memory.
| n | the number to convert |
| HexByte to_hex1 | ( | unsigned char | c | ) |
Converts a single byte to the character representation.
| c | the byte to convert |