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

◆ AllocateCallback()

static unsafe IOCompletionCallback System.IO.RandomAccess.AllocateCallback ( )
inlinestaticprivate

Definition at line 758 of file RandomAccess.cs.

759 {
760 return Callback;
761 unsafe static void Callback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped)
762 {
763 CallbackResetEvent callbackResetEvent = (CallbackResetEvent)ThreadPoolBoundHandle.GetNativeOverlappedState(pOverlapped);
764 callbackResetEvent.FreeNativeOverlapped(pOverlapped);
765 }
766 }
static unsafe(SafeFileHandle.OverlappedValueTaskSource vts, int errorCode) QueueAsyncReadFile(SafeFileHandle handle
static unsafe? object GetNativeOverlappedState(NativeOverlapped *overlapped)

References System.Threading.ThreadPoolBoundHandle.GetNativeOverlappedState(), and System.IO.RandomAccess.unsafe().