|
Blender V5.0
|
#include <BLI_uuid.h>
Inherits bUUID.
Public Member Functions | |
| bUUID ()=default | |
| bUUID (const ::bUUID &struct_uuid) | |
| bUUID (std::initializer_list< uint32_t > field_values) | |
| bUUID (StringRefNull string_formatted_uuid) | |
| std::string | str () const |
| uint64_t | hash () const |
Additional Inherited Members | |
| Public Attributes inherited from bUUID | |
| 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] |
Definition at line 62 of file BLI_uuid.h.
|
default |
| bUUID::bUUID | ( | const ::bUUID & | struct_uuid | ) |
| bUUID::bUUID | ( | std::initializer_list< uint32_t > | field_values | ) |
Initialize from 11 integers, 5 for the regular fields and 6 for the node array.
Definition at line 141 of file uuid.cc.
References BLI_assert_msg, bUUID::clock_seq_hi_and_reserved, bUUID::clock_seq_low, bUUID::time_hi_and_version, bUUID::time_low, and bUUID::time_mid.
|
explicit |
Initialize by parsing the string; undefined behavior when the string is invalid.
Definition at line 156 of file uuid.cc.
References BLI_uuid_parse_string(), and blender::StringRefNull::c_str().
| std::string bUUID::str | ( | ) | const |
Return the UUID as formatted ASCII string, see BLI_uuid_format().
Definition at line 171 of file uuid.cc.
References BLI_uuid_format(), and data.
Referenced by blender::ed::asset::index::init_value_from_file_indexer_entry(), and blender::tests::TEST().