# GetWorkStealingRange(ref JobRanges, int, out int, out int)

> Gets a work stealing range.

## Definition

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

## GetWorkStealingRange(JobRanges, int, int, int)

```csharp
public static bool GetWorkStealingRange(ref JobRanges ranges, int jobIndex, out int beginIndex, out int endIndex)
```

### Parameters

**** (\[JobRanges]\(/engine/6000.5/script-reference/unity/jobs/lowlevel/unsafe/jobranges)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                          | Description                 |
| ------------------------------------------------------------- | --------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if successful. |
