| Parameter | Description |
|---|---|
| pos | Index of the bit at which to start searching. |
| numBits | Number of contiguous 0 bits to look for. |
int
The index of the first occurrence in this array of numBits contiguous 0 bits. Range is pos up to (but not including) the length of this array. Returns int.MaxValue if no occurrence is found.
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.
The search does not guarantee the earliest occurrence in the array.
The search is linear.
| Parameter | Description |
|---|---|
| pos | Index of the bit at which to start searching. |
| numBits | Number of contiguous 0 bits to look for. |
| count | Number of indexes to consider as the return value. |
int
The index of the first occurrence in this array of numBits contiguous 0 bits. Range is pos up to (but not including) pos + count. Returns int.MaxValue if no occurrence is found.
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.
The search does not guarantee the earliest occurrence in the array.
The search is linear.