-
unsigned long
getUTC
()¶ Returns the current UNIX second in UTC
-
static void
get_user_salt
(char result[36])¶ This generates a uuid4 for use in this library.
result
should be of length 36
-
static unsigned long long
unpack_value
(const char *str, size_t len)¶ Unpacks a big-endian binary value into an unsigned long long
Parameters: - str – The value you’d like to unpack
- len – The length of this value
Returns: The value this string contained
Warning
Integer overflow will not be accounted for
-
static void
pack_value
(size_t len, char *arr, unsigned long long i)¶ Packs an unsigned long long into a big-endian binary buffer of length len
Parameters: - len – The length of the string you’d like to produce
- arr – The buffer you would like to fill
- i – The value you’d like to pack
Warning
Integer overflow will not be accounted for