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

◆ Pack()

unsafe NativeOverlapped * System.Threading.OverlappedData.Pack ( IOCompletionCallback iocb,
object userData )
inlinepackage

Definition at line 64 of file OverlappedData.cs.

65 {
66 if (_pNativeOverlapped != null)
67 {
68 throw new InvalidOperationException(SR.InvalidOperation_Overlapped_Pack);
69 }
70 if (iocb != null)
71 {
72 ExecutionContext executionContext = ExecutionContext.Capture();
73 _callback = ((executionContext != null && !executionContext.IsDefault) ? ((object)new _IOCompletionCallback(iocb, executionContext)) : ((object)iocb));
74 }
75 else
76 {
77 _callback = null;
78 }
79 _userObject = userData;
81 }
unsafe NativeOverlapped * AllocateNativeOverlapped()
unsafe readonly NativeOverlapped * _pNativeOverlapped

References System.Threading.OverlappedData._callback, System.Threading.OverlappedData._pNativeOverlapped, System.Threading.OverlappedData._userObject, System.Threading.OverlappedData.AllocateNativeOverlapped(), System.Threading.ExecutionContext.Capture(), System.SR.InvalidOperation_Overlapped_Pack, and System.Threading.ExecutionContext.IsDefault.

Referenced by System.Threading.Overlapped.Pack().