Edytuj

Udostępnij za pośrednictwem


ArrayPoolBufferWriterExtensions.AsStream Method

Definition

Returns a Stream that can be used to write to a target an ArrayPoolBufferWriter<T> of Byte instance.

public static System.IO.Stream AsStream (this Microsoft.Toolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<byte> writer);
static member AsStream : Microsoft.Toolkit.HighPerformance.Buffers.ArrayPoolBufferWriter<byte> -> System.IO.Stream
<Extension()>
Public Function AsStream (writer As ArrayPoolBufferWriter(Of Byte)) As Stream

Parameters

writer
ArrayPoolBufferWriter<Byte>

The target ArrayPoolBufferWriter<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