Editar

Compartilhar via


IBufferWriterExtensions.AsStream(IBufferWriter<Byte>) Method

Definition

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.

Applies to