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.5.21.0 (6.5.21.0)
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.