Struct AllocatorHelper<T>
Provides a wrapper for custom allocator.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct AllocatorHelper<T> where T : unmanaged, AllocatorManager.IAllocator
Type Parameters
Name | Description |
---|---|
T | The type of the allocator. |
Constructors
Name | Description |
---|---|
AllocatorHelper(AllocatorHandle, bool, int) | Allocate the custom allocator from backingAllocator and register it. |
Properties
Name | Description |
---|---|
Allocator | Get the custom allocator. |
Methods
Name | Description |
---|---|
Dispose() | Dispose the custom allocator backing memory and unregister it. |