Open sandboxFocus

Method Append

Append(char)

Appends one char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c)
Parameters
Type Name Description
char c

A char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char)

Appends two char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2)
Parameters
Type Name Description
char c1

The first char to append.

char c2

The second char to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char)

Appends three char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3)
Parameters
Type Name Description
char c1

The first char to append.

char c2

The second char to append.

char c3

The third char to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char, char)

Appends four char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3, char c4)
Parameters
Type Name Description
char c1

The first char to append.

char c2

The second char to append.

char c3

The third char to append.

char c4

The fourth char to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, char, char, char, char)

Appends five char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c1, char c2, char c3, char c4, char c5)
Parameters
Type Name Description
char c1

The first char to append.

char c2

The second char to append.

char c3

The third char to append.

char c4

The fourth char to append.

char c5

The fifth char to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char[]?, int, int)

Appends an array segment of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char[]? c, int offset, int count)
Parameters
Type Name Description
char[] c

A non-null array of char.

int offset

Index of the first char to be appended.

int count

Number of char to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char*, int)

Appends an unmanaged array of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char* c, int count)
Parameters
Type Name Description
char* c

A non-null pointer to an unmanaged array of char.

int count

Number of char to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char, int)

Appends several times the same char to the current UnsafeStringBuilder.

Declaration
public bool Append(char c, int count)
Parameters
Type Name Description
char c

A char.

int count

The number of times c has to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(char[]?)

Appends an array of char to the current UnsafeStringBuilder.

Declaration
public bool Append(char[]? c)
Parameters
Type Name Description
char[] c

An array of char.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(ReadOnlySpan<char>)

Declaration
public bool Append(ReadOnlySpan<char> c)
Parameters
Type Name Description
ReadOnlySpan<char> c
Returns
Type Description
bool

Append(string?)

Appends a string to the current UnsafeStringBuilder.

Declaration
public bool Append(string? str)
Parameters
Type Name Description
string str

A string.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(string?, int, int)

Appends a part of a string to the current UnsafeStringBuilder.

Declaration
public bool Append(string? str, int startIndex, int length)
Parameters
Type Name Description
string str

A string.

int startIndex

The index of the first character of the string to append.

int length

The number of characters to append.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(UnsafeStringBuilder?)

Appends the current value of a UnsafeStringBuilder to the current UnsafeStringBuilder.

Declaration
public bool Append(UnsafeStringBuilder? stringBuilder)
Parameters
Type Name Description
UnsafeStringBuilder stringBuilder

An UnsafeStringBuilder.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(byte)

Appends a byte (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(byte value)
Parameters
Type Name Description
byte value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(sbyte)

Appends an sbyte (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(sbyte value)
Parameters
Type Name Description
sbyte value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(ushort)

Appends a ushort (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(ushort value)
Parameters
Type Name Description
ushort value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(short)

Appends a short (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(short value)
Parameters
Type Name Description
short value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(uint)

Appends a uint (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(uint value)
Parameters
Type Name Description
uint value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(int)

Appends a int (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(int value)
Parameters
Type Name Description
int value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(ulong)

Appends a ulong (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(ulong value)
Parameters
Type Name Description
ulong value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(long)

Appends a long (with decimal formatting) to the current UnsafeStringBuilder.

Declaration
public bool Append(long value)
Parameters
Type Name Description
long value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append(bool)

Appends a bool (true or false, literally) to the current UnsafeStringBuilder.

Declaration
public bool Append(bool value)
Parameters
Type Name Description
bool value

The value to be appended.

Returns
Type Description
bool

true in case of success, false in case of buffer overflow.

Append<T>(T, ReadOnlySpan<char>, IFormatProvider?)

Declaration
public void Append<T>(T formattable, ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) where T : ISpanFormattable
Parameters
Type Name Description
T formattable
ReadOnlySpan<char> format
IFormatProvider formatProvider
Type Parameters
Name Description
T