ArrayPoolBufferWriterExtensions.AsStream 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 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.