StreamSource
Represents conversion of various buffer types to stream.
Converts read-only sequence of bytes to a read-only stream.
Converts read-only memory to a read-only stream.
public static Stream AsStream<TWriter>(this TWriter writer, Action<TWriter> flush = null, Func<TWriter, CancellationToken, Task> flushAsync = null) where TWriter : IBufferWriter<byte>
Returns the writable stream associated with the buffer writer.
Gets written content as a read-only stream.