# ReadNextArray<T>(out int)

> Reads an array from the append buffer.

## Definition

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

## ReadNextArray\<T>(int)

```csharp
public void* ReadNextArray<T>(out int length) where T : unmanaged
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Output which is the number of elements in the read array.

### Returns

| Type                                                         | Description                                                                          |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | A pointer to where the first element of the read array resides in the append buffer. |

### Remarks

An array stored in the append buffer starts with an int specifying the number of values in the array. The first element of an array immediately follows this int.

Advances the reader's offset by the size of the array (plus an int).
