Arci.Networking
Arci.Networking.Data.PacketGuid Class Reference

Represents 64bit integer as 8 byte values More...

Inheritance diagram for Arci.Networking.Data.PacketGuid:

Public Member Functions

 PacketGuid ()
 Creates new Guid instance More...
 
 PacketGuid (UInt64 guid)
 Creates new Guid instance from UInt64 value More...
 
bool Equals (PacketGuid other)
 Compares with other Guid value More...
 
bool Equals (UInt64 other)
 Compares with other UInt64 value More...
 
override bool Equals (object obj)
 Compares with other Guid or UInt64 value More...
 
override int GetHashCode ()
 Generates hashcode More...
 

Static Public Member Functions

static implicit operator PacketGuid (UInt64 guid)
 Conversion operator from UInt64 to Guid More...
 
static implicit operator UInt64 (PacketGuid guid)
 Conversion operator from Guid to UInt64 More...
 
static bool operator== (PacketGuid guid1, PacketGuid guid2)
 Comparsion operator More...
 
static bool operator== (PacketGuid guid1, UInt64 guid2)
 Comparsion operator More...
 
static bool operator!= (PacketGuid guid1, PacketGuid guid2)
 Comparsion operator More...
 
static bool operator!= (PacketGuid guid1, UInt64 guid2)
 Comparsion operator More...
 

Properties

byte this[int index] [get, set]
 Allows to get/set value of any byte value of this Guid More...
 

Detailed Description

Represents 64bit integer as 8 byte values

Constructor & Destructor Documentation

§ PacketGuid() [1/2]

Arci.Networking.Data.PacketGuid.PacketGuid ( )

Creates new Guid instance

§ PacketGuid() [2/2]

Arci.Networking.Data.PacketGuid.PacketGuid ( UInt64  guid)
inline

Creates new Guid instance from UInt64 value

Parameters
guidValue to be stored as Guid

Member Function Documentation

§ Equals() [1/3]

bool Arci.Networking.Data.PacketGuid.Equals ( PacketGuid  other)
inline

Compares with other Guid value

Parameters
otherValue to be compared with
Returns
true if value represents same UIn64 value as this Guid value, otherwise false

§ Equals() [2/3]

bool Arci.Networking.Data.PacketGuid.Equals ( UInt64  other)
inline

Compares with other UInt64 value

Parameters
otherValue to be compared with
Returns
true if value represents same UIn64 value as this Guid value, otherwise false

§ Equals() [3/3]

override bool Arci.Networking.Data.PacketGuid.Equals ( object  obj)
inline

Compares with other Guid or UInt64 value

Parameters
objValue to be compared with
Returns
true if value represents same UIn64 value as this Guid value, otherwise false

§ GetHashCode()

override int Arci.Networking.Data.PacketGuid.GetHashCode ( )
inline

Generates hashcode

Returns
HashCode

§ operator PacketGuid()

static implicit Arci.Networking.Data.PacketGuid.operator PacketGuid ( UInt64  guid)
inlinestatic

Conversion operator from UInt64 to Guid

Parameters
guidValue to be converted to Guid

§ operator UInt64()

static implicit Arci.Networking.Data.PacketGuid.operator UInt64 ( PacketGuid  guid)
inlinestatic

Conversion operator from Guid to UInt64

Parameters
guidValue to be converted to UInt64

§ operator!=() [1/2]

static bool Arci.Networking.Data.PacketGuid.operator!= ( PacketGuid  guid1,
PacketGuid  guid2 
)
inlinestatic

Comparsion operator

Parameters
guid1First guid value
guid2Second guid value
Returns
false if values represents same UIn64 value, otherwise true

§ operator!=() [2/2]

static bool Arci.Networking.Data.PacketGuid.operator!= ( PacketGuid  guid1,
UInt64  guid2 
)
inlinestatic

Comparsion operator

Parameters
guid1First guid value
guid2Second UInt64 value
Returns
false if values represents same UIn64 value, otherwise true

§ operator==() [1/2]

static bool Arci.Networking.Data.PacketGuid.operator== ( PacketGuid  guid1,
PacketGuid  guid2 
)
inlinestatic

Comparsion operator

Parameters
guid1First guid value
guid2Second guid value
Returns
true if values represents same UIn64 value, otherwise false

§ operator==() [2/2]

static bool Arci.Networking.Data.PacketGuid.operator== ( PacketGuid  guid1,
UInt64  guid2 
)
inlinestatic

Comparsion operator

Parameters
guid1First guid value
guid2Second UInt64 value
Returns
true if values represents same UIn64 value, otherwise false

Property Documentation

§ this[int index]

byte Arci.Networking.Data.PacketGuid.this[int index]
getset

Allows to get/set value of any byte value of this Guid

Parameters
indexByte index
Returns
Value at index