Photon Fusion 2.1.1

Allocator.Config Struct Reference

Memory Allocator Configuration. More...

Public Member Functions

 Config (PageSizes shift, int count, int globalsSize)
 Config Constructor.
readonly bool Equals (Config other)
 Check Config equality.
override readonly bool Equals (object obj)
 Check Config equality.
override readonly int GetHashCode ()
 Get Hash Code.
override readonly string ToString ()
 Config ToString.

Public Attributes

int BlockCount
 Block Count Config value.
int BlockShift
 Block Shift Config value.
int GlobalsSize
 Globals Size Config value.

Static Public Attributes

const int DEFAULT_BLOCK_COUNT = 256
 Default Block Count.
const PageSizes DEFAULT_BLOCK_SHIFT = PageSizes._32Kb
 Default Block Shift.

Properties

readonly int BlockByteSize [get]
 Block Size in Bytes.
readonly int BlockWordCount [get]
 Block Size in Words.
readonly int HeapSizeAllocated [get]
 Heap Size Allocated in Bytes.
readonly int HeapSizeUsable [get]
 Heap Size in Bytes.

Detailed Description

Memory Allocator Configuration.

Constructor & Destructor Documentation

◆ Config()

Config ( PageSizes shift,
int count,
int globalsSize )

Config Constructor.

Parameters
shiftBlock Shift
countBlock Count
globalsSizeGlobals Size

Member Function Documentation

◆ Equals() [1/2]

readonly bool Equals ( Config other)

Check Config equality.

Parameters
otherConfig Ref
Returns
True if has the same values

◆ Equals() [2/2]

override readonly bool Equals ( object obj)

Check Config equality.

Parameters
objAny object reference
Returns
True if obj is a Config and has the same values

◆ GetHashCode()

override readonly int GetHashCode ( )

Get Hash Code.

Returns
Hash Code