<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

ValueStringBuilder

String builder struct that allows using stack space for small strings.
public int Capacity { get; }

public ref char this[int index] { get; }

public int Length { get; set; }

public Span<char> RawChars { get; }

Returns the underlying storage of the builder.

public ValueStringBuilder(int literalLength, int formattedCount)

public ValueStringBuilder(Span<char> initialBuffer)

public ValueStringBuilder(int initialCapacity)

public void Append(char c)

public void Append(char c, int count)

public void Append(Char* value, int length)

public void Append(ReadOnlySpan<char> value)

public void AppendFormatted<TFormattable>(TFormattable value) where TFormattable : ISpanFormattable

public void AppendFormatted(string value)

public void AppendFormatted(object value)

public void AppendLiteral(string s)

Append a string to the builder. If the string is null, this method does nothing.

public ReadOnlySpan<char> AsSpan(bool terminate)

Returns a span around the contents of the builder.

public ReadOnlySpan<char> AsSpan()

public ReadOnlySpan<char> AsSpan(int start)

public ReadOnlySpan<char> AsSpan(int start, int length)

public void Dispose()

public void EnsureCapacity(int capacity)

public ref char GetPinnableReference()

Get a pinnable reference to the builder. Does not ensure there is a null char after Length

public ref char GetPinnableReference(bool terminate)

Get a pinnable reference to the builder.

public void Insert(int index, char value, int count)

public void Insert(int index, string s)

public string ToStringAndClear()

public bool TryCopyTo(Span<char> destination, out int charsWritten)