Find
Find a sequence of N contiguous 0 bits in a bit array. To achieve higher performance, it is not guaranteed that the found index is necessarily the first occurrence of such a sequence.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
Find(int, int)
Find a sequence of N contiguous 0 bits in a bit array. To achieve higher performance, it is not guaranteed that the found index is necessarily the first occurrence of such a sequence.
public int Find(int pos, int numBits)
Parameters
Returns
Type | Description |
|---|---|
| int | The index of the first occurrence in this array of |
Remarks
The search does not guarantee the earliest occurrence in the array.
The search is linear.
Find(int, int, int)
Find a sequence of N contiguous 0 bits in a bit array. To achieve higher performance, it is not guaranteed that the found index is necessarily the first occurrence of such a sequence.
public int Find(int pos, int count, int numBits)
Parameters
Returns
Type | Description |
|---|---|
| int | The index of the first occurrence in this array of |
Remarks
The search does not guarantee the earliest occurrence in the array.
The search is linear.