JUtils
A unity utilities library
JUtils.SerializableGuid Struct Reference

A lightweight guid class that can be serialized More...

Inheritance diagram for JUtils.SerializableGuid:
Collaboration diagram for JUtils.SerializableGuid:

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...
 

Detailed Description

A lightweight guid class that can be serialized

Constructor & Destructor Documentation

◆ SerializableGuid()

JUtils.SerializableGuid.SerializableGuid ( ulong  a,
ulong  b 
)
inline

References JUtils.SerializableGuid.a, and JUtils.SerializableGuid.b.

Here is the caller graph for this function:

Member Function Documentation

◆ Equals() [1/2]

override bool JUtils.SerializableGuid.Equals ( object  obj)
inline

References JUtils.SerializableGuid.Equals().

Here is the call graph for this function:

◆ Equals() [2/2]

bool JUtils.SerializableGuid.Equals ( SerializableGuid  other)
inline
Here is the caller graph for this function:

◆ GetByte()

byte JUtils.SerializableGuid.GetByte ( int  index)
inline

Get the byte ath the given index. Index must be between 0 and 15.

◆ GetHashCode()

override int JUtils.SerializableGuid.GetHashCode ( )
inline

◆ GetHexChar()

byte JUtils.SerializableGuid.GetHexChar ( int  index)
inline

Get the 4 bits at the given index. The index must be between 0 and 31

◆ operator!=()

static bool JUtils.SerializableGuid.operator!= ( SerializableGuid  a,
SerializableGuid  b 
)
inlinestatic

◆ operator==()

static bool JUtils.SerializableGuid.operator== ( SerializableGuid  a,
SerializableGuid  b 
)
inlinestatic

◆ Parse()

static SerializableGuid JUtils.SerializableGuid.Parse ( string  guid)
inlinestatic

Parse a guid from the given string

References JUtils.SerializableGuid.a, JUtils.SerializableGuid.b, and JUtils.SerializableGuid.SerializableGuid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Random()

static SerializableGuid JUtils.SerializableGuid.Random ( )
inlinestatic

Generate a new random guid

References JUtils.SerializableGuid.Parse().

Here is the call graph for this function:

◆ ToString()

override string JUtils.SerializableGuid.ToString ( )
inline

◆ TryParse()

static bool JUtils.SerializableGuid.TryParse ( string  guid,
out SerializableGuid  output 
)
inlinestatic

Parse a guid from the given string

References JUtils.SerializableGuid.a, JUtils.SerializableGuid.b, and JUtils.SerializableGuid.SerializableGuid().

Here is the call graph for this function:

Property Documentation

◆ a

ulong JUtils.SerializableGuid.a
get

First half of the guid

◆ b

ulong JUtils.SerializableGuid.b
get

Second half of the guid


The documentation for this struct was generated from the following file: