AllocatorHelper<T>
Provides a wrapper for custom allocator.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
- Implements: IDisposable
public struct AllocatorHelper<T> : IDisposable where T : unmanaged, AllocatorManager.IAllocator
Constructors
Constructor | Description |
|---|---|
| AllocatorHelper`1(Unity.Collections.AllocatorManager.AllocatorHandle,System.Boolean,System.Int32) | Allocate the custom allocator from backingAllocator and register it. |
Properties
Property | Description |
|---|---|
| Allocator | Get the custom allocator. |
Methods
Method | Description |
|---|---|
| Dispose | Dispose the custom allocator backing memory and unregister it. |