Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LoaderAllocatorScout.cs
Go to the documentation of this file.
1
using
System.Runtime.InteropServices
;
2
3
namespace
System.Reflection
;
4
5
internal
sealed
class
LoaderAllocatorScout
6
{
7
internal
IntPtr
m_nativeLoaderAllocator
;
8
9
[DllImport(
"QCall"
,
CharSet
=
CharSet
.Unicode)]
10
private
static
extern
bool
Destroy
(
IntPtr
nativeLoaderAllocator);
11
12
~LoaderAllocatorScout
()
13
{
14
if
(!(
m_nativeLoaderAllocator
==
IntPtr
.
Zero
) && !
Destroy
(
m_nativeLoaderAllocator
))
15
{
16
GC
.
ReRegisterForFinalize
(
this
);
17
}
18
}
19
}
System.GC.ReRegisterForFinalize
static void ReRegisterForFinalize(object obj)
Definition
GC.cs:214
System.GC
Definition
GC.cs:8
System.Reflection.LoaderAllocatorScout.m_nativeLoaderAllocator
IntPtr m_nativeLoaderAllocator
Definition
LoaderAllocatorScout.cs:7
System.Reflection.LoaderAllocatorScout.~LoaderAllocatorScout
~LoaderAllocatorScout()
Definition
LoaderAllocatorScout.cs:12
System.Reflection.LoaderAllocatorScout.Destroy
static bool Destroy(IntPtr nativeLoaderAllocator)
System.Reflection.LoaderAllocatorScout
Definition
LoaderAllocatorScout.cs:6
System.Reflection
Definition
ICustomTypeProvider.cs:1
System.Runtime.InteropServices.CharSet
CharSet
Definition
CharSet.cs:4
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.IntPtr.Zero
static readonly IntPtr Zero
Definition
IntPtr.cs:18
System.IntPtr
Definition
IntPtr.cs:14
source
System.Private.CoreLib
System.Reflection
LoaderAllocatorScout.cs
Generated by
1.10.0