51 threadPoolBoundHandleOverlapped._boundHandle =
this;
58 if (preAllocated ==
null)
71 overlapped._boundHandle =
this;
84 if (overlapped ==
null)
103 [CLSCompliant(
false)]
106 if (overlapped ==
null)
static string Argument_PreAllocatedAlreadyAllocated
static string Argument_NativeOverlappedWrongBoundHandle
static string Argument_AlreadyBoundOrSyncHandle
static string Argument_InvalidHandle
static string Argument_NativeOverlappedAlreadyFree
static unsafe Overlapped Unpack(NativeOverlapped *nativeOverlappedPtr)
static unsafe void Free(NativeOverlapped *nativeOverlappedPtr)
readonly ThreadPoolBoundHandleOverlapped _overlapped
readonly PreAllocatedOverlapped _preAllocated
ThreadPoolBoundHandle _boundHandle
unsafe NativeOverlapped * _nativeOverlapped
readonly object _userState
static ThreadPoolBoundHandle BindHandle(SafeHandle handle)
static ThreadPoolBoundHandle BindHandleCore(SafeHandle handle)
unsafe void FreeNativeOverlapped(NativeOverlapped *overlapped)
unsafe NativeOverlapped * AllocateNativeOverlapped(PreAllocatedOverlapped preAllocated)
unsafe NativeOverlapped * AllocateNativeOverlapped(IOCompletionCallback callback, object? state, object? pinData)
ThreadPoolBoundHandle(SafeHandle handle)
readonly SafeHandle _handle
unsafe NativeOverlapped * AllocateNativeOverlapped(IOCompletionCallback callback, object state, object pinData, bool flowExecutionContext)
unsafe NativeOverlapped * UnsafeAllocateNativeOverlapped(IOCompletionCallback callback, object? state, object? pinData)
static unsafe ThreadPoolBoundHandleOverlapped GetOverlappedWrapper(NativeOverlapped *overlapped)
static unsafe? object GetNativeOverlappedState(NativeOverlapped *overlapped)
static bool BindHandle(IntPtr osHandle)
unsafe delegate void IOCompletionCallback(uint errorCode, uint numBytes, NativeOverlapped *pOVERLAP)