Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QCallTypeHandle.cs
Go to the documentation of this file.
1
using
Internal.Runtime.CompilerServices
;
2
3
namespace
System.Runtime.CompilerServices
;
4
5
internal
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
{
20
_handle
=
IntPtr
.
Zero
;
21
}
22
}
23
24
internal
unsafe
QCallTypeHandle
(ref
RuntimeTypeHandle
rth)
25
{
26
_ptr
=
Unsafe
.AsPointer(ref rth);
27
_handle
= rth.Value;
28
}
29
}
System.RuntimeType
Definition
RuntimeType.cs:16
System.Runtime.CompilerServices.Unsafe
Definition
Unsafe.cs:6
Internal.Runtime.CompilerServices
Definition
Unsafe.cs:6
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.ExceptionArgument.type
@ type
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
System.RuntimeTypeHandle
Definition
RuntimeTypeHandle.cs:14
System.Runtime.CompilerServices.QCallTypeHandle.QCallTypeHandle
unsafe QCallTypeHandle(ref RuntimeTypeHandle rth)
Definition
QCallTypeHandle.cs:24
System.Runtime.CompilerServices.QCallTypeHandle._handle
IntPtr _handle
Definition
QCallTypeHandle.cs:9
System.Runtime.CompilerServices.QCallTypeHandle._ptr
unsafe void * _ptr
Definition
QCallTypeHandle.cs:7
System.Runtime.CompilerServices.QCallTypeHandle.QCallTypeHandle
unsafe QCallTypeHandle(ref RuntimeType type)
Definition
QCallTypeHandle.cs:11
System.Runtime.CompilerServices.QCallTypeHandle
Definition
QCallTypeHandle.cs:6
source
System.Private.CoreLib
System.Runtime.CompilerServices
QCallTypeHandle.cs
Generated by
1.10.0