DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="5.17.0" />

.NET API 536,520 bytes

 PoolingInterpolatedStringHandler

Represents interpolated string builder that utilizes reusable buffer rented from the pool.
public PoolingInterpolatedStringHandler(int literalLength, int formattedCount, MemoryAllocator<char> allocator, IFormatProvider provider = null)

Initializes a new interpolated string handler.

public void AppendFormatted<T>(T value, string format = null)

Writes the specified value to the handler.

public void AppendFormatted(ReadOnlySpan<char> value, int alignment)

Writes the specified string of chars to the handler.

public void AppendFormatted<T>(T value, int alignment, string format = null)

Writes the specified value to the handler.

public void AppendFormatted(ReadOnlySpan<char> value)

Writes the specified character span to the handler.

public void AppendLiteral(string value)

Writes the specified string to the handler.

public void Dispose()

Releases the buffer associated with this handler.