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

◆ AddRef()

static unsafe int System.Runtime.InteropServices.Marshal.AddRef ( IntPtr pUnk)
inlinestatic

Definition at line 757 of file Marshal.cs.

758 {
759 if (pUnk == IntPtr.Zero)
760 {
761 throw new ArgumentNullException("pUnk");
762 }
763 return ((delegate* unmanaged<IntPtr, int>)(*(IntPtr*)((nint)(*(IntPtr*)(void*)pUnk) + sizeof(void*))))(pUnk);
764 }

References System.IntPtr.Zero.