C# Class System.IO.FileStream.AsyncCopyToAwaitable

Used by CopyToAsync to enable awaiting the result of an overlapped I/O operation with minimal overhead.
Inheritance: ICriticalNotifyCompletion
Afficher le fichier Open project: dotnet/corefx

Private Properties

Свойство Type Description
AsyncCopyToAwaitable System.Buffers
IOCallback void
MarkCompleted void
ResetForNextOperation void

Méthodes publiques

Méthode Description
GetAwaiter ( ) : AsyncCopyToAwaitable
GetResult ( ) : void
OnCompleted ( Action continuation ) : void
UnsafeOnCompleted ( Action continuation ) : void

Private Methods

Méthode Description
AsyncCopyToAwaitable ( FileStream fileStream ) : System.Buffers

Initialize the awaitable.

IOCallback ( uint errorCode, uint numBytes, NativeOverlapped pOVERLAP ) : void

Overlapped callback: store the results, then invoke the continuation delegate.

MarkCompleted ( ) : void

Called when it's known that the I/O callback for an operation will not be invoked but we'll still be awaiting the awaitable.

ResetForNextOperation ( ) : void

Reset state to prepare for the next read operation.

Method Details

GetAwaiter() public méthode

public GetAwaiter ( ) : AsyncCopyToAwaitable
Résultat AsyncCopyToAwaitable

GetResult() public méthode

public GetResult ( ) : void
Résultat void

OnCompleted() public méthode

public OnCompleted ( Action continuation ) : void
continuation Action
Résultat void

UnsafeOnCompleted() public méthode

public UnsafeOnCompleted ( Action continuation ) : void
continuation Action
Résultat void