Method Find
Find(int, int)
Returns the index of the first occurrence in this array of N contiguous 0 bits.
Declaration
public int Find(int pos, int numBits)
Parameters
Type | Name | Description |
---|---|---|
int | pos | Index of the bit at which to start searching. |
int | numBits | Number of contiguous 0 bits to look for. |
Returns
Type | Description |
---|---|
int | The index of the first occurrence in this array of |
Remarks
The search is linear.
Find(int, int, int)
Returns the index of the first occurrence in this array of a given number of contiguous 0 bits.
Declaration
public int Find(int pos, int count, int numBits)
Parameters
Type | Name | Description |
---|---|---|
int | pos | Index of the bit at which to start searching. |
int | count | Number of indexes to consider as the return value. |
int | numBits | Number of contiguous 0 bits to look for. |
Returns
Type | Description |
---|---|
int | The index of the first occurrence in this array of |
Remarks
The search is linear.