Struct AllocatorManager.AllocatorHandle
Which allocator a Block's Range allocates from.
Namespace: Unity.Collections
Syntax
public struct AllocatorHandle
  Fields
Value
Index into a function table of allocation functions.
Declaration
public int Value
  Field Value
| Type | Description | 
|---|---|
| Int32 | 
Methods
Allocate<T>(Int32)
Allocates a Block of memory from this allocator with requested number of items of a given type.
Declaration
public AllocatorManager.Block Allocate<T>(int Items)
    where T : struct
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | Items | Number of items to allocate.  | 
      
Returns
| Type | Description | 
|---|---|
| AllocatorManager.Block | A Block of memory.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | Type of item to allocate.  | 
      
TryAllocate<T>(out AllocatorManager.Block, Int32)
Allocates a Block of memory from this allocator with requested number of items of a given type.
Declaration
public int TryAllocate<T>(out AllocatorManager.Block block, int Items)
    where T : struct
  Parameters
| Type | Name | Description | 
|---|---|---|
| AllocatorManager.Block | block | Block of memory to allocate within.  | 
      
| Int32 | Items | Number of items to allocate.  | 
      
Returns
| Type | Description | 
|---|---|
| Int32 | Error code from the given Block's allocate function.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | Type of item to allocate.  | 
      
Operators
Implicit(Allocator to AllocatorManager.AllocatorHandle)
Declaration
public static implicit operator AllocatorManager.AllocatorHandle(Allocator a)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Allocator | a | 
Returns
| Type | Description | 
|---|---|
| AllocatorManager.AllocatorHandle |