ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean) 构造函数

定义

创建 ReadResult 设置 IsCanceledIsCompleted 标志的新实例。

public:
 ReadResult(System::Buffers::ReadOnlySequence<System::Byte> buffer, bool isCanceled, bool isCompleted);
public ReadResult (System.Buffers.ReadOnlySequence<byte> buffer, bool isCanceled, bool isCompleted);
new System.IO.Pipelines.ReadResult : System.Buffers.ReadOnlySequence<byte> * bool * bool -> System.IO.Pipelines.ReadResult
Public Sub New (buffer As ReadOnlySequence(Of Byte), isCanceled As Boolean, isCompleted As Boolean)

参数

buffer
ReadOnlySequence<Byte>

只读序列,其中包含在 ReadAsync(CancellationToken) 调用中读取的数据字节。

isCanceled
Boolean

一个标志,指示 CancelPendingRead() 是否已取消生成此 ReadResultReadAsync(CancellationToken) 操作。

isCompleted
Boolean

一个标志,指示是否已到达数据流末尾。

适用于