Method AllocateBlock
AllocateBlock<T>(int)
Allocates a block with this allocator function.
Declaration
public AllocatorManager.Block AllocateBlock<T>(int items) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
int | items | The number of values to allocate for. |
Returns
Type | Description |
---|---|
AllocatorManager.Block | The allocated block. |
Type Parameters
Name | Description |
---|---|
T | The type of value to allocate for. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the allocator is not valid or if the allocation failed. |