| Method |
Description |
| AllocateNativeArray |
Allocate a NativeArray of type T from memory that is guaranteed to remain valid until the end of the
next Update of this World. There is no need to Dispose the NativeArray so allocated. It is not possible
to free the memory by Disposing it - it is automatically freed after the end of the next Update for this
World.
|
| AllocateNativeList |
Allocate a NativeList of type T from memory that is guaranteed to remain valid until the end of the
next Update of this World. There is no need to Dispose the NativeList so allocated. It is not possible
to free the memory by Disposing it - it is automatically freed after the end of the next Update for this
World. The NativeList must be initialized with its maximum capacity; if it were to dynamically resize,
up to 1/2 of the total final capacity would be wasted, because the memory can't be dynamically freed.
|
| Dispose |
Dispose the allocator. This must be called to free the memory blocks that were allocated from the system.
|
| Initialize |
Initializes the allocator. Must be called before first use.
|
| Rewind |
Rewind the allocator; invalidate all allocations made from it, and potentially also free memory blocks
it has allocated from the system.
|
| Try |
Try to allocate, free, or reallocate a block of memory. This is an internal function, and
is not generally called by the user.
|