Constructor UnsafeStringBuilder
UnsafeStringBuilder(Int32, Boolean)
Initializes a new UnsafeStringBuilder and allocates a new buffer.
Declaration
public UnsafeStringBuilder(int capacity = 2048, bool throwOnOverflow = true)
Parameters
Type | Name | Description |
---|---|---|
Int32 | capacity | The capacity of the new UnsafeStringBuilder. |
Boolean | throwOnOverflow |
|
UnsafeStringBuilder(Char*, Int32, Boolean)
Initializes a new UnsafeStringBuilder with a pre-allocated buffer/
Declaration
public UnsafeStringBuilder(char *buffer, int size, bool throwOnOverflow = true)
Parameters
Type | Name | Description |
---|---|---|
Char* | buffer | Pointer to the buffer. |
Int32 | size | Number of |
Boolean | throwOnOverflow |
|