Manages custom memory allocators.
| Property | Description |
|---|---|
| AudioKernel | Corresponds to Allocator.AudioKernel. |
| FirstUserIndex | Index in the global function table of the first user-defined allocator. |
| Invalid | Corresponds to Allocator.Invalid. |
| kErrorBufferOverflow | Memory allocation Buffer Overflow status |
| kErrorNone | Memory allocation Success status |
| MaxNumCustomAllocators | Maximum number of user-defined allocators. |
| None | Corresponds to Allocator.None. |
| Persistent | Corresponds to Allocator.Persistent. |
| Temp | Corresponds to Allocator.Temp. |
| TempJob | Corresponds to Allocator.TempJob. |
| Method | Description |
|---|---|
| Allocate | Allocates memory directly from an allocator. |
| ConvertToAllocatorHandle | Convert an Allocator to an AllocatorHandle, keeping the Version. |
| Free | Frees an allocation. |
| Initialize | For internal use only. |
| Register | Saves an allocator's function pointers in a free slot of the global function table. Thread safe. |
| Shutdown | For internal use only. |
| Try | Invokes the allocator function of a block. |
| UnmanagedUnregister | Removes an allocator's function pointers from the global function table, without managed code |
| Unregister | Removes an allocator's function pointers from the global function table. |
| Delegate | Description |
|---|---|
| TryFunction | Used for calling an allocator function. |