INNER CODE UNIT · C#
HandleSpanOutput
waf/CSharpRepl · CSharpRepl.Services/RuntimeHelper.cs:12
public static CharSpanOutput HandleSpanOutput(System.Span<char> span) => CharSpanOutput.Create(span, typeof(System.Span<char>));
public static CharSpanOutput HandleSpanOutput(System.ReadOnlySpan<char> span) => CharSpanOutput.Create(span, typeof(System.ReadOnlySpan<char>));
public static SpanOutput HandleMemoryOutput<T>(System.Memory<T> memory) => SpanOutput.Create<T>(memory.Span, typeof(System.Memory<T>));
public static SpanOutput HandleMemoryOutput<T>(System.ReadOnlyMemory<T> memory) => SpanOutput.Create(memory.Span, typeof(System.ReadOnlyMemory<T>));
public static CharSpanOutput HandleMemoryOutput(System.Memory<char> memory) => CharSpanOutput.Create(memory.Span, typeof(System.Memory<char>));
public static CharSpanOutput HandleMemoryOutput(System.ReadOnlyMemory<char> memory) => CharSpanOutput.Create(memory.Span, typeof(System.ReadOnlyMemory<char>));
public static RefStructOutput HandleRefStructOutput(string text) => new(text);
public abstract class SpanOutputBase(int originalLength, System.Type originalType)
: System.Collections.IEnumerable
{
public readonly int OriginalLength = originalLength;
public readonly System.Type OriginalType = originalType;
//Necessary for correct output formatting.