Photon Fusion 2.0.3

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static 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

override bool Equals (object obj)
 Check Ptr equality More...
 
bool Equals (Ptr other)
 Check Ptr equality More...
 
override int GetHashCode ()
 Ptr Hash Code, same as Address More...
 
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...
 

Static Public Attributes

const int SIZE = 4
 Ptr Size More...
 

Properties

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

Detailed Description

Ptr

Member Function Documentation

◆ Equals() [1/2]

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]

bool Equals ( Ptr  other)

Check Ptr equality

Parameters
otherPtr Ref
Returns
True if points to the same Address

◆ GetHashCode()

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()

override string ToString ( )

Ptr to String

Returns
Address in Hexadecimal format

Member Data Documentation

◆ Address

int Address

Ptr Address

◆ SIZE

const int SIZE = 4
static

Ptr Size

Property Documentation

◆ Null

Ptr Null
staticget

Null Ptr