# Initialize(int, bool)

> Initializes the allocator. Must be called before first use.

## Definition

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

```csharp
public void Initialize(int initialSizeInBytes, bool enableBlockFree = false)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The initial capacity of the allocator, in bytes**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): A flag indicating if allocator enables individual block free
