Struct AllocatorManager.AllocatorHandle
Represents the allocator function used within an allocator.
Implements
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct AllocatorManager.AllocatorHandle : AllocatorManager.IAllocator
Fields
Name | Description |
---|---|
Index | This allocator's index into the global table of allocator functions. |
Version | This allocator's version number. |
Properties
Name | Description |
---|---|
Handle | This handle. |
Is |
Check whether this allocator will automatically dispose allocations. |
Is |
Check whether this allocator is a custom allocator. |
To |
Retrieve the Allocator associated with this allocator handle. |
Value | The Index cast to int. |
Methods
Name | Description |
---|---|
Allocate |
Allocates a block with this allocator function. |
Compare |
Compare this Allocator |
Dispose() | Dispose the allocator. |
Equals(object) | Allocator |
Equals(Allocator) | Allocator |
Equals(Allocator |
Allocator |
Get |
A hash used for comparisons. |
Try(ref Block) | Tries to allocate the block with this allocator. |
Try |
Allocates a block from this allocator. |
Operators
Name | Description |
---|---|
operator ==(Allocator |
Evaluates if one Allocator |
operator >(Allocator |
Evaluates if one Allocator |
operator >=(Allocator |
Evaluates if one Allocator |
implicit operator Allocator |
Implicitly convert an Allocator to an AllocatorHandle with its Version being reset to 0. |
operator !=(Allocator |
Evaluates if one Allocator |
operator <(Allocator |
Evaluates if one Allocator |
operator <=(Allocator |
Evaluates if one Allocator |