# GetUnsafeForEachCountPtr(ref NativeStream)

> Returns a pointer to this stream's buffer counter.

## Definition

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

## GetUnsafeForEachCountPtr(NativeStream)

```csharp
public static void* GetUnsafeForEachCountPtr(this ref NativeStream stream)
```

### Parameters

**** (\[NativeStream]\(/engine/6000.7/script-reference/unity/collections/nativestream)): The stream.

### Returns

| Type                                                         | Description                                                                                                                  |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | A pointer to this stream's [buffer counter](/engine/6000.7/script-reference/unity/collections/nativestream/foreachcount.md). |
