IBufferWriterExtensions.AsStream(IBufferWriter<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Stream that can be used to write to a target an IBufferWriter<T> of Byte instance.
public static System.IO.Stream AsStream (this System.Buffers.IBufferWriter<byte> writer);
static member AsStream : System.Buffers.IBufferWriter<byte> -> System.IO.Stream
<Extension()>
Public Function AsStream (writer As IBufferWriter(Of Byte)) As Stream
Parameters
- writer
- IBufferWriter<Byte>
The target IBufferWriter<T> instance.
Returns
A Stream wrapping writer
and writing data to its underlying buffer.
Remarks
The returned Stream can only be written to and does not support seeking.