PipeReader.Create 方法

定义

重载

Create(ReadOnlySequence<Byte>)

创建包装指定的 ReadOnlySequence<T>PipeReader

Create(Stream, StreamPipeReaderOptions)

创建包装指定的 StreamPipeReader

Create(ReadOnlySequence<Byte>)

Source:
PipeReader.cs
Source:
PipeReader.cs
Source:
PipeReader.cs

创建包装指定的 ReadOnlySequence<T>PipeReader

public:
 static System::IO::Pipelines::PipeReader ^ Create(System::Buffers::ReadOnlySequence<System::Byte> sequence);
public static System.IO.Pipelines.PipeReader Create (System.Buffers.ReadOnlySequence<byte> sequence);
static member Create : System.Buffers.ReadOnlySequence<byte> -> System.IO.Pipelines.PipeReader
Public Shared Function Create (sequence As ReadOnlySequence(Of Byte)) As PipeReader

参数

sequence
ReadOnlySequence<Byte>

要换行的序列。

返回

包装 ReadOnlySequence<T>PipeReader

适用于

Create(Stream, StreamPipeReaderOptions)

Source:
PipeReader.cs
Source:
PipeReader.cs
Source:
PipeReader.cs

创建包装指定的 StreamPipeReader

public static System.IO.Pipelines.PipeReader Create (System.IO.Stream stream, System.IO.Pipelines.StreamPipeReaderOptions readerOptions = default);
public static System.IO.Pipelines.PipeReader Create (System.IO.Stream stream, System.IO.Pipelines.StreamPipeReaderOptions? readerOptions = default);
static member Create : System.IO.Stream * System.IO.Pipelines.StreamPipeReaderOptions -> System.IO.Pipelines.PipeReader
Public Shared Function Create (stream As Stream, Optional readerOptions As StreamPipeReaderOptions = Nothing) As PipeReader

参数

stream
Stream

管道读取器将包装的流。

readerOptions
StreamPipeReaderOptions

用于配置管道读取器的选项。

返回

包装 StreamPipeReader

适用于