|
libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Data Structures | |
| struct | GblUuid |
Macros | |
| #define | GBL_UUID_BYTE_COUNT |
| #define | GBL_UUID_NODE_COUNT |
| #define | GBL_UUID_STRING_SIZE |
| #define | GBL_UUID_STRING_LENGTH |
Functions | |
| const char * | GblUuid_string (const GblUuid *pSelf, char *pBuffer) |
| GblBool | GblUuid_isNil (const GblUuid *pSelf) |
| int | GblUuid_compare (const GblUuid *pSelf, const GblUuid *pOther) |
| unsigned | GblUuid_version (const GblUuid *pSelf) |
GblUuid generator, stringifier, validator, etc.
LibGimbal provides basic UUID functionality by allowing you to deserialize existing UUIDs from strings, generate new version 4 UUIDs, serialize UUIDs, and compare two UUIDs, based on RFC 4122.
Definition in file gimbal_uuid.h.
| #define GBL_UUID_BYTE_COUNT |
Total number of bytes to representa a UUID, per RFC 4122.
Definition at line 22 of file gimbal_uuid.h.
| #define GBL_UUID_NODE_COUNT |
Number of node bytes in a UUID, per RFC 4122.
Definition at line 23 of file gimbal_uuid.h.
| #define GBL_UUID_STRING_SIZE |
Byte size of a string needed to represent a UUID, including NULL terminator.
Definition at line 24 of file gimbal_uuid.h.
| #define GBL_UUID_STRING_LENGTH |
Length of string needed to represent a UUID, excluding NULL terminator.
Definition at line 25 of file gimbal_uuid.h.
| const char * GblUuid_string | ( | const GblUuid * | pSelf, |
| char * | pStrBuffer ) |
Fills in the given 37-byte string buffer with the standardized string representation of the given UUID, also returning it.
| pSelf | pointer to a GblUuid |
| pStrBuffer | string buffer of at least 37 bytes (36 plus NULL terminator) |
Returns true if the given UUID is equal to the NIL UUID, per RFC 4122 (all zeroes),.
Throws an error if pSelf is invalid.
| pSelf | pointer to a GblUuid |