Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadWriteTask()

System.IO.Stream.ReadWriteTask.ReadWriteTask ( bool isRead,
bool apm,
Func< object, int > function,
object state,
Stream stream,
byte[] buffer,
int offset,
int count,
AsyncCallback callback )
inline

Definition at line 51 of file Stream.cs.

52 : base(function, state, CancellationToken.None, TaskCreationOptions.DenyChildAttach)
53 {
54 _isRead = isRead;
55 _apm = apm;
59 _count = count;
60 if (callback != null)
61 {
62 _callback = callback;
65 }
66 }
ExecutionContext _context
Definition Stream.cs:39
static ? ExecutionContext Capture()
void AddCompletionAction(ITaskCompletionAction action, bool addBeforeOthers=false)
Definition Task.cs:2952

References System.IO.Stream.ReadWriteTask._apm, System.IO.Stream.ReadWriteTask._buffer, System.IO.Stream.ReadWriteTask._callback, System.IO.Stream.ReadWriteTask._context, System.IO.Stream.ReadWriteTask._count, System.IO.Stream.ReadWriteTask._isRead, System.IO.Stream.ReadWriteTask._offset, System.IO.Stream.ReadWriteTask._stream, System.Threading.Tasks.Task< int >.AddCompletionAction(), System.buffer, System.Threading.ExecutionContext.Capture(), System.count, System.offset, and System.stream.

Referenced by System.IO.Stream.ReadWriteTask.InvokeAsyncCallback().