Constructs an OpenBitSet from an existing long[].
The first 64 bits are in long[0], with bit index 0 at the least significant bit, and bit index 63 at the most significant. Given a bit index, the word containing it is long[index/64], and it is at bit number index%64 within that word. numWords are the number of elements in the array that contain set bits (non-zero longs). numWords should be <= bits.length, and any existing words in the array at position >= numWords should be zero.
Namespace: Lucene.Net.UtilThe first 64 bits are in long[0], with bit index 0 at the least significant bit, and bit index 63 at the most significant. Given a bit index, the word containing it is long[index/64], and it is at bit number index%64 within that word. numWords are the number of elements in the array that contain set bits (non-zero longs). numWords should be <= bits.length, and any existing words in the array at position >= numWords should be zero.
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public OpenBitSet( long[] bits, int numWords ) |
Visual Basic |
---|
Public Sub New ( _ bits As Long(), _ numWords As Integer _ ) |
Visual C++ |
---|
public: OpenBitSet( array<long long>^ bits, int numWords ) |
Parameters
- bits
- Type: array<System..::..Int64>[]()[][]
[Missing <param name="bits"/> documentation for "M:Lucene.Net.Util.OpenBitSet.#ctor(System.Int64[],System.Int32)"]
- numWords
- Type: System..::..Int32
[Missing <param name="numWords"/> documentation for "M:Lucene.Net.Util.OpenBitSet.#ctor(System.Int64[],System.Int32)"]