PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Formatters Namespace/Unsafe­String­Builder Class/Unsafe­String­Builder Constructor/Unsafe­String­Builder Constructor (Char*, Int32, Boolean)

UnsafeStringBuilder Constructor (Char, Int32, Boolean)

Initializes a new UnsafeStringBuilder with a pre-allocated buffer/

Namespace:  PostSharp.Patterns.Formatters
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public UnsafeStringBuilder(
	char* buffer,
	int size,
	bool throwOnOverflow = true
)

Parameters

buffer
Type: System.Char*
Pointer to the buffer.
size
Type: System.Int32
Number of char in the buffer.
throwOnOverflow (Optional)
Type: System.Boolean
true if an OverflowException should be thrown when the buffer capacity is insufficient, false if the Append method should return false without exception.
See Also