Constructor OpenBitSet
OpenBitSet(Int64)
Constructs an OpenBitSet large enough to hold numBits
.
Declaration
public OpenBitSet(long numBits)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | numBits |
OpenBitSet()
Constructor: allocates enough space for 64 bits.
Declaration
public OpenBitSet()
OpenBitSet(Int64[], Int32)
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.
Declaration
public OpenBitSet(long[] bits, int numWords)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | bits | |
System.Int32 | numWords |