Struct Guid
Globally Unique Identifier (GUID) represented by 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated.
Inherited Members
Guid
Assembly: FlaxEngine.dll
File: Engine/Core/Types/Guid.h
Syntax
public struct Guid
Constructors
Guid()
Empty constructor.
Declaration
public Guid()
Guid(uint32 a, uint32 b, uint32 c, uint32 d)
Initializes a new instance of the Guid struct.
Declaration
public Guid(uint32 a, uint32 b, uint32 c, uint32 d)
Parameters
uint32
a
The first component. |
uint32
b
The second component. |
uint32
c
The third component. |
uint32
d
The fourth component. |
operator bool()
Checks if Guid is valid.
Declaration
public operator bool() const
Fields
A
Declaration
public uint32 A
Field Value
uint32
|
B
Declaration
public uint32 B
Field Value
uint32
|
C
Declaration
public uint32 C
Field Value
uint32
|
D
Declaration
public uint32 D
Field Value
uint32
|
Empty
Raw
Declaration
public byte Raw[16]
Field Value
byte
|
Values
Declaration
public uint32 Values[4]
Field Value
uint32
|
Methods
IsValid()
Declaration
public bool IsValid() const
Returns
bool
|
New()
operator!=(const Guid& other)
operator[](int index)
Declaration
public uint32 operator[](int index) const
Parameters
int
index
|
Returns
uint32
|
operator[](int32 index)
Declaration
public uint32 operator[](int32 index)
Parameters
int32
index
|
Returns
uint32
|
operator==(const Guid& other)
Parse(const StringAnsiView& text, Guid& value)
Try to parse Guid from string
Declaration
public static bool Parse(const StringAnsiView& text, Guid& value)
Parameters
StringAnsiView
text
Input text |
Guid
value
Result value |
Returns
bool
True if cannot parse text, otherwise false |
Parse(const StringView& text, Guid& value)
Try to parse Guid from string
Declaration
public static bool Parse(const StringView& text, Guid& value)
Parameters
StringView
text
Input text |
Guid
value
Result value |
Returns
bool
True if cannot parse text, otherwise false |
ToString()
ToString(char* buffer, FormatType format)
Declaration
public void ToString(char* buffer, FormatType format) const
Parameters
char
buffer
|
FormatType
format
|
ToString(Char* buffer, FormatType format)
Declaration
public void ToString(Char* buffer, FormatType format) const
Parameters
Char
buffer
|
FormatType
format
|
ToString(FormatType format)
Declaration
public String ToString(FormatType format) const
Parameters
FormatType
format
|
Returns
String
|