StringBuilder: EnsureCapacity |
Ensures that the internal buffer has atleast the requested amount.
Public Function EnsureCapacity( ByVal RequiredCapacity As Long ) As Long
When RequiredCapacity is larger than the current capacity, The new capacity is calculated as double the current capacity. If the new capacity is still smaller than RequiredCapacity, RequiredCapacity becomes the new capacity.