Method TryAllocateBlock
TryAllocateBlock<T>(out Block, int)
Allocates a block from this allocator.
Declaration
public int TryAllocateBlock<T>(out AllocatorManager.Block block, int items) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.Block | block | Outputs the allocated block. |
int | items | The number of values to allocate for. |
Returns
Type | Description |
---|---|
int | 0 if successful. Otherwise, returns the error code from the allocator function. |
Type Parameters
Name | Description |
---|---|
T | The type of value to allocate for. |