Java.Lang.StringBuffer.EnsureCapacity Method
Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged.

Syntax

[Android.Runtime.Register("ensureCapacity", "(I)V", "")]
public override void EnsureCapacity (int min)

Parameters

min
the new minimum capacity to set.

Remarks

Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged. The general policy of this method is that if the minimumCapacity is larger than the current capacity(), then the capacity will be increased to the largest value of either the minimumCapacity or the current capacity multiplied by two plus two. Although this is the general policy, there is no guarantee that the capacity will change.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1