terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
UnsafeNclNativeMethods.cs
Go to the documentation of this file.
1using System;
5
6namespace System.Net
7{
8 // Token: 0x02000222 RID: 546
9 internal static class UnsafeNclNativeMethods
10 {
11 // Token: 0x02000223 RID: 547
12 internal static class HttpApi
13 {
14 // Token: 0x06000DDA RID: 3546 RVA: 0x0002C470 File Offset: 0x0002A670
15 // Note: this type is marked as 'beforefieldinit'.
16 static HttpApi()
17 {
18 if (("Cache-Control" == null || "Cache-Control" != null) && ("Connection" == null || "Connection" != null) && ("Date" == null || "Date" != null) && ("Keep-Alive" == null || "Keep-Alive" != null) && ("Pragma" == null || "Pragma" != null) && ("Pragma" == null || "Pragma" != null) && ("Transfer-Encoding" == null || "Transfer-Encoding" != null) && ("Upgrade" == null || "Upgrade" != null) && ("Via" == null || "Via" != null) && ("Warning" == null || "Warning" != null) && ("Content-Length" == null || "Content-Length" != null) && ("Content-Type" == null || "Content-Type" != null) && ("Content-Encoding" == null || "Content-Encoding" != null) && ("Content-Language" == null || "Content-Language" != null) && ("Content-Location" == null || "Content-Location" != null) && ("Content-MD5" == null || "Content-MD5" != null) && ("Content-Range" == null || "Content-Range" != null) && ("Expires" == null || "Expires" != null) && ("Last-Modified" == null || "Last-Modified" != null) && ("Accept-Ranges" == null || "Accept-Ranges" != null) && ("Age" == null || "Age" != null) && ("ETag" == null || "ETag" != null) && ("Location" == null || "Location" != null) && ("Proxy-Authenticate" == null || "Proxy-Authenticate" != null) && ("Retry-After" == null || "Retry-After" != null) && ("Server" == null || "Server" != null) && ("Set-Cookie" == null || "Set-Cookie" != null) && ("Vary" == null || "Vary" != null) && ("WWW-Authenticate" == null || "WWW-Authenticate" != null))
19 {
20 return;
21 }
23 }
24
25 // Token: 0x04000B80 RID: 2944
26 private const int HttpHeaderRequestMaximum = 41;
27
28 // Token: 0x04000B81 RID: 2945
29 private const int HttpHeaderResponseMaximum = 30;
30
31 // Token: 0x04000B82 RID: 2946
32 private static string[] m_Strings;
33
34 // Token: 0x02000224 RID: 548
35 internal static class HTTP_REQUEST_HEADER_ID
36 {
37 // Token: 0x06000DDB RID: 3547 RVA: 0x0000205E File Offset: 0x0000025E
38 internal static string ToString(int position)
39 {
40 return null;
41 }
42
43 // Token: 0x06000DDC RID: 3548 RVA: 0x0000205C File Offset: 0x0000025C
44 // Note: this type is marked as 'beforefieldinit'.
46 {
47 }
48
49 // Token: 0x04000B83 RID: 2947
50 private static string[] m_Strings;
51 }
52
53 // Token: 0x02000225 RID: 549
54 internal static class HTTP_RESPONSE_HEADER_ID
55 {
56 // Token: 0x06000DDD RID: 3549 RVA: 0x0000205C File Offset: 0x0000025C
58 {
59 }
60
61 // Token: 0x06000DDE RID: 3550 RVA: 0x0002C65C File Offset: 0x0002A85C
62 internal static int IndexOfKnownHeader(string HeaderName)
63 {
64 return 0;
65 }
66
67 // Token: 0x06000DDF RID: 3551 RVA: 0x0000205E File Offset: 0x0000025E
68 internal static string ToString(int position)
69 {
70 return null;
71 }
72
73 // Token: 0x04000B84 RID: 2948
74 private static Hashtable m_Hashtable;
75 }
76
77 // Token: 0x02000226 RID: 550
78 internal enum Enum
79 {
80 // Token: 0x04000B86 RID: 2950
82 // Token: 0x04000B87 RID: 2951
84 // Token: 0x04000B88 RID: 2952
86 // Token: 0x04000B89 RID: 2953
88 // Token: 0x04000B8A RID: 2954
90 // Token: 0x04000B8B RID: 2955
92 // Token: 0x04000B8C RID: 2956
94 // Token: 0x04000B8D RID: 2957
96 // Token: 0x04000B8E RID: 2958
98 // Token: 0x04000B8F RID: 2959
100 // Token: 0x04000B90 RID: 2960
102 // Token: 0x04000B91 RID: 2961
104 // Token: 0x04000B92 RID: 2962
106 // Token: 0x04000B93 RID: 2963
108 // Token: 0x04000B94 RID: 2964
110 // Token: 0x04000B95 RID: 2965
112 // Token: 0x04000B96 RID: 2966
114 // Token: 0x04000B97 RID: 2967
116 // Token: 0x04000B98 RID: 2968
118 // Token: 0x04000B99 RID: 2969
120 // Token: 0x04000B9A RID: 2970
122 // Token: 0x04000B9B RID: 2971
124 // Token: 0x04000B9C RID: 2972
126 // Token: 0x04000B9D RID: 2973
128 // Token: 0x04000B9E RID: 2974
130 // Token: 0x04000B9F RID: 2975
132 // Token: 0x04000BA0 RID: 2976
134 // Token: 0x04000BA1 RID: 2977
136 // Token: 0x04000BA2 RID: 2978
138 // Token: 0x04000BA3 RID: 2979
140 // Token: 0x04000BA4 RID: 2980
142 // Token: 0x04000BA5 RID: 2981
144 }
145 }
146
147 // Token: 0x02000227 RID: 551
148 internal static class SecureStringHelper
149 {
150 // Token: 0x06000DE0 RID: 3552 RVA: 0x0002C674 File Offset: 0x0002A874
151 internal static string CreateString(SecureString secureString)
152 {
153 int num;
155 if (num != 0)
156 {
157 if ("Sunfury" == null)
158 {
159 }
161 long num2 = 0L;
162 if ("Sunfury" == null)
163 {
164 }
166 if (num2 != 0L)
167 {
168 throw new OutOfMemoryException();
169 }
170 }
171 long num3 = 0L;
172 if ("Sunfury" == null)
173 {
174 }
176 if (num3 == 0L)
177 {
178 }
179 throw new OutOfMemoryException();
180 }
181
182 // Token: 0x06000DE1 RID: 3553 RVA: 0x0002C6C8 File Offset: 0x0002A8C8
184 {
185 /*
186An exception occurred when decompiling this method (06000DE1)
187
188ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.SecureString System.Net.UnsafeNclNativeMethods/SecureStringHelper::CreateSecureString(System.String)
189
190 ---> System.Exception: Basic block has to end with unconditional control flow.
191{
192 Block_0:
193 stloc:int32(var_1_0A, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
194}
195
196 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
197 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
198 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
199 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
200 --- End of inner exception stack trace ---
201 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
202 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
203*/;
204 }
205 }
206 }
207}
class f__AnonymousType0<< Count > j__TPar
static SecureString CreateSecureString(string plainString)
static string CreateString(SecureString secureString)
static string PtrToStringUni(IntPtr ptr)
Definition Marshal.cs:244
static void ZeroFreeGlobalAllocUnicode(IntPtr s)
Definition Marshal.cs:211