|
libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_uuid.h>
Data Fields | ||
| union { | ||
| struct { | ||
| uint32_t time_low | ||
| uint16_t time_mid | ||
| uint16_t time_hi_and_version | ||
| uint8_t clock_seq_hi_and_reserved | ||
| uint8_t clock_seq_low | ||
| uint8_t node [6] | ||
| } private_ | ||
| uint8_t bytes [16] | ||
| }; | ||
Related Symbols | |
(Note that these are not member symbols.) | |
| const char * | GblUuid_string (const GblUuid *pSelf, char *pStrBuffer) |
| int | GblUuid_compare (const GblUuid *pSelf, const GblUuid *pOther) |
| unsigned | GblUuid_version (const GblUuid *pSelf) |
| GblBool | GblUuid_isNil (const GblUuid *pSelf) |
Initialization | |
Methods for initializing and setting | |
| GBL_RESULT | GblUuid_genV4 (GblUuid *pSelf) |
| GBL_RESULT | GblUuid_parse (GblUuid *pSelf, const char *pBuffer) |
| GBL_RESULT | GblUuid_setNil (GblUuid *pSelf) |
Universally unique identifier.
RFC 4122-based UUID type.
Definition at line 36 of file gimbal_uuid.h.
|
|
Initializes the given GblUuid structure by deserializing the string representation given by pStrBuffer.
Returns GBL_RESULT_SUCCESS upon success, or an error if the provided arguments were not valid.
| pSelf | pointer to a GblUuid |
| pStrBuffer | Standard 36-char UUID string format (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) |
|
|
| pSelf | pointer to a GblUuid |
| pStrBuffer | string buffer of at least 37 bytes (36 plus NULL terminator) |
|
Throws an error if the given pointer is invalid.
| pSelf | pointer to a GblUuid |
Throws an error if pSelf is invalid.
| pSelf | pointer to a GblUuid |
| uint32_t GblUuid::time_low |
Definition at line 39 of file gimbal_uuid.h.
| uint16_t GblUuid::time_mid |
Definition at line 40 of file gimbal_uuid.h.
| uint16_t GblUuid::time_hi_and_version |
Definition at line 41 of file gimbal_uuid.h.
| uint8_t GblUuid::clock_seq_hi_and_reserved |
Definition at line 42 of file gimbal_uuid.h.
| uint8_t GblUuid::clock_seq_low |
Definition at line 43 of file gimbal_uuid.h.
| uint8_t GblUuid::node[6] |
Definition at line 44 of file gimbal_uuid.h.
| uint8_t GblUuid::bytes[16] |
Definition at line 46 of file gimbal_uuid.h.