Quantum 3
3.0.14
A class that wraps memory allocation methods to be used in native code parts of the engine. More...
Public Member Functions | |
| unsafe | AllocatorVTableManaged (AllocateDelegate malloc, FreeDelegate free, CopyDelegate memcpy, MoveDelegate memmove, SetDelegate memset, CompareDelegate memcmp) |
| Create an allocator operations table. More... | |
| unsafe | AllocatorVTableManaged (Allocator alloc, Utility util) |
| Create am allocator operations table. More... | |
| AllocatorVTable | Marshal () |
| Wrap the allocator operations table into a struct to be marshaled to native code. More... | |
Public Attributes | |
| AllocateDelegate | Allocate => _malloc |
| Returns the Allocator.Alloc(int) method. More... | |
| CompareDelegate | Compare => _memcmp |
| Returns the Utility.Compare method. More... | |
| CopyDelegate | Copy => _memcpy |
| Returns the Utility.Copy method. More... | |
| FreeDelegate | Free => _free |
| Returns the Allocator.Free method. More... | |
| MoveDelegate | Move => _memmove |
| Returns the Utility.Move method. More... | |
| SetDelegate | Set => _memset |
| Returns the Utility.Set method. More... | |
A class that wraps memory allocation methods to be used in native code parts of the engine.
|
inline |
Create am allocator operations table.
| alloc | The allocator to use. |
| util | The util methods to use. |
|
inline |
Create an allocator operations table.
| malloc | The explicit Allocate method. |
| free | The explicit Free method. |
| memcpy | The explicit Copy method |
| memmove | The explicit Move method. |
| memset | The explicit Set method. |
| memcmp | The explicit Compare method. |
|
inline |
Wrap the allocator operations table into a struct to be marshaled to native code.
| AllocateDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Allocate => _malloc |
Returns the Allocator.Alloc(int) method.
| FreeDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Free => _free |
Returns the Allocator.Free method.
| CopyDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Copy => _memcpy |
Returns the Utility.Copy method.
| MoveDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Move => _memmove |
Returns the Utility.Move method.
| SetDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Set => _memset |
Returns the Utility.Set method.
| CompareDelegate Photon.Deterministic.Native.AllocatorVTableManaged.Compare => _memcmp |
Returns the Utility.Compare method.