// Generated API outline. Implementation bodies omitted.
#nullable enable
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Threading;
using System;
using nfloat = System.Runtime.InteropServices.NFloat;
using static Xui.Core.Math2D.Constants;
namespace Xui.Core.Memory
{
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
///
/// Low-allocation interpolated string handler for building text in a stack-first inline buffer,
/// spilling to a rented array only when the text exceeds 256 characters.
///
[InterpolatedStringHandler]
public ref struct FillTextInterpolatedStringHandler
{
/// Initializes the handler and allocates or rents a buffer of the appropriate size.
/// Total character count of all literal string segments.
/// Number of interpolated holes in the string.
public FillTextInterpolatedStringHandler(int literalLength, int formattedCount);
/// Appends a literal string segment to the buffer.
public void AppendLiteral(string s);
/// Appends a span-formattable value using its default format.
public void AppendFormatted(T value)
where T : ISpanFormattable;
/// Appends a span-formattable value using the specified format string.
public void AppendFormatted(T value, ReadOnlySpan format)
where T : ISpanFormattable;
/// Appends a span-formattable value with the specified alignment width.
public void AppendFormatted(T value, int alignment)
where T : ISpanFormattable;
/// Appends a span-formattable value with the specified format and alignment width.
public void AppendFormatted(T value, int alignment, ReadOnlySpan format)
where T : ISpanFormattable;
/// Appends a of characters directly.
public void AppendFormatted(ReadOnlySpan value);
/// Appends a string value.
public void AppendFormatted(string? value);
/// Appends any object by calling ToString().
public void AppendFormatted(object? value);
/// Returns the currently accumulated characters as a read-only span.
public readonly ReadOnlySpan AsSpan();
/// Returns any rented array buffer back to the pool.
public void Dispose();
}
}