Blender Git Loki

Git Commits -> Revision e831f41

Revision e831f41 by Sybren A. Stüvel (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
Blenlib: introduce a UUID type

Add `BLI_uuid` and `DNA_uuid_types.h` with a UUID implementation
following RFC4122 (https://datatracker.ietf.org/doc/html/rfc4122.html).

The following features are implemented:
- A struct of 128 bits that can be used in DNA definitions.
- Generation of version 4 UUIDs, that is, purely random ones.
- UUID equality function.
- String to UUID and UUID to string conversion functions that are
compatible with RFC4122.
- C++ stream operator that outputs the UUID as string.

This UUID will be used by the asset system, to uniquely identify asset
catalogs.

Reviewed By: Severin, jacqueslucke

Differential Revision: https://developer.blender.org/D12475

Commit Details:

Full Hash: e831f41d0b27b0241b453e9b3c9a3c6010b377ab
Parent Commit: fe2efb6
Committed By: Pablo Vazquez
Lines Changed: +367, -0

4 Added Paths:

/source/blender/blenlib/BLI_uuid.h (+67, -0) (View)
/source/blender/blenlib/intern/uuid.cc (+112, -0) (View)
/source/blender/blenlib/tests/BLI_uuid_test.cc (+132, -0) (View)
/source/blender/makesdna/DNA_uuid_types.h (+43, -0) (View)

4 Modified Paths:

/source/blender/blenlib/BLI_session_uuid.h (+7, -0) (Diff)
/source/blender/blenlib/CMakeLists.txt (+3, -0) (Diff)
/source/blender/CMakeLists.txt (+1, -0) (Diff)
/source/blender/makesdna/intern/makesdna.c (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021