API Diff between 3.2.1 and 5.16.0
412 Additions
121 Removals
DotNext.Buffers
-
public static class BufferWriter
- public static long Encode(this IBufferWriter<byte> writer, ReadOnlySpan<char> chars, ref EncodingContext context, LengthFormat? lengthFormat = default)
- public static int Encode(this ref SpanWriter writer, ReadOnlySpan<char> chars, ref EncodingContext context, LengthFormat? lengthFormat = default)
- public static int Encode(this ref BufferWriterSlim writer, ReadOnlySpan<char> chars, ref EncodingContext context, LengthFormat? lengthFormat = default)
- public static long Format<T>(this IBufferWriter<byte> writer, T value, ref EncodingContext context, LengthFormat? lengthFormat, ReadOnlySpan<char> format = default, IFormatProvider provider = null, MemoryAllocator<char> allocator = null) where T : ISpanFormattable
- public static int Format<T>(this IBufferWriter<byte> writer, T value, LengthFormat? lengthFormat, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : IUtf8SpanFormattable
- public static int Interpolate(this IBufferWriter<byte> writer, ref EncodingContext context, Span<char> buffer, IFormatProvider provider, ref EncodingInterpolatedStringHandler handler)
- public static int Interpolate(this IBufferWriter<byte> writer, ref EncodingContext context, Span<char> buffer, ref EncodingInterpolatedStringHandler handler)
- public static void Write<T>(this IBufferWriter<T> writer, ref ReadOnlySequence value)
- public static int Write(this ref SpanWriter writer, ReadOnlySpan<byte> value, LengthFormat lengthFormat)
- public static int Write(this ref BufferWriterSlim writer, ReadOnlySpan<byte> value, LengthFormat lengthFormat)
- public static void Write<T>(this IBufferWriter<byte> writer, ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static void WriteBigInteger(this IBufferWriter<byte> writer, ref BigInteger value, bool littleEndian, LengthFormat? lengthFormat = default)
- public static void WriteBigInteger(this IBufferWriter<byte> writer, ref BigInteger value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteByte(this IBufferWriter<byte> writer, byte value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteByte(this IBufferWriter<char> writer, byte value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteByte(this ref BufferWriterSlim writer, byte value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDateTime(this IBufferWriter<byte> writer, DateTime value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteDateTime(this IBufferWriter<char> writer, DateTime value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDateTime(this ref BufferWriterSlim writer, DateTime value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDateTimeOffset(this IBufferWriter<byte> writer, DateTimeOffset value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteDateTimeOffset(this IBufferWriter<char> writer, DateTimeOffset value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDateTimeOffset(this ref BufferWriterSlim writer, DateTimeOffset value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDecimal(this IBufferWriter<byte> writer, ref decimal value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteDecimal(this IBufferWriter<char> writer, ref decimal value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDecimal(this ref BufferWriterSlim writer, ref decimal value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDouble(this IBufferWriter<byte> writer, double value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteDouble(this IBufferWriter<char> writer, double value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteDouble(this ref BufferWriterSlim writer, double value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteGuid(this IBufferWriter<byte> writer, ref Guid value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, int bufferSize = 0)
- public static void WriteGuid(this IBufferWriter<char> writer, ref Guid value, ReadOnlySpan<char> format = default)
- public static void WriteGuid(this ref BufferWriterSlim writer, ref Guid value, ReadOnlySpan<char> format = default)
- public static void WriteInt16(this IBufferWriter<byte> writer, short value, bool littleEndian)
- public static void WriteInt16(this IBufferWriter<byte> writer, short value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteInt16(this IBufferWriter<char> writer, short value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteInt16(this ref BufferWriterSlim writer, short value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteInt32(this IBufferWriter<byte> writer, int value, bool littleEndian)
- public static void WriteInt32(this IBufferWriter<byte> writer, int value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteInt32(this IBufferWriter<char> writer, int value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteInt32(this ref BufferWriterSlim writer, int value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteInt64(this IBufferWriter<byte> writer, long value, bool littleEndian)
- public static void WriteInt64(this IBufferWriter<byte> writer, long value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteInt64(this IBufferWriter<char> writer, long value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteInt64(this ref BufferWriterSlim writer, long value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteLine(this IBufferWriter<char> writer)
- public static void WriteLine(this IBufferWriter<char> writer, ReadOnlySpan<char> characters)
- public static void WriteLine(this ref BufferWriterSlim writer)
- public static void WriteLine(this ref BufferWriterSlim writer, ReadOnlySpan<char> characters)
- public static void WriteSByte(this IBufferWriter<byte> writer, sbyte value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteSByte(this IBufferWriter<char> writer, sbyte value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteSByte(this ref BufferWriterSlim writer, sbyte value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteSingle(this IBufferWriter<byte> writer, float value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteSingle(this IBufferWriter<char> writer, float value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteSingle(this ref BufferWriterSlim writer, float value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteString(this IBufferWriter<byte> writer, ReadOnlySpan<char> value, ref EncodingContext context, int bufferSize = 0, LengthFormat? lengthFormat = default)
- public static void WriteTimeSpan(this IBufferWriter<byte> writer, TimeSpan value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteTimeSpan(this IBufferWriter<char> writer, TimeSpan value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteTimeSpan(this ref BufferWriterSlim writer, TimeSpan value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt16(this IBufferWriter<byte> writer, ushort value, bool littleEndian)
- public static void WriteUInt16(this IBufferWriter<byte> writer, ushort value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteUInt16(this IBufferWriter<char> writer, ushort value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt16(this ref BufferWriterSlim writer, ushort value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt32(this IBufferWriter<byte> writer, uint value, bool littleEndian)
- public static void WriteUInt32(this IBufferWriter<byte> writer, uint value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteUInt32(this IBufferWriter<char> writer, uint value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt32(this ref BufferWriterSlim writer, uint value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt64(this IBufferWriter<byte> writer, ulong value, bool littleEndian)
- public static void WriteUInt64(this IBufferWriter<byte> writer, ulong value, LengthFormat lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null, int bufferSize = 0)
- public static void WriteUInt64(this IBufferWriter<char> writer, ulong value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static void WriteUInt64(this ref BufferWriterSlim writer, ulong value, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
-
public struct EncodingInterpolatedStringHandler
-
public interface IBufferReader : IReadOnlySpanConsumer<byte>, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<byte>, CancellationToken, ValueTask>>
-
public sealed delegate ReadOnlySpanFunc<T, TArg, TResult> : MulticastDelegate
DotNext.IO
-
public class BlittableTransferObject<T> : MemoryManager<byte>, ISerializable<BlittableTransferObject<T>>, IDataTransferObject, IBinaryFormattable<BlittableTransferObject<T>> where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
-
public class BinaryTransferObject : IDataTransferObject, ISupplier<ReadOnlySequence<byte>>
-
public class BinaryTransferObject<T> : IDataTransferObject, ISupplier<T> where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
-
public static class DataTransferObject
-
public sealed class FileBufferingWriter : Stream, IBufferWriter<byte>, IGrowableBuffer<byte>, IReadOnlySpanConsumer<byte>, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IDisposable, IFlushable
-
public class FileReader : Disposable, IAsyncBinaryReader, IResettable, IAsyncEnumerable<ReadOnlyMemory<byte>>, IDynamicInterfaceCastable
-
public class FileWriter : Disposable, IAsyncBinaryWriter, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<byte>, CancellationToken, ValueTask>>, IBufferWriter<byte>, IFlushable, IDynamicInterfaceCastable
-
public interface IAsyncBinaryReader
- SequenceReader Create(ReadOnlySequence<byte> sequence)
- SequenceReader Create(ReadOnlyMemory<byte> memory)
- SequenceBinaryReader Create(ReadOnlySequence<byte> sequence)
- SequenceBinaryReader Create(ReadOnlyMemory<byte> memory)
- ValueTask CopyToAsync(Stream destination, long? count = default, CancellationToken token = default)
- ValueTask CopyToAsync(PipeWriter destination, long? count = default, CancellationToken token = default)
- ValueTask CopyToAsync(IBufferWriter<byte> destination, long? count = default, CancellationToken token = default)
- ValueTask CopyToAsync<TConsumer>(TConsumer consumer, long? count = default, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- ValueTask<MemoryOwner<char>> DecodeAsync(DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- IAsyncEnumerable<ReadOnlyMemory<char>> DecodeAsync(DecodingContext context, LengthFormat lengthFormat, Memory<char> buffer, CancellationToken token = default)
- ValueTask<TResult> ParseAsync<TArg, TResult>(TArg arg, ReadOnlySpanFunc<char, TArg, TResult> parser, DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- ValueTask<T> ParseAsync<T>(LengthFormat lengthFormat, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanParsable<T>
- ValueTask<T> ParseAsync<T>(LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null, CancellationToken token = default) where T : INumberBase<T>
- ValueTask<T> ParseAsync<T>(DecodingContext context, LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null, MemoryAllocator<char> allocator = null, CancellationToken token = default) where T : INumberBase<T>
- Task CopyToAsync(Stream output, CancellationToken token = default)
- Task CopyToAsync(PipeWriter output, CancellationToken token = default)
- Task CopyToAsync(IBufferWriter<byte> writer, CancellationToken token = default)
- Task CopyToAsync<TArg>(ReadOnlySpanAction<byte, TArg> consumer, TArg arg, CancellationToken token = default)
- Task CopyToAsync<TArg>(Func<TArg, ReadOnlyMemory<byte>, CancellationToken, ValueTask> consumer, TArg arg, CancellationToken token = default)
- Task CopyToAsync<TConsumer>(TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- ValueTask<TReader> ReadAsync<TReader>(TReader reader, CancellationToken token = default) where TReader : struct, IBufferReader
- ValueTask<T> ReadBigEndianAsync<T>(CancellationToken token = default) where T : IBinaryInteger<T>
- ValueTask<T> ReadLittleEndianAsync<T>(CancellationToken token = default) where T : IBinaryInteger<T>
- ValueTask SkipAsync(long length, CancellationToken token = default)
- bool TryGetRemainingBytesCount(out long count)
- bool TryGetSequence(out ReadOnlySequence bytes)
- ValueTask<BigInteger> ReadBigIntegerAsync(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<BigInteger> ReadBigIntegerAsync(int length, bool littleEndian, CancellationToken token = default)
- ValueTask<BigInteger> ReadBigIntegerAsync(LengthFormat lengthFormat, bool littleEndian, CancellationToken token = default)
- ValueTask<byte> ReadByteAsync(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<DateTime> ReadDateTimeAsync(LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<DateTime> ReadDateTimeAsync(LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<decimal> ReadDecimalAsync(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 111, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<double> ReadDoubleAsync(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<Guid> ReadGuidAsync(LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- ValueTask<Guid> ReadGuidAsync(LengthFormat lengthFormat, DecodingContext context, string format, CancellationToken token = default)
- ValueTask<short> ReadInt16Async(bool littleEndian, CancellationToken token = default)
- ValueTask<short> ReadInt16Async(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<int> ReadInt32Async(bool littleEndian, CancellationToken token = default)
- ValueTask<int> ReadInt32Async(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<long> ReadInt64Async(bool littleEndian, CancellationToken token = default)
- ValueTask<long> ReadInt64Async(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<float> ReadSingleAsync(LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<string> ReadStringAsync(int length, DecodingContext context, CancellationToken token = default)
- ValueTask<string> ReadStringAsync(LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- ValueTask<TimeSpan> ReadTimeSpanAsync(LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<TimeSpan> ReadTimeSpanAsync(LengthFormat lengthFormat, DecodingContext context, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask SkipAsync(int length, CancellationToken token = default)
- bool TryGetSpan(out ReadOnlySpan bytes)
-
public interface IAsyncBinaryWriter : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- Memory<byte> Buffer { get; }
- IAsyncBinaryWriter Create(PipeWriter output, long bufferSize = 0)
- IAsyncBinaryWriter Create(PipeWriter output)
- IAsyncBinaryWriter Create(PipeWriter output, int stringLengthThreshold, int encodingBufferSize)
- ValueTask AdvanceAsync(int bytesWritten, CancellationToken token = default)
- ValueTask CopyFromAsync(Stream source, long? count = default, CancellationToken token = default)
- ValueTask CopyFromAsync(PipeReader source, long? count = default, CancellationToken token = default)
- ValueTask<long> EncodeAsync(ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat = default, CancellationToken token = default)
- ValueTask<long> FormatAsync<T>(T value, EncodingContext context, LengthFormat? lengthFormat = default, string format = null, IFormatProvider provider = null, MemoryAllocator<char> allocator = null, CancellationToken token = default) where T : ISpanFormattable
- ValueTask<int> FormatAsync<T>(T value, LengthFormat? lengthFormat, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanFormattable
- Task CopyFromAsync(Stream input, CancellationToken token = default)
- Task CopyFromAsync(PipeReader input, CancellationToken token = default)
- Task CopyFromAsync<TArg>(Func<TArg, CancellationToken, ValueTask<ReadOnlyMemory<byte>>> supplier, TArg arg, CancellationToken token = default)
- ValueTask WriteBigEndianAsync<T>(T value, CancellationToken token = default) where T : IBinaryInteger<T>
- ValueTask WriteLittleEndianAsync<T>(T value, CancellationToken token = default) where T : IBinaryInteger<T>
- ValueTask WriteAsync<TArg>(Action<TArg, IBufferWriter<byte>> writer, TArg arg, CancellationToken token = default)
- ValueTask WriteAsync(ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat, CancellationToken token = default)
- Task WriteAsync(ReadOnlySequence<byte> input, CancellationToken token = default)
- ValueTask WriteBigIntegerAsync(BigInteger value, bool littleEndian, LengthFormat? lengthFormat = default, CancellationToken token = default)
- ValueTask WriteBigIntegerAsync(BigInteger value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteByteAsync(byte value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteDateTimeAsync(DateTime value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteDateTimeOffsetAsync(DateTimeOffset value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteDecimalAsync(decimal value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteDoubleAsync(double value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteGuidAsync(Guid value, LengthFormat lengthFormat, EncodingContext context, string format = null, CancellationToken token = default)
- ValueTask WriteInt16Async(short value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteInt16Async(short value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteInt32Async(int value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteInt32Async(int value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteInt64Async(long value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteInt64Async(long value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteSingleAsync(float value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask WriteTimeSpanAsync(TimeSpan value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
-
public enum LengthFormat
-
public abstract class RandomAccessStream : Stream, IFlushable, IValueTaskSource, IValueTaskSource<int>
-
public struct SequenceReader : IAsyncBinaryReader, IResettable
-
public struct SequenceBinaryReader : IAsyncBinaryReader
- public ReadOnlySequence<byte> RemainingSequence { get; }
- public T Read<T>() where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public void Read(Memory<byte> output)
- public MemoryOwner<byte> Read(LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null)
- public BigInteger ReadBigInteger(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public BigInteger ReadBigInteger(int length, bool littleEndian)
- public BigInteger ReadBigInteger(LengthFormat lengthFormat, bool littleEndian)
- public byte ReadByte(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public DateTime ReadDateTime(LengthFormat lengthFormat, ref DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null)
- public DateTime ReadDateTime(LengthFormat lengthFormat, ref DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null)
- public DateTimeOffset ReadDateTimeOffset(LengthFormat lengthFormat, ref DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null)
- public DateTimeOffset ReadDateTimeOffset(LengthFormat lengthFormat, ref DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null)
- public decimal ReadDecimal(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 111, IFormatProvider provider = null)
- public double ReadDouble(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null)
- public Guid ReadGuid(LengthFormat lengthFormat, ref DecodingContext context)
- public Guid ReadGuid(LengthFormat lengthFormat, ref DecodingContext context, string format)
- public short ReadInt16(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public short ReadInt16(bool littleEndian)
- public int ReadInt32(bool littleEndian)
- public int ReadInt32(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public long ReadInt64(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public long ReadInt64(bool littleEndian)
- public sbyte ReadSByte(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public float ReadSingle(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null)
- public string ReadString(int length, ref DecodingContext context)
- public string ReadString(LengthFormat lengthFormat, ref DecodingContext context)
- public TimeSpan ReadTimeSpan(LengthFormat lengthFormat, ref DecodingContext context, IFormatProvider provider = null)
- public TimeSpan ReadTimeSpan(LengthFormat lengthFormat, ref DecodingContext context, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null)
- public ushort ReadUInt16(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public ushort ReadUInt16(bool littleEndian)
- public uint ReadUInt32(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public uint ReadUInt32(bool littleEndian)
- public ulong ReadUInt64(LengthFormat lengthFormat, ref DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null)
- public ulong ReadUInt64(bool littleEndian)
- public void Reset()
- public void Skip(int length)
-
public static class StreamExtensions
- public static Stream AsUnbufferedStream(this SafeFileHandle handle, FileAccess access)
- public static Stream Combine(this Stream stream, ReadOnlySpan<Stream> others)
- public static ValueTask CopyToAsync<TConsumer>(this Stream source, TConsumer consumer, Memory<byte> buffer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static ValueTask CopyToAsync<TConsumer>(this Stream source, TConsumer consumer, long count, Memory<byte> buffer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static ValueTask CopyToAsync(this Stream source, Stream destination, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask CopyToAsync(this Stream source, Stream destination, long count, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask CopyToAsync(this Stream source, IBufferWriter<byte> destination, int bufferSize = 0, CancellationToken token = default)
- public static ValueTask CopyToAsync(this Stream source, IBufferWriter<byte> destination, long count, int bufferSize = 0, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> DecodeAsync(this Stream stream, DecodingContext context, LengthFormat lengthFormat, Memory<byte> buffer, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static IAsyncEnumerable<ReadOnlyMemory<char>> DecodeAsync(this Stream stream, DecodingContext context, LengthFormat lengthFormat, Memory<char> charBuffer, Memory<byte> byteBuffer, CancellationToken token = default)
- public static ValueTask<long> EncodeAsync(this Stream stream, ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<long> FormatAsync<T>(this Stream stream, T value, EncodingContext context, LengthFormat? lengthFormat, Memory<byte> buffer, string format = null, IFormatProvider provider = null, MemoryAllocator<char> allocator = null, CancellationToken token = default) where T : ISpanFormattable
- public static ValueTask<int> FormatAsync<T>(this Stream stream, T value, LengthFormat? lengthFormat, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanFormattable
- public static ValueTask<TResult> ParseAsync<TArg, TResult>(this Stream stream, TArg arg, ReadOnlySpanFunc<char, TArg, TResult> parser, DecodingContext context, LengthFormat lengthFormat, Memory<byte> buffer, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static ValueTask<T> ParseAsync<T>(this Stream stream, LengthFormat lengthFormat, Memory<byte> buffer, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanParsable<T>
- public static ValueTask<T> ParseAsync<T>(this Stream stream, LengthFormat lengthFormat, Memory<byte> buffer, NumberStyles style, IFormatProvider provider = null, CancellationToken token = default) where T : INumberBase<T>
- public static IAsyncEnumerable<ReadOnlyMemory<byte>> ReadAllAsync(this Stream stream, int bufferSize, MemoryAllocator<byte> allocator = null, CancellationToken token = default)
- public static void CopyTo<TConsumer>(this Stream source, TConsumer consumer, Span<byte> buffer, CancellationToken token = default) where TConsumer : IReadOnlySpanConsumer<byte>
- public static void CopyTo(this Stream source, Stream destination, Span<byte> buffer, CancellationToken token = default)
- public static void CopyTo<TArg>(this Stream stream, ReadOnlySpanAction<byte, TArg> reader, TArg arg, Span<byte> buffer, CancellationToken token = default)
- public static void CopyTo<TArg>(this Stream stream, ReadOnlySpanAction<byte, TArg> reader, TArg arg, int bufferSize = 256, CancellationToken token = default)
- public static void CopyTo(this Stream source, IBufferWriter<byte> destination, int bufferSize = 0, CancellationToken token = default)
- public static Task CopyToAsync<TConsumer>(this Stream source, TConsumer consumer, Memory<byte> buffer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static Task CopyToAsync(this Stream source, Stream destination, Memory<byte> buffer, CancellationToken token = default)
- public static Task CopyToAsync<TArg>(this Stream stream, ReadOnlySpanAction<byte, TArg> reader, TArg arg, Memory<byte> buffer, CancellationToken token = default)
- public static Task CopyToAsync<TArg>(this Stream stream, ReadOnlySpanAction<byte, TArg> reader, TArg arg, int bufferSize = 256, CancellationToken token = default)
- public static Task CopyToAsync<TArg>(this Stream stream, Func<TArg, ReadOnlyMemory<byte>, CancellationToken, ValueTask> reader, TArg arg, Memory<byte> buffer, CancellationToken token = default)
- public static Task CopyToAsync<TArg>(this Stream stream, Func<TArg, ReadOnlyMemory<byte>, CancellationToken, ValueTask> reader, TArg arg, int bufferSize = 256, CancellationToken token = default)
- public static Task CopyToAsync(this Stream source, IBufferWriter<byte> destination, int bufferSize = 0, CancellationToken token = default)
- public static T Read<T>(this Stream stream) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static ValueTask<T> ReadBigEndianAsync<T>(this Stream stream, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryInteger<T>
- public static ValueTask<MemoryOwner<byte>> ReadBlockAsync(this Stream stream, LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null, CancellationToken token = default)
- public static ValueTask<T> ReadLittleEndianAsync<T>(this Stream stream, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryInteger<T>
- public static int ReadUtf8(this Stream stream, Span<byte> buffer, IBufferWriter<char> output)
- public static int ReadUtf8<TArg>(this Stream stream, Span<byte> bytesBuf, Span<char> charsBuf, ReadOnlySpanAction<char, TArg> action, TArg arg)
- public static ValueTask<int> ReadUtf8Async(this Stream stream, Memory<byte> buffer, IBufferWriter<char> output, CancellationToken token = default)
- public static ValueTask<int> ReadUtf8Async<TArg>(this Stream stream, Memory<byte> bytesBuf, Memory<char> charsBuf, Func<ReadOnlyMemory<char>, TArg, CancellationToken, ValueTask> action, TArg arg, CancellationToken token = default)
- public static ValueTask WriteAsync<T>(this Stream stream, T value, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryFormattable<T>
- public static ValueTask WriteAsync(this Stream stream, ReadOnlyMemory<byte> value, LengthFormat lengthFormat, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<T> ReadAsync<T>(this Stream stream, CancellationToken token = default) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static BigInteger ReadBigInteger(this Stream stream, int length, bool littleEndian, Span<byte> buffer)
- public static BigInteger ReadBigInteger(this Stream stream, int length, bool littleEndian)
- public static BigInteger ReadBigInteger(this Stream stream, LengthFormat lengthFormat, bool littleEndian, Span<byte> buffer)
- public static BigInteger ReadBigInteger(this Stream stream, LengthFormat lengthFormat, bool littleEndian)
- public static BigInteger ReadBigInteger(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, int length, bool littleEndian, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, int length, bool littleEndian, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, LengthFormat lengthFormat, bool littleEndian, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, LengthFormat lengthFormat, bool littleEndian, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static void ReadBlock(this Stream stream, Span<byte> output)
- public static MemoryOwner<byte> ReadBlock(this Stream stream, LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null)
- public static ValueTask ReadBlockAsync(this Stream stream, Memory<byte> output, CancellationToken token = default)
- public static ValueTask<MemoryOwner<byte>> ReadBlockAsync(this Stream stream, LengthFormat lengthFormat, Memory<byte> buffer, MemoryAllocator<byte> allocator = null, CancellationToken token = default)
- public static byte ReadByte(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<byte> ReadByteAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<byte> ReadByteAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static DateTime ReadDateTime(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null)
- public static DateTime ReadDateTime(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null)
- public static ValueTask<DateTime> ReadDateTimeAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTime> ReadDateTimeAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string[] formats, Memory<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTime> ReadDateTimeAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTime> ReadDateTimeAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static DateTimeOffset ReadDateTimeOffset(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null)
- public static DateTimeOffset ReadDateTimeOffset(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string[] formats, Memory<byte> buffer, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static decimal ReadDecimal(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 111, IFormatProvider provider = null)
- public static ValueTask<decimal> ReadDecimalAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 111, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<decimal> ReadDecimalAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 111, IFormatProvider provider = null, CancellationToken token = default)
- public static double ReadDouble(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 231, IFormatProvider provider = null)
- public static ValueTask<double> ReadDoubleAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<double> ReadDoubleAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static Guid ReadGuid(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer)
- public static Guid ReadGuid(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, string format)
- public static ValueTask<Guid> ReadGuidAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<Guid> ReadGuidAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, string format, CancellationToken token = default)
- public static ValueTask<Guid> ReadGuidAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- public static ValueTask<Guid> ReadGuidAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string format, CancellationToken token = default)
- public static short ReadInt16(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<short> ReadInt16Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<short> ReadInt16Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static int ReadInt32(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<int> ReadInt32Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<int> ReadInt32Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static long ReadInt64(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<long> ReadInt64Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<long> ReadInt64Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static sbyte ReadSByte(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<sbyte> ReadSByteAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<sbyte> ReadSByteAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static float ReadSingle(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 231, IFormatProvider provider = null)
- public static ValueTask<float> ReadSingleAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<float> ReadSingleAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static string ReadString(this Stream stream, int length, ref DecodingContext context, Span<byte> buffer)
- public static string ReadString(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer)
- public static string ReadString(this Stream stream, int length, Encoding encoding)
- public static string ReadString(this Stream stream, LengthFormat lengthFormat, Encoding encoding)
- public static ValueTask<string> ReadStringAsync(this Stream stream, int length, DecodingContext context, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, int length, Encoding encoding, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, Encoding encoding, CancellationToken token = default)
- public static TimeSpan ReadTimeSpan(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, IFormatProvider provider = null)
- public static TimeSpan ReadTimeSpan(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ushort ReadUInt16(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<ushort> ReadUInt16Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<ushort> ReadUInt16Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static uint ReadUInt32(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<uint> ReadUInt32Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<uint> ReadUInt32Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ulong ReadUInt64(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null)
- public static ValueTask<ulong> ReadUInt64Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<ulong> ReadUInt64Async(this Stream stream, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static void Write(this Stream stream, ref ReadOnlySequence sequence, CancellationToken token = default)
- public static void Write<T>(this Stream stream, ref T value) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static ValueTask WriteBigEndianAsync<T>(this Stream stream, T value, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryInteger<T>
- public static ValueTask WriteLittleEndianAsync<T>(this Stream stream, T value, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryInteger<T>
- public static ValueTask WriteAsync<T>(this Stream stream, T value, Memory<byte> buffer, CancellationToken token = default) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static ValueTask WriteAsync<T>(this Stream stream, T value, CancellationToken token = default) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static Task<long> WriteAsync<TArg>(this Stream stream, Func<TArg, CancellationToken, ValueTask<ReadOnlyMemory<byte>>> supplier, TArg arg, CancellationToken token = default)
- public static void WriteBigInteger(this Stream stream, ref BigInteger value, bool littleEndian, LengthFormat? lengthFormat = default)
- public static void WriteBigInteger(this Stream stream, ref BigInteger value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteBigIntegerAsync(this Stream stream, BigInteger value, bool littleEndian, Memory<byte> buffer, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public static ValueTask WriteBigIntegerAsync(this Stream stream, BigInteger value, bool littleEndian, MemoryAllocator<byte> allocator = null, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public static ValueTask WriteBigIntegerAsync(this Stream stream, BigInteger value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteBigIntegerAsync(this Stream stream, BigInteger value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteBlock(this Stream stream, ReadOnlySpan<byte> value, LengthFormat lengthFormat)
- public static ValueTask WriteBlockAsync(this Stream stream, ReadOnlyMemory<byte> value, LengthFormat lengthFormat, Memory<byte> buffer, CancellationToken token = default)
- public static void WriteByte(this Stream stream, byte value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteByteAsync(this Stream stream, byte value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteByteAsync(this Stream stream, byte value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteDateTime(this Stream stream, DateTime value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteDateTimeAsync(this Stream stream, DateTime value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteDateTimeAsync(this Stream stream, DateTime value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteDateTimeOffset(this Stream stream, DateTimeOffset value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteDateTimeOffsetAsync(this Stream stream, DateTimeOffset value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteDateTimeOffsetAsync(this Stream stream, DateTimeOffset value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteDecimal(this Stream stream, ref decimal value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteDecimalAsync(this Stream stream, decimal value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteDecimalAsync(this Stream stream, decimal value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteDouble(this Stream stream, double value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteDoubleAsync(this Stream stream, double value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteDoubleAsync(this Stream stream, double value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteGuid(this Stream stream, ref Guid value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default)
- public static ValueTask WriteGuidAsync(this Stream stream, Guid value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, CancellationToken token = default)
- public static ValueTask WriteGuidAsync(this Stream stream, Guid value, LengthFormat lengthFormat, EncodingContext context, string format = null, CancellationToken token = default)
- public static void WriteInt16(this Stream stream, short value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteInt16Async(this Stream stream, short value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteInt16Async(this Stream stream, short value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteInt32(this Stream stream, int value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteInt32Async(this Stream stream, int value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteInt32Async(this Stream stream, int value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteInt64(this Stream stream, long value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteInt64Async(this Stream stream, long value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteInt64Async(this Stream stream, long value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteSByte(this Stream stream, sbyte value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteSByteAsync(this Stream stream, sbyte value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteSByteAsync(this Stream stream, sbyte value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteSingle(this Stream stream, float value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteSingleAsync(this Stream stream, float value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteSingleAsync(this Stream stream, float value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteString(this Stream stream, ReadOnlySpan<char> value, ref EncodingContext context, Span<byte> buffer, LengthFormat? lengthFormat = default)
- public static void WriteString(this Stream stream, ReadOnlySpan<char> value, Encoding encoding, LengthFormat? lengthFormat = default)
- public static ValueTask WriteStringAsync(this Stream stream, ReadOnlyMemory<char> value, EncodingContext context, Memory<byte> buffer, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public static ValueTask WriteStringAsync(this Stream stream, ReadOnlyMemory<char> value, Encoding encoding, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public static void WriteTimeSpan(this Stream stream, TimeSpan value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteTimeSpanAsync(this Stream stream, TimeSpan value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteTimeSpanAsync(this Stream stream, TimeSpan value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteUInt16(this Stream stream, ushort value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteUInt16Async(this Stream stream, ushort value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteUInt16Async(this Stream stream, ushort value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteUInt32(this Stream stream, uint value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteUInt32Async(this Stream stream, uint value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteUInt32Async(this Stream stream, uint value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static void WriteUInt64(this Stream stream, ulong value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
- public static ValueTask WriteUInt64Async(this Stream stream, ulong value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteUInt64Async(this Stream stream, ulong value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
-
public static class TextStreamExtensions
- public static IAsyncEnumerable<ReadOnlyMemory<char>> ReadAllAsync(this TextReader reader, int bufferSize, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static void Write(this TextWriter writer, MemoryAllocator<char> allocator, IFormatProvider provider, ref PoolingInterpolatedStringHandler handler)
- public static void Write(this TextWriter writer, MemoryAllocator<char> allocator, ref PoolingInterpolatedStringHandler handler)
- public static ValueTask WriteAsync(this TextWriter writer, MemoryAllocator<char> allocator, IFormatProvider provider, ref PoolingInterpolatedStringHandler handler, CancellationToken token = default)
- public static ValueTask WriteAsync(this TextWriter writer, MemoryAllocator<char> allocator, ref PoolingInterpolatedStringHandler handler, CancellationToken token = default)
- public static void WriteLine(this TextWriter writer, MemoryAllocator<char> allocator, IFormatProvider provider, ref PoolingInterpolatedStringHandler handler)
- public static void WriteLine(this TextWriter writer, MemoryAllocator<char> allocator, ref PoolingInterpolatedStringHandler handler)
- public static ValueTask WriteLineAsync(this TextWriter writer, MemoryAllocator<char> allocator, IFormatProvider provider, ref PoolingInterpolatedStringHandler handler, CancellationToken token = default)
- public static ValueTask WriteLineAsync(this TextWriter writer, MemoryAllocator<char> allocator, ref PoolingInterpolatedStringHandler handler, CancellationToken token = default)
DotNext.IO.Log
-
public interface IAuditTrail
- long LastCommittedEntryIndex { get; }
- long LastEntryIndex { get; }
- long GetLastIndex(bool committed)
- ValueTask<TResult> ReadAsync<TResult>(ILogEntryConsumer<ILogEntry, TResult> reader, long startIndex, long endIndex, CancellationToken token = default)
- ValueTask<TResult> ReadAsync<TResult>(ILogEntryConsumer<ILogEntry, TResult> reader, long startIndex, CancellationToken token = default)
- ValueTask WaitForCommitAsync(long index, CancellationToken token = default)
- ValueTask WaitForCommitAsync(CancellationToken token = default)
- ValueTask<TResult> ReadAsync<TResult>(Func<IReadOnlyList<ILogEntry>, long?, CancellationToken, ValueTask<TResult>> reader, long startIndex, long endIndex, CancellationToken token = default)
- ValueTask<TResult> ReadAsync<TResult>(Func<IReadOnlyList<ILogEntry>, long?, CancellationToken, ValueTask<TResult>> reader, long startIndex, CancellationToken token = default)
- Task<bool> WaitForCommitAsync(long index, TimeSpan timeout, CancellationToken token = default)
- Task<bool> WaitForCommitAsync(TimeSpan timeout, CancellationToken token)
-
public interface IAuditTrail<TEntry> : IAuditTrail where TEntry : ILogEntry
- ValueTask<long> AppendAndCommitAsync<TEntryImpl>(ILogEntryProducer<TEntryImpl> entries, long startIndex, bool skipCommitted, long commitIndex, CancellationToken token = default) where TEntryImpl : TEntry
- ValueTask<TResult> ReadAsync<TResult>(Func<IReadOnlyList<TEntry>, long?, CancellationToken, ValueTask<TResult>> reader, long startIndex, long endIndex, CancellationToken token = default)
- ValueTask<TResult> ReadAsync<TResult>(Func<IReadOnlyList<TEntry>, long?, CancellationToken, ValueTask<TResult>> reader, long startIndex, CancellationToken token = default)
-
public interface ILogEntryConsumer<TEntry, TResult> where TEntry : ILogEntry
-
public interface ILogEntryProducer<TEntry> : IAsyncEnumerator<TEntry>, IAsyncDisposable where TEntry : ILogEntry
-
public struct LogEntryConsumer<TEntry, TResult> : ILogEntryConsumer<TEntry, TResult> where TEntry : ILogEntry
- public LogEntryReadOptimizationHint OptimizationHint { get; }
- public LogEntryConsumer(Func<IReadOnlyList<ILogEntry>, long?, CancellationToken, ValueTask<TResult>> consumer, LogEntryReadOptimizationHint optimizationHint = 0)
- public LogEntryConsumer(Func<IReadOnlyList<TEntry>, long?, CancellationToken, ValueTask<TResult>> consumer, LogEntryReadOptimizationHint optimizationHint = 0)
- public LogEntryConsumer(ILogEntryConsumer<TEntry, TResult> consumer)
- public ValueTask<TResult> ReadAsync<TEntryImpl, TList>(TList entries, long? snapshotIndex, CancellationToken token) where TEntryImpl : TEntry where TList : IReadOnlyList<TEntryImpl>
-
public enum LogEntryReadOptimizationHint
DotNext.IO.Pipelines
-
public sealed class DuplexStream : Stream
-
public static class PipeExtensions
- public static ValueTask CopyFromAsync(this PipeWriter destination, Stream source, long count, CancellationToken token = default)
- public static ValueTask CopyToAsync<TConsumer>(this PipeReader reader, TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static ValueTask CopyToAsync<TConsumer>(this PipeReader reader, TConsumer consumer, long count, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static ValueTask<MemoryOwner<char>> DecodeAsync(this PipeReader reader, DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static IAsyncEnumerable<ReadOnlyMemory<char>> DecodeAsync(this PipeReader reader, DecodingContext context, LengthFormat lengthFormat, Memory<char> buffer, CancellationToken token = default)
- public static ValueTask<TResult> ParseAsync<TArg, TResult>(this PipeReader reader, TArg arg, ReadOnlySpanFunc<char, TArg, TResult> parser, DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public static ValueTask<T> ParseAsync<T>(this PipeReader reader, LengthFormat lengthFormat, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanParsable<T>
- public static ValueTask<T> ParseAsync<T>(this PipeReader reader, LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null, CancellationToken token = default) where T : INumberBase<T>
- public static IAsyncEnumerable<ReadOnlyMemory<byte>> ReadAllAsync(this PipeReader reader, CancellationToken token = default)
- public static ValueTask<int> ComputeHashAsync(this PipeReader reader, HashAlgorithmName name, int count, Memory<byte> output, CancellationToken token = default)
- public static ValueTask<int> ComputeHashAsync(this PipeReader reader, HashAlgorithmName name, Memory<byte> output, CancellationToken token = default)
- public static Task CopyToAsync<TArg>(this PipeReader reader, ReadOnlySpanAction<byte, TArg> consumer, TArg arg, CancellationToken token = default)
- public static Task CopyToAsync<TConsumer>(this PipeReader reader, TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static Task CopyToAsync<TArg>(this PipeReader reader, Func<TArg, ReadOnlyMemory<byte>, CancellationToken, ValueTask> consumer, TArg arg, CancellationToken token = default)
- public static ValueTask<int> CopyToAsync(this PipeReader reader, Memory<byte> output, CancellationToken token = default)
- public static Task CopyToAsync(this PipeReader reader, IBufferWriter<byte> destination, CancellationToken token = default)
- public static ValueTask<MemoryOwner<byte>> ReadAsync(this PipeReader reader, LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null, CancellationToken token = default)
- public static ValueTask<int> ReadAsync(this PipeReader reader, Memory<byte> output, CancellationToken token = default)
- public static ValueTask<int> ReadAtLeastAsync(this PipeReader reader, Memory<byte> destination, int minimumSize, CancellationToken token)
- public static ValueTask<T> ReadBigEndianAsync<T>(this PipeReader reader, CancellationToken token = default) where T : IBinaryInteger<T>
- public static ValueTask ReadExactlyAsync(this PipeReader reader, Memory<byte> output, CancellationToken token = default)
- public static ValueTask<T> ReadLittleEndianAsync<T>(this PipeReader reader, CancellationToken token = default) where T : IBinaryInteger<T>
- public static ValueTask ReadUtf8Async(this PipeReader reader, IBufferWriter<char> output, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this PipeReader reader, int length, bool littleEndian, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this PipeReader reader, LengthFormat lengthFormat, bool littleEndian, CancellationToken token = default)
- public static ValueTask<BigInteger> ReadBigIntegerAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask ReadBlockAsync(this PipeReader reader, Memory<byte> output, CancellationToken token = default)
- public static ValueTask<MemoryOwner<byte>> ReadBlockAsync(this PipeReader reader, LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null, CancellationToken token = default)
- public static ValueTask ReadBlockAsync<TConsumer>(this PipeReader reader, long length, TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public static ValueTask ReadBlockAsync<TArg>(this PipeReader reader, long length, Func<TArg, ReadOnlyMemory<byte>, CancellationToken, ValueTask> callback, TArg arg, CancellationToken token = default)
- public static ValueTask<byte> ReadByteAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTime> ReadDateTimeAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTime> ReadDateTimeAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<DateTimeOffset> ReadDateTimeOffsetAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, string[] formats, DateTimeStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<decimal> ReadDecimalAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 111, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<double> ReadDoubleAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<Guid> ReadGuidAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- public static ValueTask<Guid> ReadGuidAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, string format, CancellationToken token = default)
- public static ValueTask<short> ReadInt16Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<short> ReadInt16Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<int> ReadInt32Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<int> ReadInt32Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<long> ReadInt64Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<long> ReadInt64Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<sbyte> ReadSByteAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<float> ReadSingleAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 231, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this PipeReader reader, int length, DecodingContext context, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<TimeSpan> ReadTimeSpanAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, string[] formats, TimeSpanStyles style = 0, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<ushort> ReadUInt16Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<ushort> ReadUInt16Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<uint> ReadUInt32Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<uint> ReadUInt32Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<ulong> ReadUInt64Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<ulong> ReadUInt64Async(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, NumberStyles style = 7, IFormatProvider provider = null, CancellationToken token = default)
- public static bool TryReadExactly(this PipeReader reader, long length, out ReadResult result)
- public static ValueTask WriteAsync(this PipeWriter writer, ReadOnlySequence<byte> sequence, CancellationToken token = default)
- public static bool TryReadBlock(this PipeReader reader, long length, out ReadResult result)
- public static ValueTask<FlushResult> WriteAsync<T>(this PipeWriter writer, T value, CancellationToken token = default) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
- public static Task<long> WriteAsync<TArg>(this PipeWriter writer, Func<TArg, CancellationToken, ValueTask<ReadOnlyMemory<byte>>> supplier, TArg arg, CancellationToken token = default)
- public static ValueTask<long> WriteAsync(this PipeWriter writer, ReadOnlySequence<byte> sequence, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteBigIntegerAsync(this PipeWriter writer, BigInteger value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteBigIntegerAsync(this PipeWriter writer, BigInteger value, bool littleEndian, LengthFormat? lengthFormat, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteBlockAsync(this PipeWriter writer, ReadOnlyMemory<byte> input, LengthFormat? lengthFormat, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteByteAsync(this PipeWriter writer, byte value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteDateTimeAsync(this PipeWriter writer, DateTime value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteDateTimeOffsetAsync(this PipeWriter writer, DateTimeOffset value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteDecimalAsync(this PipeWriter writer, decimal value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteDoubleAsync(this PipeWriter writer, double value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteGuidAsync(this PipeWriter writer, Guid value, LengthFormat lengthFormat, EncodingContext context, string format = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt16Async(this PipeWriter writer, short value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt16Async(this PipeWriter writer, short value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt32Async(this PipeWriter writer, int value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt32Async(this PipeWriter writer, int value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt64Async(this PipeWriter writer, long value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt64Async(this PipeWriter writer, long value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteSByteAsync(this PipeWriter writer, sbyte value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteSingleAsync(this PipeWriter writer, float value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask WriteStringAsync(this PipeWriter writer, ReadOnlyMemory<char> value, EncodingContext context, int bufferSize = 0, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteTimeSpanAsync(this PipeWriter writer, TimeSpan value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt16Async(this PipeWriter writer, ushort value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt16Async(this PipeWriter writer, ushort value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt32Async(this PipeWriter writer, uint value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt32Async(this PipeWriter writer, uint value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt64Async(this PipeWriter writer, ulong value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt64Async(this PipeWriter writer, ulong value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default)
-
public static class ResultExtensions
DotNext.Runtime.Serialization
DotNext.Text.Json