Apache Lucene.Net 2.4.0 Class Library API

SupportClass.Number.NextSetBit Method 

Returns the index of the first bit that is set to true that occurs on or after the specified starting index. If no such bit exists then -1 is returned.

public static int NextSetBit(
   BitArray bits,
   int fromIndex
);

Parameters

bits
The BitArray object.
fromIndex
The index to start checking from (inclusive).

Return Value

The index of the next set bit.

See Also

SupportClass.Number Class | (global) Namespace