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. |
IsAutoDispose | Check whether this allocator will automatically dispose allocations. |
IsCustomAllocator | Check whether this allocator is a custom allocator. |
ToAllocator | Retrieve the Allocator associated with this allocator handle. |
Value | The Index cast to int. |
Methods
Name | Description |
---|---|
AllocateBlock<T>(int) | Allocates a block with this allocator function. |
CompareTo(AllocatorHandle) | Compare this AllocatorManager.AllocatorHandle against a given one |
Dispose() | Dispose the allocator. |
Equals(object) | AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version. |
Equals(Allocator) | AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version. |
Equals(AllocatorHandle) | AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version. |
GetHashCode() | A hash used for comparisons. |
Try(ref Block) | Tries to allocate the block with this allocator. |
TryAllocateBlock<T>(out Block, int) | Allocates a block from this allocator. |
Operators
Name | Description |
---|---|
operator ==(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is equal to the other. |
operator >(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is greater than the other. |
operator >=(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is greater than or equal to the other. |
implicit operator AllocatorHandle(Allocator) | Implicitly convert an Allocator to an AllocatorHandle with its Version being reset to 0. |
operator !=(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is not equal to the other. |
operator <(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is less than the other. |
operator <=(AllocatorHandle, AllocatorHandle) | Evaluates if one AllocatorManager.AllocatorHandle is less than or equal to the other. |