DotNext by .NET Foundation and Contributors

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

 BufferHelpers

public static class BufferHelpers
public static string BuildString(this ArrayBufferWriter<char> writer)

public static void Concat(this ref BufferWriterSlim writer, ReadOnlySpan<string> values)

public static ReadOnlySequence<T> Concat<T>(this ReadOnlyMemory<T> first, ReadOnlyMemory<T> second)

public static void Concat(this IBufferWriter<char> writer, ReadOnlySpan<string> values)

public static void CopyTo<T>(this ref ReadOnlySequence source, Span<T> destination, out int writtenCount)

public static ref T GetReference<T>(ref MemoryOwner owner)

public static double ReadDouble(this ref SpanReader reader, bool isLittleEndian)

public static Half ReadHalf(this ref SpanReader reader, bool isLittleEndian)

public static short ReadInt16(this ref SpanReader reader, bool isLittleEndian)

public static int ReadInt32(this ref SpanReader reader, bool isLittleEndian)

public static long ReadInt64(this ref SpanReader reader, bool isLittleEndian)

public static float ReadSingle(this ref SpanReader reader, bool isLittleEndian)

public static ushort ReadUInt16(this ref SpanReader reader, bool isLittleEndian)

public static uint ReadUInt32(this ref SpanReader reader, bool isLittleEndian)

public static ulong ReadUInt64(this ref SpanReader reader, bool isLittleEndian)

public static void ReleaseAll<T>(this ref MemoryOwner owner) where T : IDisposable

public static void Resize<T>(this ref MemoryOwner owner, int newLength, bool exactSize = true, MemoryAllocator<T> allocator = null)

public static ReadOnlySequence<T> ToReadOnlySequence<T>(this IEnumerable<ReadOnlyMemory<T>> chunks)

public static ReadOnlySequence<char> ToReadOnlySequence(this IEnumerable<string> strings)

public static ReadOnlyMemory<T> TrimLength<T>(this ReadOnlyMemory<T> memory, int maxLength)

public static Memory<T> TrimLength<T>(this Memory<T> memory, int maxLength)

public static bool TryRead<T>(this ref SpanReader reader, out T result) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

public static bool TryWrite<T>(this ref SpanWriter writer, ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

public static void Write(this ref BufferWriterSlim writer, StringBuilder input)

public static void Write<T>(this IBufferWriter<T> writer, T value)

public static void Write<T>(this IBufferWriter<T> writer, ref ReadOnlySequence value)

public static void Write(this IBufferWriter<char> writer, StringBuilder input)

public static void Write<T>(this ref SpanWriter writer, ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

public static void Write(this ref SpanWriter writer, StringBuilder input)

public static void Write<T>(this ref SpanWriter writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable

public static int WriteAsString<T>(this ref BufferWriterSlim writer, T value, string format = null, IFormatProvider provider = null)

public static int WriteAsString<T>(this IBufferWriter<char> writer, T value, string format = null, IFormatProvider provider = null)

public static void WriteDouble(this ref BufferWriterSlim builder, double value, bool isLittleEndian)

public static void WriteDouble(this ref SpanWriter writer, double value, bool isLittleEndian)

public static int WriteFormattable<T>(this ref BufferWriterSlim writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable

public static void WriteFormattable<T>(this ref BufferWriterSlim writer, T value) where T : IBinaryFormattable<T>

public static void WriteFormattable<T>(this ref BufferWriterSlim writer, ReadOnlySpan<T> values) where T : IBinaryFormattable<T>

public static int WriteFormattable<T>(this IBufferWriter<char> writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable

public static void WriteFormattable<T>(this IBufferWriter<byte> writer, T value) where T : IBinaryFormattable<T>

public static void WriteFormattable<T>(this IBufferWriter<byte> writer, ReadOnlySpan<T> values) where T : IBinaryFormattable<T>

public static void WriteHalf(this ref BufferWriterSlim builder, Half value, bool isLittleEndian)

public static void WriteHalf(this ref SpanWriter writer, Half value, bool isLittleEndian)

public static void WriteInt16(this ref BufferWriterSlim builder, short value, bool isLittleEndian)

public static void WriteInt16(this ref SpanWriter writer, short value, bool isLittleEndian)

public static void WriteInt32(this ref BufferWriterSlim builder, int value, bool isLittleEndian)

public static void WriteInt32(this ref SpanWriter writer, int value, bool isLittleEndian)

public static void WriteInt64(this ref BufferWriterSlim builder, long value, bool isLittleEndian)

public static void WriteInt64(this ref SpanWriter writer, long value, bool isLittleEndian)

public static void WriteLine(this ref BufferWriterSlim writer)

public static void WriteLine(this ref BufferWriterSlim writer, ReadOnlySpan<char> characters)

public static void WriteLine(this IBufferWriter<char> writer)

public static void WriteLine(this IBufferWriter<char> writer, ReadOnlySpan<char> characters)

public static void WriteSingle(this ref BufferWriterSlim builder, float value, bool isLittleEndian)

public static void WriteSingle(this ref SpanWriter writer, float value, bool isLittleEndian)

public static int WriteString(this ref BufferWriterSlim writer, IFormatProvider provider, ref BufferWriterSlimInterpolatedStringHandler handler)

public static int WriteString(this ref BufferWriterSlim writer, ref BufferWriterSlimInterpolatedStringHandler handler)

public static int WriteString(this IBufferWriter<char> writer, IFormatProvider provider, ref BufferWriterInterpolatedStringHandler handler)

public static int WriteString(this IBufferWriter<char> writer, ref BufferWriterInterpolatedStringHandler handler)

public static void WriteUInt16(this ref BufferWriterSlim builder, ushort value, bool isLittleEndian)

public static void WriteUInt16(this ref SpanWriter writer, ushort value, bool isLittleEndian)

public static void WriteUInt32(this ref BufferWriterSlim builder, uint value, bool isLittleEndian)

public static void WriteUInt32(this ref SpanWriter writer, uint value, bool isLittleEndian)

public static void WriteUInt64(this ref BufferWriterSlim builder, ulong value, bool isLittleEndian)

public static void WriteUInt64(this ref SpanWriter writer, ulong value, bool isLittleEndian)