MetalamaAPI documentationFlashtrace APIFlashtrace.​FormattersUnsafe­String­Builder­PoolUnsafe­String­Builder­Pool
Open sandboxFocus

UnsafeStringBuilderPool Constructor

UnsafeStringBuilderPool(Int32, Boolean, Int32)

Initializes a new instance of the UnsafeStringBuilderPool class.

Declaration
public UnsafeStringBuilderPool(int stringBuilderCapacity, bool throwOnOverflow, int maxInstances = 32)
Parameters
Type Name Description
System.Int32 stringBuilderCapacity

Maximal number of characters in the UnsafeStringBuilder in the pool.

System.Boolean throwOnOverflow

true if an System.OverflowException should be thrown when the buffer capacity is insufficient, false if the Append method should return false without exception.

System.Int32 maxInstances

Maximal number of instances in the pool. The default value is 32.