PipeWriter Class
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.
Defines a class that provides a pipeline to which data can be written.
public ref class PipeWriter abstract : System::Buffers::IBufferWriter<System::Byte>
public abstract class PipeWriter : System.Buffers.IBufferWriter<byte>
type PipeWriter = class
interface IBufferWriter<byte>
Public MustInherit Class PipeWriter
Implements IBufferWriter(Of Byte)
- Inheritance
-
PipeWriter
- Implements
Constructors
PipeWriter() |
Initializes a new instance of the class. |
Properties
CanGetUnflushedBytes |
Gets a value that indicates whether the current PipeWriter supports reporting the count of unflushed bytes. |
UnflushedBytes |
When overridden in a derived class, gets the count of unflushed bytes within the current writer. |
Methods
Advance(Int32) |
Notifies the PipeWriter that |
AsStream(Boolean) |
Returns a Stream representation of the PipeWriter. |
CancelPendingFlush() |
Cancels the pending FlushAsync(CancellationToken) or WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) operation without causing the operation to throw and without completing the PipeWriter. If there is no pending operation, this cancels the next operation. |
Complete(Exception) |
Marks the PipeWriter as being complete, meaning no more items will be written to it. |
CompleteAsync(Exception) |
Marks the current pipe writer instance as being complete, meaning no more data will be written to it. |
CopyFromAsync(Stream, CancellationToken) |
Asynchronously reads the bytes from the specified stream and writes them to the PipeWriter. |
Create(Stream, StreamPipeWriterOptions) |
Creates a PipeWriter wrapping the specified Stream. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
FlushAsync(CancellationToken) |
Makes bytes written available to PipeReader and runs ReadAsync(CancellationToken) continuation. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetMemory(Int32) |
Returns a Memory<T> to write to that is at least the requested size, as specified by the |
GetSpan(Int32) |
Returns a Span<T> to write to that is at least the requested size, as specified by the |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OnReaderCompleted(Action<Exception,Object>, Object) |
Obsolete.
Obsolete.
Registers a callback that executes when the PipeReader side of the pipe is completed. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) |
Writes the specified byte memory range to the pipe and makes data accessible to the PipeReader. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기