# ResizeUninitialized(int)

> Sets the length in bytes.

## Definition

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

```csharp
public void ResizeUninitialized(int length)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The new length.

### Remarks

If the new length exceeds the capacity, capacity is expanded to the new length.
