Method EnsureCapacity
EnsureCapacity(int)
Ensures that the buffer has at least the specified capacity.
Declaration
public void EnsureCapacity(int length)
Parameters
Type | Name | Description |
---|---|---|
int | length | The buffer capacity is ensured to be at least this big. |
Remarks
If length
is greater than the current Capacity
of this buffer and greater than the capacity reserved with
Internal
Examples
buffer.EnsureCapacity(buffer.Capacity + 10);