Table of Contents

UString.UltraFastString Struct

public struct UString.UltraFastString : IDisposable

Lightning-fast & memory-efficient string builder achieving better performance than DefaultInterpolatedStringHandler.

Implements
Inherited Members
Extension Methods

Properties

Length

Methods

Append(bool)
Append(byte)
Append(char)
Append(char, int)
Append(decimal)
Append(double)
Append(short)
Append(int)
Append(long)
Append(Object?, ReadOnlySpan<char>, IFormatProvider?)
Append(ReadOnlySpan<char>)
Append(sbyte)
Append(float)
Append(string?)
Append(ushort)
Append(uint)
Append(ulong)
AppendLine(bool)
AppendLine(byte)
AppendLine(char)
AppendLine(char, int)
AppendLine(decimal)
AppendLine(double)
AppendLine(short)
AppendLine(int)
AppendLine(long)
AppendLine(Object?, ReadOnlySpan<char>, IFormatProvider?)
AppendLine(ReadOnlySpan<char>)
AppendLine(sbyte)
AppendLine(float)
AppendLine(string?)
AppendLine(ushort)
AppendLine(uint)
AppendLine(ulong)
AppendLine<T>(T, ReadOnlySpan<char>, IFormatProvider?)
Append<T>(T)
Append<T>(T, ReadOnlySpan<char>, IFormatProvider?)
AsSpan()

Current snapshot of internal buffer excluding unused portion.

Clear()

Note that clearing content WON'T release internal buffer.

Dispose()

Return instance to pool.

EnsureRemainingCapacityAndGetSpanToWrite(int)

Expand internal buffer if required and return unused portion of internal buffer.

GetRawBuffer()

Direct reference to internal buffer.

NewLine()

Add new line char(s) set by NewLineChars.

ToString()

Returns the fully qualified type name of this instance.

ToStringAndDispose()

Get resulting string and return instance to pool.

Operators

implicit operator string(UltraFastString)