# EndForEachIndex()

> Checks if all data has been read from the buffer.

## Definition

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

```csharp
public void EndForEachIndex()
```

### Remarks

If you intentionally don't want to read "all" the data in the buffer, don't call this method. Otherwise, calling this method is recommended, even though it's not strictly necessary.
