Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QCallTypeHandle.cs
Go to the documentation of this file.
2
4
5internal ref struct QCallTypeHandle
6{
7 private unsafe void* _ptr;
8
9 private IntPtr _handle;
10
11 internal unsafe QCallTypeHandle(ref RuntimeType type)
12 {
13 _ptr = Unsafe.AsPointer(ref type);
14 if (type != null)
15 {
16 _handle = type.GetUnderlyingNativeHandle();
17 }
18 else
19 {
21 }
22 }
23
24 internal unsafe QCallTypeHandle(ref RuntimeTypeHandle rth)
25 {
26 _ptr = Unsafe.AsPointer(ref rth);
27 _handle = rth.Value;
28 }
29}
static readonly IntPtr Zero
Definition IntPtr.cs:18
unsafe QCallTypeHandle(ref RuntimeTypeHandle rth)