terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
SafeStringMarshal.cs
Go to the documentation of this file.
1using System;
6
7namespace Mono
8{
9 [global::Cpp2ILInjected.Token(Token = "0x2000028")]
10 internal struct SafeStringMarshal : global::System.IDisposable
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x6000066")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1AAB758", Offset = "0x1AAB758", Length = "0x4")]
14 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
15 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
16 [MethodImpl(4096)]
17 private static extern global::System.IntPtr StringToUtf8_icall(ref string str);
18
19 [global::Cpp2ILInjected.Token(Token = "0x6000067")]
20 [global::Cpp2ILInjected.Address(RVA = "0x1AAB75C", Offset = "0x1AAB75C", Length = "0x18")]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
22 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
23 public static global::System.IntPtr StringToUtf8(string str)
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x6000068")]
29 [global::Cpp2ILInjected.Address(RVA = "0x1AAB774", Offset = "0x1AAB774", Length = "0x4")]
30 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
31 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
32 [MethodImpl(4096)]
33 public static extern void GFree(global::System.IntPtr ptr);
34
35 [global::Cpp2ILInjected.Token(Token = "0x6000069")]
36 [global::Cpp2ILInjected.Address(RVA = "0x1AAB540", Offset = "0x1AAB540", Length = "0x60")]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetMethodsByName", MemberParameters = new object[]
38 {
39 typeof(string),
40 typeof(global::System.Reflection.BindingFlags),
41 typeof(global::System.RuntimeType.MemberListType),
42 typeof(global::System.RuntimeType)
43 }, ReturnType = typeof(global::System.Reflection.RuntimeMethodInfo[]))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetPropertiesByName", MemberParameters = new object[]
45 {
46 typeof(string),
47 typeof(global::System.Reflection.BindingFlags),
48 typeof(global::System.RuntimeType.MemberListType),
49 typeof(global::System.RuntimeType)
50 }, ReturnType = typeof(global::System.Reflection.RuntimePropertyInfo[]))]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetFields_internal", MemberParameters = new object[]
52 {
53 typeof(string),
54 typeof(global::System.Reflection.BindingFlags),
55 typeof(global::System.RuntimeType.MemberListType),
56 typeof(global::System.RuntimeType)
57 }, ReturnType = typeof(global::System.Reflection.RuntimeFieldInfo[]))]
58 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetEvents_internal", MemberParameters = new object[]
59 {
60 typeof(string),
61 typeof(global::System.Reflection.BindingFlags),
62 typeof(global::System.RuntimeType.MemberListType),
63 typeof(global::System.RuntimeType)
64 }, ReturnType = typeof(global::System.Reflection.RuntimeEventInfo[]))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetNestedTypes_internal", MemberParameters = new object[]
66 {
67 typeof(string),
68 typeof(global::System.Reflection.BindingFlags),
69 typeof(global::System.RuntimeType.MemberListType)
70 }, ReturnType = typeof(global::System.RuntimeType[]))]
71 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
72 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
73 public SafeStringMarshal(string str)
74 {
75 throw null;
76 }
77
78 [global::Cpp2ILInjected.Token(Token = "0x1700000F")]
79 public global::System.IntPtr Value
80 {
81 [global::Cpp2ILInjected.Token(Token = "0x600006A")]
82 [global::Cpp2ILInjected.Address(RVA = "0x1AAB778", Offset = "0x1AAB778", Length = "0x80")]
83 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetMethodsByName", MemberParameters = new object[]
84 {
85 typeof(string),
86 typeof(global::System.Reflection.BindingFlags),
87 typeof(global::System.RuntimeType.MemberListType),
88 typeof(global::System.RuntimeType)
89 }, ReturnType = typeof(global::System.Reflection.RuntimeMethodInfo[]))]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetPropertiesByName", MemberParameters = new object[]
91 {
92 typeof(string),
93 typeof(global::System.Reflection.BindingFlags),
94 typeof(global::System.RuntimeType.MemberListType),
95 typeof(global::System.RuntimeType)
96 }, ReturnType = typeof(global::System.Reflection.RuntimePropertyInfo[]))]
97 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetFields_internal", MemberParameters = new object[]
98 {
99 typeof(string),
100 typeof(global::System.Reflection.BindingFlags),
101 typeof(global::System.RuntimeType.MemberListType),
102 typeof(global::System.RuntimeType)
103 }, ReturnType = typeof(global::System.Reflection.RuntimeFieldInfo[]))]
104 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetEvents_internal", MemberParameters = new object[]
105 {
106 typeof(string),
107 typeof(global::System.Reflection.BindingFlags),
108 typeof(global::System.RuntimeType.MemberListType),
109 typeof(global::System.RuntimeType)
110 }, ReturnType = typeof(global::System.Reflection.RuntimeEventInfo[]))]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetNestedTypes_internal", MemberParameters = new object[]
112 {
113 typeof(string),
114 typeof(global::System.Reflection.BindingFlags),
115 typeof(global::System.RuntimeType.MemberListType)
116 }, ReturnType = typeof(global::System.RuntimeType[]))]
117 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Environment), Member = "internalGetEnvironmentVariable", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
118 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Reflection.AssemblyName), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 7)]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IntPtr), Member = "op_Equality", MemberParameters = new object[]
121 {
122 typeof(global::System.IntPtr),
123 typeof(global::System.IntPtr)
124 }, ReturnType = typeof(bool))]
125 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
126 get
127 {
128 throw null;
129 }
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x600006B")]
133 [global::Cpp2ILInjected.Address(RVA = "0x1AAB7F8", Offset = "0x1AAB7F8", Length = "0x74")]
134 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetMethodsByName", MemberParameters = new object[]
135 {
136 typeof(string),
137 typeof(global::System.Reflection.BindingFlags),
138 typeof(global::System.RuntimeType.MemberListType),
139 typeof(global::System.RuntimeType)
140 }, ReturnType = typeof(global::System.Reflection.RuntimeMethodInfo[]))]
141 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetPropertiesByName", MemberParameters = new object[]
142 {
143 typeof(string),
144 typeof(global::System.Reflection.BindingFlags),
145 typeof(global::System.RuntimeType.MemberListType),
146 typeof(global::System.RuntimeType)
147 }, ReturnType = typeof(global::System.Reflection.RuntimePropertyInfo[]))]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetFields_internal", MemberParameters = new object[]
149 {
150 typeof(string),
151 typeof(global::System.Reflection.BindingFlags),
152 typeof(global::System.RuntimeType.MemberListType),
153 typeof(global::System.RuntimeType)
154 }, ReturnType = typeof(global::System.Reflection.RuntimeFieldInfo[]))]
155 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetEvents_internal", MemberParameters = new object[]
156 {
157 typeof(string),
158 typeof(global::System.Reflection.BindingFlags),
159 typeof(global::System.RuntimeType.MemberListType),
160 typeof(global::System.RuntimeType)
161 }, ReturnType = typeof(global::System.Reflection.RuntimeEventInfo[]))]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.RuntimeType), Member = "GetNestedTypes_internal", MemberParameters = new object[]
163 {
164 typeof(string),
165 typeof(global::System.Reflection.BindingFlags),
166 typeof(global::System.RuntimeType.MemberListType)
167 }, ReturnType = typeof(global::System.RuntimeType[]))]
168 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Environment), Member = "internalGetEnvironmentVariable", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
169 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Reflection.AssemblyName), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
170 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 21)]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.IntPtr), Member = "op_Inequality", MemberParameters = new object[]
172 {
173 typeof(global::System.IntPtr),
174 typeof(global::System.IntPtr)
175 }, ReturnType = typeof(bool))]
176 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
177 public void Dispose()
178 {
179 throw null;
180 }
181
182 [global::Cpp2ILInjected.Token(Token = "0x40000BB")]
183 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
184 private readonly string str;
185
186 [global::Cpp2ILInjected.Token(Token = "0x40000BC")]
187 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
188 private global::System.IntPtr marshaled_string;
189 }
190}
class f__AnonymousType0<< Count > j__TPar
global::System.IntPtr Value
static global::System.IntPtr StringToUtf8_icall(ref string str)
static global::System.IntPtr StringToUtf8(string str)
global::System.IntPtr marshaled_string
static void GFree(global::System.IntPtr ptr)