JUtils
A unity utilities library
|
A lightweight guid class that can be serialized More...
Public Member Functions | |
SerializableGuid (ulong a, ulong b) | |
byte | GetByte (int index) |
Get the byte ath the given index. Index must be between 0 and 15. More... | |
byte | GetHexChar (int index) |
Get the 4 bits at the given index. The index must be between 0 and 31 More... | |
bool | Equals (SerializableGuid other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static SerializableGuid | Parse (string guid) |
Parse a guid from the given string More... | |
static bool | TryParse (string guid, out SerializableGuid output) |
Parse a guid from the given string More... | |
static SerializableGuid | Random () |
Generate a new random guid More... | |
static bool | operator== (SerializableGuid a, SerializableGuid b) |
static bool | operator!= (SerializableGuid a, SerializableGuid b) |
Properties | |
ulong | a [get] |
First half of the guid More... | |
ulong | b [get] |
Second half of the guid More... | |
A lightweight guid class that can be serialized
|
inline |
References JUtils.SerializableGuid.a, and JUtils.SerializableGuid.b.
|
inline |
|
inline |
|
inline |
Get the byte ath the given index. Index must be between 0 and 15.
|
inline |
|
inline |
Get the 4 bits at the given index. The index must be between 0 and 31
|
inlinestatic |
References JUtils.SerializableGuid.a, and JUtils.SerializableGuid.b.
|
inlinestatic |
References JUtils.SerializableGuid.a, and JUtils.SerializableGuid.b.
|
inlinestatic |
Parse a guid from the given string
References JUtils.SerializableGuid.a, JUtils.SerializableGuid.b, and JUtils.SerializableGuid.SerializableGuid().
|
inlinestatic |
Generate a new random guid
References JUtils.SerializableGuid.Parse().
|
inline |
|
inlinestatic |
Parse a guid from the given string
References JUtils.SerializableGuid.a, JUtils.SerializableGuid.b, and JUtils.SerializableGuid.SerializableGuid().
|
get |
First half of the guid
|
get |
Second half of the guid