15 _overlappedData._asyncResult =
value;
27 _overlappedData.OffsetLow =
value;
39 _overlappedData.OffsetHigh =
value;
43 [Obsolete(
"Overlapped.EventHandle is not 64-bit compatible and has been deprecated. Use EventHandleIntPtr instead.")]
64 _overlappedData.EventHandle =
value;
76 _overlappedData.OffsetLow = offsetLo;
77 _overlappedData.OffsetHigh = offsetHi;
78 _overlappedData.EventHandle = hEvent;
79 _overlappedData._asyncResult = ar;
82 [Obsolete(
"This constructor is not 64-bit compatible and has been deprecated. Use the constructor that accepts an IntPtr for the event handle instead.")]
84 : this(offsetLo, offsetHi, new
IntPtr(hEvent), ar)
88 [Obsolete(
"This overload is not safe and has been deprecated. Use Pack(IOCompletionCallback?, object?) instead.")]
92 return Pack(iocb,
null);
101 [Obsolete(
"This overload is not safe and has been deprecated. Use UnsafePack(IOCompletionCallback?, object?) instead.")]
102 [CLSCompliant(
false)]
108 [CLSCompliant(
false)]
114 [CLSCompliant(
false)]
117 if (nativeOverlappedPtr ==
null)
124 [CLSCompliant(
false)]
127 if (nativeOverlappedPtr ==
null)
unsafe NativeOverlapped * Pack(IOCompletionCallback iocb, object userData)
bool IsUserObject(byte[] buffer)
static unsafe void FreeNativeOverlapped(NativeOverlapped *nativeOverlappedPtr)
unsafe ref int OffsetHigh
static unsafe OverlappedData GetOverlappedFromNative(NativeOverlapped *nativeOverlappedPtr)
IAsyncResult _asyncResult
unsafe NativeOverlapped * UnsafePack(IOCompletionCallback iocb, object userData)
unsafe ref IntPtr EventHandle
unsafe NativeOverlapped * UnsafePack(IOCompletionCallback? iocb, object? userData)
Overlapped(int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult? ar)
unsafe NativeOverlapped * UnsafePack(IOCompletionCallback? iocb)
static unsafe Overlapped Unpack(NativeOverlapped *nativeOverlappedPtr)
unsafe NativeOverlapped * Pack(IOCompletionCallback? iocb, object? userData)
IAsyncResult? AsyncResult
OverlappedData _overlappedData
bool IsUserObject(byte[] buffer)
Overlapped(int offsetLo, int offsetHi, int hEvent, IAsyncResult? ar)
static unsafe void Free(NativeOverlapped *nativeOverlappedPtr)
unsafe NativeOverlapped * Pack(IOCompletionCallback? iocb)
unsafe delegate void IOCompletionCallback(uint errorCode, uint numBytes, NativeOverlapped *pOVERLAP)