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