# AllocateBlock<T>(int)

> Allocates a block with this allocator function.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public AllocatorManager.Block AllocateBlock<T>(int items) where T : unmanaged
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of values to allocate for.

### Returns

| Type                                                                                 | Description          |
| ------------------------------------------------------------------------------------ | -------------------- |
| [Block](/engine/6000.7/script-reference/unity/collections/allocatormanager/block.md) | The allocated block. |
