Photon Fusion 2.0.5

Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Allocator Class Reference

Memory Allocator More...

Inherits IDisposable.

Classes

struct  Config
 Memory Allocator Configuration More...
 

Public Member Functions

void Dispose ()
 
string LogPointerInfo (void *p)
 LogPointerInfo More...
 

Static Public Member Functions

static Allocator Create (Config config)
 

Static Public Attributes

const int BUCKET_COUNT = 57
 Bucket Count More...
 
const byte BUCKET_INVALID = 255
 Bucket Invalid More...
 
const int HEAP_ALIGNMENT = 8
 Heap Alignment More...
 
const int REPLICATE_WORD_ALIGN = REPLICATE_WORD_SIZE
 Replicate Word Align More...
 
const int REPLICATE_WORD_SHIFT = 2
 Replicate Word Shift More...
 
const int REPLICATE_WORD_SIZE = 1 << REPLICATE_WORD_SHIFT
 Replicate Word Size More...
 

Detailed Description

Memory Allocator

Member Function Documentation

◆ Create()

static Allocator Create ( Config  config)
static

Parameters
config
Returns

◆ Dispose()

void Dispose ( )

◆ LogPointerInfo()

string LogPointerInfo ( void *  p)

LogPointerInfo

Member Data Documentation

◆ BUCKET_COUNT

const int BUCKET_COUNT = 57
static

Bucket Count

◆ BUCKET_INVALID

const byte BUCKET_INVALID = 255
static

Bucket Invalid

◆ HEAP_ALIGNMENT

const int HEAP_ALIGNMENT = 8
static

Heap Alignment

◆ REPLICATE_WORD_ALIGN

const int REPLICATE_WORD_ALIGN = REPLICATE_WORD_SIZE
static

Replicate Word Align

◆ REPLICATE_WORD_SHIFT

const int REPLICATE_WORD_SHIFT = 2
static

Replicate Word Shift

◆ REPLICATE_WORD_SIZE

const int REPLICATE_WORD_SIZE = 1 << REPLICATE_WORD_SHIFT
static

Replicate Word Size