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

◆ GetNativeOverlappedForAsyncHandle()

static unsafe NativeOverlapped * System.IO.RandomAccess.GetNativeOverlappedForAsyncHandle ( ThreadPoolBoundHandle threadPoolBinding,
long fileOffset,
CallbackResetEvent resetEvent )
inlinestaticprivate

Definition at line 738 of file RandomAccess.cs.

739 {
740 NativeOverlapped* ptr = threadPoolBinding.AllocateNativeOverlapped(s_callback, resetEvent, null);
741 ptr->OffsetLow = (int)fileOffset;
742 ptr->OffsetHigh = (int)(fileOffset >> 32);
743 ptr->EventHandle = resetEvent.SafeWaitHandle.DangerousGetHandle();
744 return ptr;
745 }
static readonly IOCompletionCallback s_callback
static Memory< byte > long fileOffset

References System.IO.RandomAccess.fileOffset, and System.IO.RandomAccess.s_callback.

Referenced by System.IO.RandomAccess.ReadSyncUsingAsyncHandle(), and System.IO.RandomAccess.WriteSyncUsingAsyncHandle().