編輯

共用方式為


PipeReader.Create Method

Definition

Overloads

Create(ReadOnlySequence<Byte>)

Creates a PipeReader wrapping the specified ReadOnlySequence<T>.

Create(Stream, StreamPipeReaderOptions)

Creates a PipeReader wrapping the specified Stream.

Create(ReadOnlySequence<Byte>)

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

Creates a PipeReader wrapping the specified ReadOnlySequence<T>.

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

Parameters

sequence
ReadOnlySequence<Byte>

The sequence to wrap.

Returns

A PipeReader that wraps the ReadOnlySequence<T>.

Applies to

Create(Stream, StreamPipeReaderOptions)

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

Creates a PipeReader wrapping the specified Stream.

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

Parameters

stream
Stream

The stream that the pipe reader will wrap.

readerOptions
StreamPipeReaderOptions

The options to configure the pipe reader.

Returns

A PipeReader that wraps the Stream.

Applies to