# GetReaderArray(AtomicSafetyHandle, int, nint)

> Fetches the job handles of all jobs that read from an AtomicSafetyHandle.

## Definition

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

## GetReaderArray(AtomicSafetyHandle, int, IntPtr)

```csharp
public static int GetReaderArray(AtomicSafetyHandle handle, int maxCount, nint output)
```

### Parameters

**** (\[AtomicSafetyHandle]\(/engine/6000.5/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle)): The AtomicSafetyHandle to return readers for.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The maximum number of AtomicSafetyHandles to write to the output array.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): A buffer where the job handles are written.

### Returns

| Type                                                       | Description                                                                                  |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of readers on the handle, which might be greater than the maximum count provided. |

### Remarks

This is a debugging method used to produce better error messages and is not intended to be called from user code.
