Method EnsureCapacity
EnsureCapacity(Int64BitSet, Int64)
If the given Int64BitSet is large enough to hold
numBits
, returns the given bits
, otherwise returns a new
Int64BitSet which can hold the requested number of bits.
NOTE: the returned bitset reuses the underlying long[] of
the given bits
if possible. Also, reading Length on the
returned bits may return a value greater than numBits
.
Declaration
public static Int64BitSet EnsureCapacity(Int64BitSet bits, long numBits)
Parameters
Type | Name | Description |
---|---|---|
Int64BitSet | bits | |
System.Int64 | numBits |
Returns
Type | Description |
---|---|
Int64BitSet |