BitArrayEnsureCapacity Method
Ensures that the bit array has a minimum capacity to accommodate a specified number of bits.
Namespace: SnapDB.CollectionsAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void EnsureCapacity(
int capacity
)
Public Sub EnsureCapacity (
capacity As Integer
)
public:
void EnsureCapacity(
int capacity
)
function EnsureCapacity(capacity);
Parameters
- capacity Int32
- Minimum number of bits the bit array should be able to hold.
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.