A* Pathfinding Project  4.3.5
The A* Pathfinding Project for Unity 3D
Guid Struct Reference

Simple implementation of a GUID. More...

Detailed Description

Simple implementation of a GUID.

Version
Since 3.6.4 this struct works properly on platforms with different endianness such as Wii U.

Public Member Functions

 Guid (byte[] bytes)
 
 Guid (string str)
 
override bool Equals (System.Object _rhs)
 
override int GetHashCode ()
 
byte [] ToByteArray ()
 
override string ToString ()
 

Static Public Member Functions

static Guid NewGuid ()
 
static bool operator!= (Guid lhs, Guid rhs)
 
static bool operator== (Guid lhs, Guid rhs)
 
static Guid Parse (string input)
 
static ulong SwapEndianness (ulong value)
 Swaps between little and big endian. More...
 

Public Attributes

readonly ulong _a
 
readonly ulong _b
 
const string hex = "0123456789ABCDEF"
 

Static Public Attributes

static readonly Guid zero = new Guid(new byte[16])
 
static readonly string zeroString = new Guid(new byte[16]).ToString()
 

Static Private Attributes

static System.Random random = new System.Random()
 
static System.Text.StringBuilder text
 

Constructor & Destructor Documentation

◆ Guid() [1/2]

Guid ( byte []  bytes)

◆ Guid() [2/2]

Guid ( string  str)

Member Function Documentation

◆ Equals()

override bool Equals ( System.Object  _rhs)

◆ GetHashCode()

override int GetHashCode ( )

◆ NewGuid()

static Guid NewGuid ( )
static

◆ operator!=()

static bool operator!= ( Guid  lhs,
Guid  rhs 
)
static

◆ operator==()

static bool operator== ( Guid  lhs,
Guid  rhs 
)
static

◆ Parse()

static Guid Parse ( string  input)
static

◆ SwapEndianness()

static ulong SwapEndianness ( ulong  value)
static

Swaps between little and big endian.

◆ ToByteArray()

byte [] ToByteArray ( )

◆ ToString()

override string ToString ( )

Member Data Documentation

◆ _a

readonly ulong _a

◆ _b

readonly ulong _b

◆ hex

const string hex = "0123456789ABCDEF"

◆ random

System.Random random = new System.Random()
staticprivate

◆ text

System.Text.StringBuilder text
staticprivate

◆ zero

readonly Guid zero = new Guid(new byte[16])
static

◆ zeroString

readonly string zeroString = new Guid(new byte[16]).ToString()
static

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