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
TaskToApm.cs
Go to the documentation of this file.
1using System;
6
8{
9 [global::Cpp2ILInjected.Token(Token = "0x200021A")]
10 internal static class TaskToApm
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x60012E0")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1CA37B4", Offset = "0x1CA37B4", Length = "0xE4")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.CryptoStream), Member = "BeginRead", MemberParameters = new object[]
16 {
17 typeof(byte[]),
18 typeof(int),
19 typeof(int),
20 typeof(global::System.AsyncCallback),
21 typeof(object)
22 }, ReturnType = typeof(global::System.IAsyncResult))]
23 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.CryptoStream), Member = "BeginWrite", MemberParameters = new object[]
24 {
25 typeof(byte[]),
26 typeof(int),
27 typeof(int),
28 typeof(global::System.AsyncCallback),
29 typeof(object)
30 }, ReturnType = typeof(global::System.IAsyncResult))]
31 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.HttpWebRequest", Member = "BeginGetRequestStream", MemberParameters = new object[]
32 {
33 typeof(global::System.AsyncCallback),
34 typeof(object)
35 }, ReturnType = typeof(global::System.IAsyncResult))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.HttpWebRequest", Member = "BeginGetResponse", MemberParameters = new object[]
37 {
38 typeof(global::System.AsyncCallback),
39 typeof(object)
40 }, ReturnType = typeof(global::System.IAsyncResult))]
41 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebConnectionStream", Member = "BeginRead", MemberParameters = new object[]
42 {
43 "System.Byte[]",
44 typeof(int),
45 typeof(int),
46 typeof(global::System.AsyncCallback),
47 typeof(object)
48 }, ReturnType = typeof(global::System.IAsyncResult))]
49 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebConnectionStream", Member = "BeginWrite", MemberParameters = new object[]
50 {
51 "System.Byte[]",
52 typeof(int),
53 typeof(int),
54 typeof(global::System.AsyncCallback),
55 typeof(object)
56 }, ReturnType = typeof(global::System.IAsyncResult))]
57 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebReadStream", Member = "BeginRead", MemberParameters = new object[]
58 {
59 "System.Byte[]",
60 typeof(int),
61 typeof(int),
62 typeof(global::System.AsyncCallback),
63 typeof(object)
64 }, ReturnType = typeof(global::System.IAsyncResult))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "BeginAuthenticateAsClient", MemberParameters = new object[]
66 {
67 typeof(string),
68 "System.Security.Cryptography.X509Certificates.X509CertificateCollection",
69 "System.Security.Authentication.SslProtocols",
70 typeof(bool),
71 typeof(global::System.AsyncCallback),
72 typeof(object)
73 }, ReturnType = typeof(global::System.IAsyncResult))]
74 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "BeginRead", MemberParameters = new object[]
75 {
76 "System.Byte[]",
77 typeof(int),
78 typeof(int),
79 typeof(global::System.AsyncCallback),
80 typeof(object)
81 }, ReturnType = typeof(global::System.IAsyncResult))]
82 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "BeginWrite", MemberParameters = new object[]
83 {
84 "System.Byte[]",
85 typeof(int),
86 typeof(int),
87 typeof(global::System.AsyncCallback),
88 typeof(object)
89 }, ReturnType = typeof(global::System.IAsyncResult))]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.IO.Compression.GZipStream", Member = "BeginRead", MemberParameters = new object[]
91 {
92 "System.Byte[]",
93 typeof(int),
94 typeof(int),
95 typeof(global::System.AsyncCallback),
96 typeof(object)
97 }, ReturnType = typeof(global::System.IAsyncResult))]
98 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.IO.Compression.GZipStream", Member = "BeginWrite", MemberParameters = new object[]
99 {
100 "System.Byte[]",
101 typeof(int),
102 typeof(int),
103 typeof(global::System.AsyncCallback),
104 typeof(object)
105 }, ReturnType = typeof(global::System.IAsyncResult))]
106 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Task), Member = "get_IsCompleted", ReturnType = typeof(bool))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TaskToApm), Member = "InvokeCallbackWhenTaskCompletes", MemberParameters = new object[]
110 {
111 typeof(Task),
112 typeof(global::System.AsyncCallback),
113 typeof(global::System.IAsyncResult)
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
116 public static global::System.IAsyncResult Begin(Task task, global::System.AsyncCallback callback, object state)
117 {
118 throw null;
119 }
120
121 [global::Cpp2ILInjected.Token(Token = "0x60012E1")]
122 [global::Cpp2ILInjected.Address(RVA = "0x1CA3A24", Offset = "0x1CA3A24", Length = "0xE4")]
123 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.CryptoStream), Member = "EndWrite", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(void))]
125 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebConnectionStream", Member = "EndWrite", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(void))]
126 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "EndAuthenticateAsClient", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(void))]
127 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "EndWrite", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.IO.Compression.GZipStream", Member = "EndWrite", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.TaskAwaiter), Member = "GetResult", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentNullException), Member = ".ctor", ReturnType = typeof(void))]
132 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
133 public static void End(global::System.IAsyncResult asyncResult)
134 {
135 throw null;
136 }
137
138 [global::Cpp2ILInjected.Token(Token = "0x60012E2")]
139 [global::Cpp2ILInjected.Address(RVA = "0x15A0B9C", Offset = "0x15A0B9C", Length = "0x10C")]
140 [global::Cpp2ILInjected.CallAnalysis.DeduplicatedMethod]
141 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Security.Cryptography.CryptoStream), Member = "EndRead", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(int))]
143 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebConnectionStream", Member = "EndRead", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(int))]
144 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.WebReadStream", Member = "EndRead", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(int))]
145 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.Net.Security.SslStream", Member = "EndRead", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(int))]
146 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "System.IO.Compression.GZipStream", Member = "EndRead", MemberParameters = new object[] { typeof(global::System.IAsyncResult) }, ReturnType = typeof(int))]
147 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.TaskAwaiter<int>), Member = "GetResult", ReturnType = "TResult")]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentNullException), Member = ".ctor", ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
151 public static TResult End<TResult>(global::System.IAsyncResult asyncResult)
152 {
153 throw null;
154 }
155
156 [global::Cpp2ILInjected.Token(Token = "0x60012E3")]
157 [global::Cpp2ILInjected.Address(RVA = "0x1CA3938", Offset = "0x1CA3938", Length = "0xEC")]
158 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TaskToApm), Member = "Begin", MemberParameters = new object[]
159 {
160 typeof(Task),
161 typeof(global::System.AsyncCallback),
162 typeof(object)
163 }, ReturnType = typeof(global::System.IAsyncResult))]
164 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
165 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.ConfiguredTaskAwaitable), Member = ".ctor", MemberParameters = new object[]
167 {
168 typeof(Task),
169 typeof(bool)
170 }, ReturnType = typeof(void))]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Action), Member = ".ctor", MemberParameters = new object[]
172 {
173 typeof(object),
174 typeof(global::System.IntPtr)
175 }, ReturnType = typeof(void))]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter), Member = "OnCompleted", MemberParameters = new object[] { typeof(global::System.Action) }, ReturnType = typeof(void))]
177 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
178 private static void InvokeCallbackWhenTaskCompletes(Task antecedent, global::System.AsyncCallback callback, global::System.IAsyncResult asyncResult)
179 {
180 throw null;
181 }
182
183 [global::Cpp2ILInjected.Token(Token = "0x200021B")]
184 private sealed class TaskWrapperAsyncResult : global::System.IAsyncResult
185 {
186 [global::Cpp2ILInjected.Token(Token = "0x60012E4")]
187 [global::Cpp2ILInjected.Address(RVA = "0x1CA38FC", Offset = "0x1CA38FC", Length = "0x3C")]
188 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
191 {
192 throw null;
193 }
194
195 [global::Cpp2ILInjected.Token(Token = "0x170001C6")]
197 {
198 [global::Cpp2ILInjected.Token(Token = "0x60012E5")]
199 [global::Cpp2ILInjected.Address(RVA = "0x1CA3B48", Offset = "0x1CA3B48", Length = "0x8")]
200 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
201 get
202 {
203 throw null;
204 }
205 }
206
207 [global::Cpp2ILInjected.Token(Token = "0x170001C7")]
209 {
210 [global::Cpp2ILInjected.Token(Token = "0x60012E6")]
211 [global::Cpp2ILInjected.Address(RVA = "0x1CA3B50", Offset = "0x1CA3B50", Length = "0x8")]
212 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
213 get
214 {
215 throw null;
216 }
217 }
218
219 [global::Cpp2ILInjected.Token(Token = "0x170001C8")]
221 {
222 [global::Cpp2ILInjected.Token(Token = "0x60012E7")]
223 [global::Cpp2ILInjected.Address(RVA = "0x1CA3B58", Offset = "0x1CA3B58", Length = "0x8")]
224 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Task), Member = "get_IsCompleted", ReturnType = typeof(bool))]
226 get
227 {
228 throw null;
229 }
230 }
231
232 [global::Cpp2ILInjected.Token(Token = "0x170001C9")]
234 {
235 [global::Cpp2ILInjected.Token(Token = "0x60012E8")]
236 [global::Cpp2ILInjected.Address(RVA = "0x1CA3B60", Offset = "0x1CA3B60", Length = "0x9C")]
237 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
238 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
239 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
240 get
241 {
242 throw null;
243 }
244 }
245
246 [global::Cpp2ILInjected.Token(Token = "0x4000A1D")]
247 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
249
250 [global::Cpp2ILInjected.Token(Token = "0x4000A1E")]
251 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
252 private readonly object _state;
253
254 [global::Cpp2ILInjected.Token(Token = "0x4000A1F")]
255 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
257 }
258
259 [global::System.Runtime.CompilerServices.CompilerGenerated]
260 [global::Cpp2ILInjected.Token(Token = "0x200021C")]
261 private sealed class <>c__DisplayClass3_0
262 {
263 [global::Cpp2ILInjected.Token(Token = "0x60012E9")]
264 [global::Cpp2ILInjected.Address(RVA = "0x1CA3B0C", Offset = "0x1CA3B0C", Length = "0x8")]
265 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
268 {
269 throw null;
270 }
271
272 [global::Cpp2ILInjected.Token(Token = "0x60012EA")]
273 [global::Cpp2ILInjected.Address(RVA = "0x1CA3BFC", Offset = "0x1CA3BFC", Length = "0x14")]
274 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
275 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
277 {
278 throw null;
279 }
280
281 [global::Cpp2ILInjected.Token(Token = "0x4000A20")]
282 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
283 public global::System.AsyncCallback callback;
284
285 [global::Cpp2ILInjected.Token(Token = "0x4000A21")]
286 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
287 public global::System.IAsyncResult asyncResult;
288 }
289 }
290}
class f__AnonymousType0<< Count > j__TPar
TaskWrapperAsyncResult(Task task, object state, bool completedSynchronously)
Definition TaskToApm.cs:190
static global::System.IAsyncResult Begin(Task task, global::System.AsyncCallback callback, object state)
Definition TaskToApm.cs:116
static void End(global::System.IAsyncResult asyncResult)
Definition TaskToApm.cs:133
static void InvokeCallbackWhenTaskCompletes(Task antecedent, global::System.AsyncCallback callback, global::System.IAsyncResult asyncResult)
Definition TaskToApm.cs:178