Struct WorldAllocator
Namespace: Unity.Entities
Syntax
[BurstCompile]
public struct WorldAllocator : AllocatorManager.IAllocator, IDisposable
Properties
| Name | Description |
|---|---|
| Function | The allocator function. It can allocate, deallocate, or reallocate. |
| Handle | This allocator. |
| IsCustomAllocator | Check whether an allocator is a custom allocator |
| ToAllocator | Cast the Allocator index into Allocator |
Methods
| Name | Description |
|---|---|
| Dispose() | Dispose the allocator. This must be called to free the memory blocks that were allocated from the system. |
| Initialize(AllocatorManager.AllocatorHandle) | |
| IsInitialized() | |
| Try(ref AllocatorManager.Block) | Invoke the allocator function. |