API Diff between 4.12.3 and 5.0.3
236 Additions
132 Removals
DotNext
DotNext.Buffers
-
public static class BufferWriter
- public static long Encode(this IBufferWriter<byte> writer, ReadOnlySpan<char> value, 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 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 long WriteFormattable<T>(this IBufferWriter<byte> writer, T value, LengthFormat? lengthFormat, ref EncodingContext context, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable
- public static void WriteInt16(this IBufferWriter<byte> writer, short value, bool littleEndian)
- public static void WriteInt32(this IBufferWriter<byte> writer, int value, bool littleEndian)
- public static void WriteInt64(this IBufferWriter<byte> writer, long value, bool littleEndian)
- public static long WriteString(this IBufferWriter<byte> writer, ReadOnlySpan<char> value, ref EncodingContext context, LengthFormat? lengthFormat = default)
- public static int WriteString(this IBufferWriter<byte> writer, ref EncodingContext context, Span<char> buffer, IFormatProvider provider, ref EncodingInterpolatedStringHandler handler)
- public static int WriteString(this IBufferWriter<byte> writer, ref EncodingContext context, ref EncodingInterpolatedStringHandler handler)
- public static void WriteUInt16(this IBufferWriter<byte> writer, ushort value, bool littleEndian)
- public static void WriteUInt32(this IBufferWriter<byte> writer, uint value, bool littleEndian)
- public static void WriteUInt64(this IBufferWriter<byte> writer, ulong value, bool littleEndian)
-
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>>, IFunctional<Func<ReadOnlySequence<byte>>>
-
public class BinaryTransferObject<T> : IDataTransferObject, ISupplier<T>, IFunctional<Func<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>, IFunctional<Func<ReadOnlyMemory<byte>, CancellationToken, ValueTask>>, IDisposable, IResettable, IFlushable
- public void Clear(bool reuseBuffer = true)
- public void Clear()
-
public class FileReader : Disposable, IAsyncBinaryReader, IAsyncEnumerable<ReadOnlyMemory<byte>>
- public FileReader(FileStream source, int bufferSize = 4096, MemoryAllocator<byte> allocator = null)
- public void ClearBuffer()
- public ValueTask CopyToAsync<TConsumer>(TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public ValueTask CopyToAsync<TConsumer>(TConsumer consumer, long count, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public ValueTask<MemoryOwner<char>> DecodeAsync(DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null, CancellationToken token = default)
- public IAsyncEnumerable<ReadOnlyMemory<char>> DecodeAsync(DecodingContext context, LengthFormat lengthFormat, Memory<char> buffer, CancellationToken token = default)
- public ValueTask<T> ParseAsync<T>(LengthFormat lengthFormat, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanParsable<T>
- public ValueTask<T> ParseAsync<T>(LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null, CancellationToken token = default) where T : INumberBase<T>
- public Task CopyToAsync<TConsumer>(TConsumer consumer, CancellationToken token = default) where TConsumer : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>
- public Task CopyToAsync(Stream output, CancellationToken token = default)
- public Task CopyToAsync(PipeWriter output, CancellationToken token = default)
- public Task CopyToAsync(IBufferWriter<byte> writer, CancellationToken token = default)
- public ValueTask<T> ParseAsync<T>(Parser<T> parser, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- public ValueTask<T> ParseAsync<T>(CancellationToken token = default) where T : IBinaryFormattable<T>
- public ValueTask<T> ReadBigEndianAsync<T>(CancellationToken token = default) where T : IBinaryInteger<T>
- public ValueTask<T> ReadLittleEndianAsync<T>(CancellationToken token = default) where T : IBinaryInteger<T>
- public void Reset()
- public ValueTask<BigInteger> ReadBigIntegerAsync(LengthFormat lengthFormat, bool littleEndian, CancellationToken token = default)
- public ValueTask ReadBlockAsync(Memory<byte> output, CancellationToken token = default)
- public ValueTask<string> ReadStringAsync(LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- public ValueTask<string> ReadStringAsync(int length, DecodingContext context, CancellationToken token = default)
- public void SetSegmentLength(long? value)
- public bool TryConsume(int bytes, out ReadOnlyMemory buffer)
-
public class FileWriter : Disposable, IAsyncBinaryWriter, ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional<Func<ReadOnlyMemory<byte>, CancellationToken, ValueTask>>, IBufferWriter<byte>, IFlushable
- public FileWriter(FileStream destination, int bufferSize = 4096, MemoryAllocator<byte> allocator = null)
- public ValueTask CopyFromAsync(Stream input, CancellationToken token = default)
- public ValueTask CopyFromAsync(Stream source, long count, CancellationToken token = default)
- public ValueTask<long> EncodeAsync(ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat, CancellationToken token = default)
- public void FlushToDisk()
- public ValueTask<long> FormatAsync<T>(T value, EncodingContext context, LengthFormat? lengthFormat, string format = null, IFormatProvider provider = null, MemoryAllocator<char> allocator = null, CancellationToken token = default) where T : ISpanFormattable
- public ValueTask<int> FormatAsync<T>(T value, LengthFormat? lengthFormat, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : IUtf8SpanFormattable
- public Task CopyFromAsync(Stream input, CancellationToken token = default)
- public Task CopyFromAsync(PipeReader input, CancellationToken token = default)
- public ValueTask WriteBigEndianAsync<T>(T value, CancellationToken token = default) where T : IBinaryInteger<T>
- public ValueTask WriteLittleEndianAsync<T>(T value, CancellationToken token = default) where T : IBinaryInteger<T>
- public ValueTask WriteBigIntegerAsync(BigInteger value, bool littleEndian, LengthFormat? lengthFormat = default, CancellationToken token = default)
- public ValueTask WriteFormattableAsync<T>(T value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : ISpanFormattable
- public ValueTask WriteFormattableAsync<T>(T value, CancellationToken token = default) where T : IBinaryFormattable<T>
- public ValueTask WriteStringAsync(ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat, CancellationToken token = default)
-
public interface IAsyncBinaryReader
- 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<T> ParseAsync<T>(Parser<T> parser, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- ValueTask<T> ParseAsync<T>(CancellationToken token = default) where T : IBinaryFormattable<T>
- 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)
- ValueTask<BigInteger> ReadBigIntegerAsync(int length, bool littleEndian, CancellationToken token = default)
- ValueTask<BigInteger> ReadBigIntegerAsync(LengthFormat lengthFormat, bool littleEndian, CancellationToken token = default)
- ValueTask<short> ReadInt16Async(bool littleEndian, CancellationToken token = default)
- ValueTask<int> ReadInt32Async(bool littleEndian, CancellationToken token = default)
- ValueTask<long> ReadInt64Async(bool littleEndian, CancellationToken token = default)
- ValueTask<string> ReadStringAsync(int length, DecodingContext context, CancellationToken token = default)
- ValueTask<MemoryOwner<char>> ReadStringAsync(int length, DecodingContext context, MemoryAllocator<char> allocator, CancellationToken token = default)
- ValueTask<string> ReadStringAsync(LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- ValueTask<MemoryOwner<char>> ReadStringAsync(LengthFormat lengthFormat, DecodingContext context, MemoryAllocator<char> allocator, CancellationToken token = default)
- ValueTask SkipAsync(int length, CancellationToken token = default)
-
public interface IAsyncBinaryWriter : ISupplier<ReadOnlyMemory<byte>, CancellationToken, ValueTask>, IFunctional<Func<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)
- Task WriteAsync(ReadOnlySequence<byte> input, CancellationToken token = default)
- ValueTask WriteBigIntegerAsync(BigInteger value, bool littleEndian, LengthFormat? lengthFormat = default, CancellationToken token = default)
- ValueTask WriteFormattableAsync<T>(T value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : ISpanFormattable
- ValueTask WriteFormattableAsync<T>(T value, CancellationToken token = default) where T : IBinaryFormattable<T>
- ValueTask WriteInt16Async(short value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteInt32Async(int value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteInt64Async(long value, bool littleEndian, CancellationToken token = default)
- ValueTask WriteStringAsync(ReadOnlyMemory<char> chars, EncodingContext context, LengthFormat? lengthFormat, CancellationToken token = default)
-
public enum LengthFormat
-
public struct SequenceReader : IAsyncBinaryReader, IResettable
- public struct DecodingEnumerable
- public struct SpanDecodingEnumerable
- public bool IsEmpty { get; }
- public MemoryOwner<char> Decode(ref DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null)
- public SpanDecodingEnumerable Decode(ref DecodingContext context, LengthFormat lengthFormat, Span<char> buffer)
- public DecodingEnumerable Decode(ref DecodingContext context, LengthFormat lengthFormat, Memory<char> buffer)
- public TResult Parse<TArg, TResult>(TArg arg, ReadOnlySpanFunc<char, TArg, TResult> parser, ref DecodingContext context, LengthFormat lengthFormat, MemoryAllocator<char> allocator = null)
- public T Parse<T>(LengthFormat lengthFormat, IFormatProvider provider = null) where T : IUtf8SpanParsable<T>
- public T Parse<T>(LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null) where T : INumberBase<T>
- public T Parse<T>(ref DecodingContext context, LengthFormat lengthFormat, NumberStyles style, IFormatProvider provider = null, MemoryAllocator<char> allocator = null) where T : INumberBase<T>
- public T Parse<T>(Parser<T> parser, LengthFormat lengthFormat, ref DecodingContext context, IFormatProvider provider = null)
- public T Parse<T>() where T : IBinaryFormattable<T>
- public ReadOnlySequence<byte> Read(long count)
- public T ReadBigEndian<T>() where T : IBinaryInteger<T>
- public MemoryOwner<byte> ReadBlock(LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null)
- public byte ReadByte()
- public T ReadLittleEndian<T>() where T : IBinaryInteger<T>
- public ReadOnlySequence<byte> ReadToEnd()
- public MemoryOwner<byte> Read(LengthFormat lengthFormat, MemoryAllocator<byte> allocator = null)
- public BigInteger ReadBigInteger(int length, bool littleEndian)
- public BigInteger ReadBigInteger(LengthFormat lengthFormat, bool littleEndian)
- public short ReadInt16(bool littleEndian)
- public int ReadInt32(bool littleEndian)
- public long ReadInt64(bool littleEndian)
- public string ReadString(int length, ref DecodingContext context)
- public MemoryOwner<char> ReadString(int length, ref DecodingContext context, MemoryAllocator<char> allocator)
- public string ReadString(LengthFormat lengthFormat, ref DecodingContext context)
- public MemoryOwner<char> ReadString(LengthFormat lengthFormat, ref DecodingContext context, MemoryAllocator<char> allocator)
- public ushort ReadUInt16(bool littleEndian)
- public uint ReadUInt32(bool littleEndian)
- public ulong ReadUInt64(bool littleEndian)
- public void Skip(long length)
- public bool TryRead(out ReadOnlyMemory chunk)
- public bool TryRead(int maxLength, out ReadOnlyMemory chunk)
- public void Skip(int length)
-
public static class StreamExtensions
- 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 Stream Combine(this Stream stream, Stream[] others)
- public static Stream Combine(this IEnumerable<Stream> streams)
- 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 Parse<T>(this Stream stream, Parser<T> parser, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, IFormatProvider provider = null)
- public static T Parse<T>(this Stream stream, Span<byte> buffer) where T : IBinaryFormattable<T>
- public static T Parse<T>(this Stream stream) where T : IBinaryFormattable<T>
- public static ValueTask<T> ParseAsync<T>(this Stream stream, Parser<T> parser, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<T> ParseAsync<T>(this Stream stream, Parser<T> parser, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<T> ParseAsync<T>(this Stream stream, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryFormattable<T>
- public static ValueTask<T> ParseAsync<T>(this Stream stream, CancellationToken token = default) where T : IBinaryFormattable<T>
- 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 int ReadAtLeast(this Stream stream, int minimumSize, Span<byte> buffer)
- public static ValueTask<int> ReadAtLeastAsync(this Stream stream, int minimumSize, Memory<byte> buffer, CancellationToken token = default)
- 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 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 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 string ReadString(this Stream stream, int length, ref DecodingContext context, Span<byte> buffer)
- public static MemoryOwner<char> ReadString(this Stream stream, int length, ref DecodingContext context, Span<byte> buffer, MemoryAllocator<char> allocator)
- public static string ReadString(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer)
- public static MemoryOwner<char> ReadString(this Stream stream, LengthFormat lengthFormat, ref DecodingContext context, Span<byte> buffer, MemoryAllocator<char> allocator)
- public static string ReadString(this Stream stream, int length, Encoding encoding)
- public static MemoryOwner<char> ReadString(this Stream stream, int length, Encoding encoding, MemoryAllocator<char> allocator)
- public static string ReadString(this Stream stream, LengthFormat lengthFormat, Encoding encoding)
- public static MemoryOwner<char> ReadString(this Stream stream, LengthFormat lengthFormat, Encoding encoding, MemoryAllocator<char> allocator)
- public static ValueTask<string> ReadStringAsync(this Stream stream, int length, DecodingContext context, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this Stream stream, int length, DecodingContext context, Memory<byte> buffer, MemoryAllocator<char> allocator, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, DecodingContext context, Memory<byte> buffer, MemoryAllocator<char> allocator, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, int length, Encoding encoding, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this Stream stream, int length, Encoding encoding, MemoryAllocator<char> allocator, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, Encoding encoding, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this Stream stream, LengthFormat lengthFormat, Encoding encoding, MemoryAllocator<char> allocator, 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 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 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 WriteFormattable<T>(this Stream stream, T value, LengthFormat lengthFormat, Encoding encoding, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable
- public static void WriteFormattable<T>(this Stream stream, T value) where T : IBinaryFormattable<T>
- public static ValueTask WriteFormattableAsync<T>(this Stream stream, T value, LengthFormat lengthFormat, EncodingContext context, Memory<byte> buffer, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : ISpanFormattable
- public static ValueTask WriteFormattableAsync<T>(this Stream stream, T value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : ISpanFormattable
- public static ValueTask WriteFormattableAsync<T>(this Stream stream, T value, Memory<byte> buffer, CancellationToken token = default) where T : IBinaryFormattable<T>
- public static ValueTask WriteFormattableAsync<T>(this Stream stream, T value, CancellationToken token = default) where T : IBinaryFormattable<T>
- 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)
DotNext.IO.Log
-
public interface IAuditTrail
- long LastEntryIndex { get; }
- long LastUncommittedEntryIndex { get; }
- 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<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)
-
public interface IAuditTrail<TEntry> : IAuditTrail where TEntry : ILogEntry
- 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 LogEntryProducerOptimizationHint
-
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 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<T> ParseAsync<T>(this PipeReader reader, Parser<T> parser, LengthFormat lengthFormat, DecodingContext context, IFormatProvider provider = null, CancellationToken token = default)
- public static ValueTask<T> ParseAsync<T>(this PipeReader reader, CancellationToken token = default) where T : IBinaryFormattable<T>
- 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 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<short> ReadInt16Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<int> ReadInt32Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<long> ReadInt64Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this PipeReader reader, int length, DecodingContext context, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this PipeReader reader, int length, DecodingContext context, MemoryAllocator<char> allocator, CancellationToken token = default)
- public static ValueTask<string> ReadStringAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, CancellationToken token = default)
- public static ValueTask<MemoryOwner<char>> ReadStringAsync(this PipeReader reader, LengthFormat lengthFormat, DecodingContext context, MemoryAllocator<char> allocator, CancellationToken token = default)
- public static ValueTask<ushort> ReadUInt16Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<uint> ReadUInt32Async(this PipeReader reader, bool littleEndian, CancellationToken token = default)
- public static ValueTask<ulong> ReadUInt64Async(this PipeReader reader, bool littleEndian, 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, 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> WriteFormattableAsync<T>(this PipeWriter writer, T value, LengthFormat lengthFormat, EncodingContext context, string format = null, IFormatProvider provider = null, CancellationToken token = default) where T : ISpanFormattable
- public static ValueTask<FlushResult> WriteFormattableAsync<T>(this PipeWriter writer, T value, CancellationToken token = default) where T : IBinaryFormattable<T>
- public static ValueTask<FlushResult> WriteInt16Async(this PipeWriter writer, short value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt32Async(this PipeWriter writer, int value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteInt64Async(this PipeWriter writer, long value, bool littleEndian, 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> WriteUInt16Async(this PipeWriter writer, ushort value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt32Async(this PipeWriter writer, uint value, bool littleEndian, CancellationToken token = default)
- public static ValueTask<FlushResult> WriteUInt64Async(this PipeWriter writer, ulong value, bool littleEndian, CancellationToken token = default)
DotNext.Runtime.Serialization
DotNext.Text
DotNext.Text.Json