# PatchBufferMinMaxRanges(nint, void*, int, int)

> Injects debug checks for min and max ranges of a native array.

## Definition

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

## PatchBufferMinMaxRanges(IntPtr, void\*, int, int)

```csharp
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void PatchBufferMinMaxRanges(nint bufferRangePatchData, void* jobdata, int startIndex, int rangeSize)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The buffer range patch data to write the checks into.**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): Pointer to the job data that owns the buffer.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the first element in the range.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of elements in the range.
