openshot-audio
0.1.4
|
#include <juce_core.h>
Public Member Functions | |
Uuid () | |
~Uuid () noexcept | |
Uuid (const Uuid &) noexcept | |
Uuid & | operator= (const Uuid &) noexcept |
bool | isNull () const noexcept |
bool | operator== (const Uuid &) const noexcept |
bool | operator!= (const Uuid &) const noexcept |
String | toString () const |
String | toDashedString () const |
Uuid (const String &uuidString) | |
Uuid & | operator= (const String &uuidString) |
const uint8 * | getRawData () const noexcept |
Uuid (const uint8 *rawData) noexcept | |
Uuid & | operator= (const uint8 *rawData) noexcept |
Static Public Member Functions | |
static Uuid | null () noexcept |
A universally unique 128-bit identifier.
This class generates very random unique numbers. It's vanishingly unlikely that two identical UUIDs would ever be created by chance. The values are formatted to meet the RFC 4122 version 4 standard.
The class includes methods for saving the ID as a string or as raw binary data.
Uuid::Uuid | ( | ) |
Creates a new unique ID, compliant with RFC 4122 version 4.
|
noexcept |
Destructor.
|
noexcept |
Creates a copy of another UUID.
Uuid::Uuid | ( | const String & | uuidString | ) |
Creates an ID from an encoded string version.
|
noexcept |
Creates a UUID from a 16-byte array.
|
inlinenoexcept |
Returns a pointer to the internal binary representation of the ID.
This is an array of 16 bytes. To reconstruct a Uuid from its data, use the constructor or operator= method that takes an array of uint8s.
|
noexcept |
Returns true if the ID is zero.
|
noexcept |
Copies from a stringified UUID. The string passed in should be one that was created with the toString() method.
|
noexcept |
String Uuid::toDashedString | ( | ) | const |
Returns a stringified version of this UUID, separating it into sections with dashes.
String Uuid::toString | ( | ) | const |
Returns a stringified version of this UUID.
A Uuid object can later be reconstructed from this string using operator= or the constructor that takes a string parameter.