Photon Fusion 2.0.3

Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Allocator.Config Struct Reference

Memory Allocator Configuration More...

Public Member Functions

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

Public Attributes

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

Static Public Attributes

const int DEFAULT_BLOCK_COUNT = 256
 Default Block Count More...
 
const PageSizes DEFAULT_BLOCK_SHIFT = PageSizes._32Kb
 Default Block Shift More...
 
const int SIZE = 12
 Config Size More...
 

Properties

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

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]

bool Equals ( Config  other)

Check Config equality

Parameters
otherConfig Ref
Returns
True if has the same values

◆ Equals() [2/2]

override 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 int GetHashCode ( )

Get Hash Code

Returns
Hash Code

◆ ToString()

override string ToString ( )

Config ToString

Member Data Documentation

◆ BlockCount

int BlockCount

Block Count Config value

◆ BlockShift

int BlockShift

Block Shift Config value

◆ DEFAULT_BLOCK_COUNT

const int DEFAULT_BLOCK_COUNT = 256
static

Default Block Count

◆ DEFAULT_BLOCK_SHIFT

const PageSizes DEFAULT_BLOCK_SHIFT = PageSizes._32Kb
static

Default Block Shift

◆ GlobalsSize

int GlobalsSize

Globals Size Config value

◆ SIZE

const int SIZE = 12
static

Config Size

Property Documentation

◆ BlockByteSize

int BlockByteSize
get

Block Size in Bytes

◆ BlockWordCount

int BlockWordCount
get

Block Size in Words

◆ HeapSizeAllocated

int HeapSizeAllocated
get

Heap Size Allocated in Bytes

◆ HeapSizeUsable

int HeapSizeUsable
get

Heap Size in Bytes