Method Register
Register<T>(ref T, bool, bool, int)
Saves an allocator's function pointers in a free slot of the global function table. Thread safe.
Declaration
[ExcludeFromBurstCompatTesting("Uses managed delegate")]
public static void Register<T>(this ref T t, bool IsAutoDispose = false, bool isGlobal = false, int globalIndex = 0) where T : unmanaged, AllocatorManager.IAllocator
Parameters
| Type | Name | Description |
|---|---|---|
| T | t | Reference to the allocator. |
| bool | IsAutoDispose | Flag indicating if the allocator will automatically dispose allocations. |
| bool | isGlobal | Flag indicating if the allocator is a global allocator. |
| int | globalIndex | Index into the global function table of the allocator to be created. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of allocator to register. |