Method TryGetNextRange
TryGetNextRange(v128, int, out int, out int)
Retrieves the next contiguous range of set bits starting at or after the provided index in the provided mask.
Declaration
public static bool TryGetNextRange(v128 mask, int firstIndexToCheck, out int nextRangeBegin, out int nextRangeEnd)
Parameters
Type | Name | Description |
---|---|---|
v128 | mask | The enabled-bit mask. |
int | firstIndexToCheck | The index at which to start checking for enabled bits. This method ignores all bits whose indices are smaller than the index provided here. |
int | nextRangeBegin | The index at which the first enabled bit is found. |
int | nextRangeEnd | The index of the first bit NOT in the next range. |
Returns
Type | Description |
---|---|
bool | True if another range of contiguous bits was found (in which case, the range info is stored in
|