BitArrayEnsureCapacity Method

Ensures that the bit array has a minimum capacity to accommodate a specified number of bits.

Definition

Namespace: SnapDB.Collections
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void EnsureCapacity(
	int capacity
)

Parameters

capacity  Int32
Minimum number of bits the bit array should be able to hold.

Remarks

If the current capacity of the bit array is less than the specified capacity, the method increases the capacity to either double the current capacity or the specified capacity, whichever is greater.

See Also