# SetCapacity(int)

> Sets the size in bytes of the internal buffer.

## Definition

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

```csharp
public void SetCapacity(int capacity)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): A new capacity in bytes.

### Remarks

Does nothing if the new capacity is less than or equal to the current capacity.
