Photon Fusion 2.0.12

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Ptr Struct Reference

Ptr More...

Inherits IEquatable< Ptr >, and INetworkStruct.

Classes

class  EqualityComparer
 Ptr Equality Comparer More...
 

Public Member Functions

readonly override bool Equals (object obj)
 Check Ptr equality More...
 
readonly bool Equals (Ptr other)
 Check Ptr equality More...
 
readonly override int GetHashCode ()
 Ptr Hash Code, same as Address More...
 
readonly override string ToString ()
 Ptr to String More...
 

Static Public Member Functions

static implicit operator bool (Ptr a)
 Implicit Bool Operator Check if Address is not 0 More...
 
static bool operator!= (Ptr a, Ptr b)
 Implicit Ptr Not Equals Operator More...
 
static Ptr operator+ (Ptr p, int v)
 Implicit Ptr Sum Operator More...
 
static Ptr operator- (Ptr p, int v)
 Implicit Ptr Subtraction Operator More...
 
static bool operator== (Ptr a, Ptr b)
 Implicit Ptr Equals Operator More...
 

Public Attributes

int Address
 Ptr Address More...
 

Properties

static Ptr Null [get]
 Null Ptr More...
 

Detailed Description

Ptr

Member Function Documentation

◆ Equals() [1/2]

readonly override bool Equals ( object  obj)

Check Ptr equality

Parameters
objAny object reference
Returns
True if obj is a Ptr and points to the same Address

◆ Equals() [2/2]

readonly bool Equals ( Ptr  other)

Check Ptr equality

Parameters
otherPtr Ref
Returns
True if points to the same Address

◆ GetHashCode()

readonly override int GetHashCode ( )

Ptr Hash Code, same as Address

Returns
Address

◆ operator bool()

static implicit operator bool ( Ptr  a)
static

Implicit Bool Operator Check if Address is not 0

Parameters
aPtr to check
Returns
True if Address is not 0

◆ operator!=()

static bool operator!= ( Ptr  a,
Ptr  b 
)
static

Implicit Ptr Not Equals Operator

Parameters
aPtr A
bPtr B
Returns
True if Address is not the same

◆ operator+()

static Ptr operator+ ( Ptr  p,
int  v 
)
static

Implicit Ptr Sum Operator

Parameters
pPtr to add to
vValue to add
Returns
Ptr with Address increased by v

◆ operator-()

static Ptr operator- ( Ptr  p,
int  v 
)
static

Implicit Ptr Subtraction Operator

Parameters
pPtr to subtract from
vValue to subtract
Returns
Ptr with Address decreased by v

◆ operator==()

static bool operator== ( Ptr  a,
Ptr  b 
)
static

Implicit Ptr Equals Operator

Parameters
aPtr A
bPtr B
Returns
True if Address is the same

◆ ToString()

readonly override string ToString ( )

Ptr to String

Returns
Address in Hexadecimal format

Member Data Documentation

◆ Address

int Address

Ptr Address

Property Documentation

◆ Null

Ptr Null
staticget

Null Ptr