Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.Strategies.Net5CompatFileStreamStrategy.CompletionSource Class Reference

Public Member Functions

void SetCompletedSynchronously (int numBytes)
 
unsafe void RegisterForCancellation (CancellationToken cancellationToken)
 
void SetException (Exception exception)
 
void SetException (IEnumerable< Exception > exceptions)
 
void SetException (Exception exception)
 
void SetException (IEnumerable< Exception > exceptions)
 
bool TrySetException (Exception exception)
 
bool TrySetException (IEnumerable< Exception > exceptions)
 
bool TrySetException (Exception exception)
 
bool TrySetException (IEnumerable< Exception > exceptions)
 
void SetResult ()
 
void SetResult (TResult result)
 
bool TrySetResult ()
 
bool TrySetResult (TResult result)
 
void SetCanceled ()
 
void SetCanceled (CancellationToken cancellationToken)
 
void SetCanceled ()
 
void SetCanceled (CancellationToken cancellationToken)
 
bool TrySetCanceled ()
 
bool TrySetCanceled (CancellationToken cancellationToken)
 
bool TrySetCanceled ()
 
bool TrySetCanceled (CancellationToken cancellationToken)
 

Static Public Member Functions

static CompletionSource Create (Net5CompatFileStreamStrategy strategy, PreAllocatedOverlapped preallocatedOverlapped, int numBufferedBytesRead, ReadOnlyMemory< byte > memory)
 

Package Functions

unsafe CompletionSource (Net5CompatFileStreamStrategy strategy, PreAllocatedOverlapped preallocatedOverlapped, int numBufferedBytes, byte[] bytes)
 
virtual unsafe void ReleaseNativeResource ()
 

Static Package Functions

static unsafe void IOCallback (uint errorCode, uint numBytes, NativeOverlapped *pOverlapped)
 

Static Package Attributes

static unsafe readonly IOCompletionCallback s_ioCallback = IOCallback
 

Properties

unsafe NativeOverlappedOverlapped [get]
 
Task Task [get]
 
Task< TResultTask [get]
 

Private Member Functions

void CompleteCallback (ulong packedResult)
 

Static Private Member Functions

static unsafe void Cancel (object state)
 

Private Attributes

readonly Net5CompatFileStreamStrategy _strategy
 
readonly int _numBufferedBytes
 
CancellationTokenRegistration _cancellationRegistration
 
unsafe NativeOverlapped_overlapped
 
long _result
 
readonly Task _task
 
readonly Task< TResult_task
 

Static Private Attributes

static Action< object > s_cancelCallback
 

Detailed Description

Definition at line 11 of file Net5CompatFileStreamStrategy.cs.


The documentation for this class was generated from the following file: