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
MonoIO.cs
Go to the documentation of this file.
1using System;
4
5namespace System.IO
6{
7 // Token: 0x0200056A RID: 1386
8 internal static class MonoIO
9 {
10 // Token: 0x060029A5 RID: 10661 RVA: 0x0005A834 File Offset: 0x00058A34
11 public static Exception GetException(MonoIOError error)
12 {
13 Exception ex;
14 return ex;
15 }
16
17 // Token: 0x060029A6 RID: 10662 RVA: 0x0005A844 File Offset: 0x00058A44
18 public static Exception GetException(string path, MonoIOError error)
19 {
20 return "Too many open files";
21 }
22
23 // Token: 0x060029A7 RID: 10663 RVA: 0x0000207A File Offset: 0x0000027A
24 public static string GetCurrentDirectory([Out] MonoIOError error)
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x060029A8 RID: 10664 RVA: 0x0000207A File Offset: 0x0000027A
30 private unsafe static bool SetFileAttributes(char* path, FileAttributes attrs, [Out] MonoIOError error)
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x060029A9 RID: 10665 RVA: 0x0005A91C File Offset: 0x00058B1C
36 public static bool SetFileAttributes(string path, FileAttributes attrs, [Out] MonoIOError error)
37 {
38 /*
39An exception occurred when decompiling this method (060029A9)
40
41ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.IO.MonoIO::SetFileAttributes(System.String,System.IO.FileAttributes,System.IO.MonoIOError)
42
43 ---> System.Exception: Basic block has to end with unconditional control flow.
44{
45 IL_0000:
46 stloc:int32(var_0_01, ldc.i4:int32(1))
47 stloc:int32(var_2_09, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
48 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
49}
50
51 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
52 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
53 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
54 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
55 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
56 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
57 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
58 --- End of inner exception stack trace ---
59 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
60 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
61*/;
62 }
63
64 // Token: 0x060029AA RID: 10666 RVA: 0x0000207A File Offset: 0x0000027A
65 private static MonoFileType GetFileType(IntPtr handle, [Out] MonoIOError error)
66 {
67 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
68 }
69
70 // Token: 0x060029AB RID: 10667 RVA: 0x0005A938 File Offset: 0x00058B38
71 public static MonoFileType GetFileType(SafeHandle safeHandle, [Out] MonoIOError error)
72 {
73 if (!false)
74 {
75 return (MonoFileType)43155456;
76 }
77 throw new OutOfMemoryException();
78 }
79
80 // Token: 0x060029AC RID: 10668 RVA: 0x0000207A File Offset: 0x0000027A
81 private unsafe static IntPtr Open(char* filename, FileMode mode, FileAccess access, FileShare share, FileOptions options, [Out] MonoIOError error)
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x060029AD RID: 10669 RVA: 0x0005A968 File Offset: 0x00058B68
87 public static IntPtr Open(string filename, FileMode mode, FileAccess access, FileShare share, FileOptions options, [Out] MonoIOError error)
88 {
89 /*
90An exception occurred when decompiling this method (060029AD)
91
92ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IntPtr System.IO.MonoIO::Open(System.String,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.IO.FileOptions,System.IO.MonoIOError)
93
94 ---> System.Exception: Basic block has to end with unconditional control flow.
95{
96 IL_0000:
97 stloc:int32(var_0_01, ldc.i4:int32(1))
98 stloc:int32(var_2_09, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
99 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
100}
101
102 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
103 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
104 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
105 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
106 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
107 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
108 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
109 --- End of inner exception stack trace ---
110 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
111 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
112*/;
113 }
114
115 // Token: 0x060029AE RID: 10670 RVA: 0x0000207A File Offset: 0x0000027A
116 private static bool Cancel_internal(IntPtr handle, [Out] MonoIOError error)
117 {
118 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
119 }
120
121 // Token: 0x060029AF RID: 10671 RVA: 0x0005A984 File Offset: 0x00058B84
122 internal static bool Cancel(SafeHandle safeHandle, [Out] MonoIOError error)
123 {
124 if (safeHandle == null)
125 {
126 return false;
127 }
128 throw new OutOfMemoryException();
129 }
130
131 // Token: 0x060029B0 RID: 10672 RVA: 0x0000207A File Offset: 0x0000027A
132 public static bool Close(IntPtr handle, [Out] MonoIOError error)
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x060029B1 RID: 10673 RVA: 0x0000207A File Offset: 0x0000027A
138 private static int Read(IntPtr handle, byte[] dest, int dest_offset, int count, [Out] MonoIOError error)
139 {
140 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
141 }
142
143 // Token: 0x060029B2 RID: 10674 RVA: 0x0005A9B4 File Offset: 0x00058BB4
144 public static int Read(SafeHandle safeHandle, byte[] dest, int dest_offset, int count, [Out] MonoIOError error)
145 {
146 if (!false)
147 {
148 return 43155456;
149 }
150 throw new OutOfMemoryException();
151 }
152
153 // Token: 0x060029B3 RID: 10675 RVA: 0x0000207A File Offset: 0x0000027A
154 private static int Write(IntPtr handle, [In] byte[] src, int src_offset, int count, [Out] MonoIOError error)
155 {
156 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x060029B4 RID: 10676 RVA: 0x0005A9E4 File Offset: 0x00058BE4
160 public static int Write(SafeHandle safeHandle, byte[] src, int src_offset, int count, [Out] MonoIOError error)
161 {
162 if (!false)
163 {
164 return 43155456;
165 }
166 throw new OutOfMemoryException();
167 }
168
169 // Token: 0x060029B5 RID: 10677 RVA: 0x0000207A File Offset: 0x0000027A
170 private static long Seek(IntPtr handle, long offset, SeekOrigin origin, [Out] MonoIOError error)
171 {
172 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
173 }
174
175 // Token: 0x060029B6 RID: 10678 RVA: 0x0005AA14 File Offset: 0x00058C14
176 public static long Seek(SafeHandle safeHandle, long offset, SeekOrigin origin, [Out] MonoIOError error)
177 {
178 if (!false)
179 {
180 }
181 throw new OutOfMemoryException();
182 }
183
184 // Token: 0x060029B7 RID: 10679 RVA: 0x0000207A File Offset: 0x0000027A
185 private static long GetLength(IntPtr handle, [Out] MonoIOError error)
186 {
187 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
188 }
189
190 // Token: 0x060029B8 RID: 10680 RVA: 0x0005AA44 File Offset: 0x00058C44
191 public static long GetLength(SafeHandle safeHandle, [Out] MonoIOError error)
192 {
193 if (!false)
194 {
195 }
196 throw new OutOfMemoryException();
197 }
198
199 // Token: 0x060029B9 RID: 10681 RVA: 0x0000207A File Offset: 0x0000027A
200 private static bool SetLength(IntPtr handle, long length, [Out] MonoIOError error)
201 {
202 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
203 }
204
205 // Token: 0x060029BA RID: 10682 RVA: 0x0005AA74 File Offset: 0x00058C74
206 public static bool SetLength(SafeHandle safeHandle, long length, [Out] MonoIOError error)
207 {
208 if (!false)
209 {
210 return false;
211 }
212 throw new OutOfMemoryException();
213 }
214
215 // Token: 0x170005FF RID: 1535
216 // (get) Token: 0x060029BB RID: 10683 RVA: 0x0000207A File Offset: 0x0000027A
217 public static IntPtr ConsoleOutput
218 {
219 get
220 {
221 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
222 }
223 }
224
225 // Token: 0x17000600 RID: 1536
226 // (get) Token: 0x060029BC RID: 10684 RVA: 0x0000207A File Offset: 0x0000027A
227 public static IntPtr ConsoleInput
228 {
229 get
230 {
231 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
232 }
233 }
234
235 // Token: 0x17000601 RID: 1537
236 // (get) Token: 0x060029BD RID: 10685 RVA: 0x0000207A File Offset: 0x0000027A
237 public static IntPtr ConsoleError
238 {
239 get
240 {
241 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
242 }
243 }
244
245 // Token: 0x060029BE RID: 10686 RVA: 0x0000207A File Offset: 0x0000027A
246 public static bool CreatePipe([Out] IntPtr read_handle, [Out] IntPtr write_handle, [Out] MonoIOError error)
247 {
248 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
249 }
250
251 // Token: 0x060029BF RID: 10687 RVA: 0x0000207A File Offset: 0x0000027A
253 {
254 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
255 }
256
257 // Token: 0x17000602 RID: 1538
258 // (get) Token: 0x060029C0 RID: 10688 RVA: 0x0000207A File Offset: 0x0000027A
259 public static char VolumeSeparatorChar
260 {
261 get
262 {
263 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
264 }
265 }
266
267 // Token: 0x17000603 RID: 1539
268 // (get) Token: 0x060029C1 RID: 10689 RVA: 0x0000207A File Offset: 0x0000027A
269 public static char DirectorySeparatorChar
270 {
271 get
272 {
273 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
274 }
275 }
276
277 // Token: 0x17000604 RID: 1540
278 // (get) Token: 0x060029C2 RID: 10690 RVA: 0x0000207A File Offset: 0x0000027A
279 public static char AltDirectorySeparatorChar
280 {
281 get
282 {
283 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
284 }
285 }
286
287 // Token: 0x17000605 RID: 1541
288 // (get) Token: 0x060029C3 RID: 10691 RVA: 0x0000207A File Offset: 0x0000027A
289 public static char PathSeparator
290 {
291 get
292 {
293 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
294 }
295 }
296
297 // Token: 0x060029C4 RID: 10692 RVA: 0x0005AAA0 File Offset: 0x00058CA0
298 private static void DumpHandles()
299 {
300 }
301
302 // Token: 0x060029C5 RID: 10693 RVA: 0x0000207A File Offset: 0x0000027A
303 public static bool RemapPath(string path, [Out] string newPath)
304 {
305 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
306 }
307
308 // Token: 0x060029C6 RID: 10694 RVA: 0x0005AAB0 File Offset: 0x00058CB0
309 // Note: this type is marked as 'beforefieldinit'.
310 static MonoIO()
311 {
312 string environmentVariable = Environment.GetEnvironmentVariable("MONO_DUMP_HANDLES_ON_ERROR_TOO_MANY_OPEN_FILES");
313 }
314
315 // Token: 0x04001657 RID: 5719
317
318 // Token: 0x04001658 RID: 5720
319 private static bool dump_handles;
320 }
321}
class f__AnonymousType0<< Count > j__TPar
static string GetEnvironmentVariable(string variable)
static char DirectorySeparatorChar
Definition MonoIO.cs:270
static long GetLength(IntPtr handle, [Out] MonoIOError error)
Definition MonoIO.cs:185
static long Seek(SafeHandle safeHandle, long offset, SeekOrigin origin, [Out] MonoIOError error)
Definition MonoIO.cs:176
static IntPtr ConsoleOutput
Definition MonoIO.cs:218
static bool dump_handles
Definition MonoIO.cs:319
static long GetLength(SafeHandle safeHandle, [Out] MonoIOError error)
Definition MonoIO.cs:191
static char VolumeSeparatorChar
Definition MonoIO.cs:260
static bool DuplicateHandle(IntPtr source_process_handle, IntPtr source_handle, IntPtr target_process_handle, [Out] IntPtr target_handle, int access, int inherit, int options, [Out] MonoIOError error)
Definition MonoIO.cs:252
static bool SetFileAttributes(string path, FileAttributes attrs, [Out] MonoIOError error)
Definition MonoIO.cs:36
static Exception GetException(string path, MonoIOError error)
Definition MonoIO.cs:18
static string GetCurrentDirectory([Out] MonoIOError error)
Definition MonoIO.cs:24
static bool Cancel(SafeHandle safeHandle, [Out] MonoIOError error)
Definition MonoIO.cs:122
static unsafe IntPtr Open(char *filename, FileMode mode, FileAccess access, FileShare share, FileOptions options, [Out] MonoIOError error)
Definition MonoIO.cs:81
static int Read(SafeHandle safeHandle, byte[] dest, int dest_offset, int count, [Out] MonoIOError error)
Definition MonoIO.cs:144
static MonoFileType GetFileType(IntPtr handle, [Out] MonoIOError error)
Definition MonoIO.cs:65
static readonly IntPtr InvalidHandle
Definition MonoIO.cs:316
static bool CreatePipe([Out] IntPtr read_handle, [Out] IntPtr write_handle, [Out] MonoIOError error)
Definition MonoIO.cs:246
static bool RemapPath(string path, [Out] string newPath)
Definition MonoIO.cs:303
static MonoIO()
Definition MonoIO.cs:310
static IntPtr ConsoleInput
Definition MonoIO.cs:228
static void DumpHandles()
Definition MonoIO.cs:298
static bool Cancel_internal(IntPtr handle, [Out] MonoIOError error)
Definition MonoIO.cs:116
static IntPtr Open(string filename, FileMode mode, FileAccess access, FileShare share, FileOptions options, [Out] MonoIOError error)
Definition MonoIO.cs:87
static Exception GetException(MonoIOError error)
Definition MonoIO.cs:11
static char PathSeparator
Definition MonoIO.cs:290
static long Seek(IntPtr handle, long offset, SeekOrigin origin, [Out] MonoIOError error)
Definition MonoIO.cs:170
static int Read(IntPtr handle, byte[] dest, int dest_offset, int count, [Out] MonoIOError error)
Definition MonoIO.cs:138
static MonoFileType GetFileType(SafeHandle safeHandle, [Out] MonoIOError error)
Definition MonoIO.cs:71
static char AltDirectorySeparatorChar
Definition MonoIO.cs:280
static IntPtr ConsoleError
Definition MonoIO.cs:238
static int Write(IntPtr handle, [In] byte[] src, int src_offset, int count, [Out] MonoIOError error)
Definition MonoIO.cs:154
static bool SetLength(IntPtr handle, long length, [Out] MonoIOError error)
Definition MonoIO.cs:200
static unsafe bool SetFileAttributes(char *path, FileAttributes attrs, [Out] MonoIOError error)
Definition MonoIO.cs:30
static int Write(SafeHandle safeHandle, byte[] src, int src_offset, int count, [Out] MonoIOError error)
Definition MonoIO.cs:160
static bool SetLength(SafeHandle safeHandle, long length, [Out] MonoIOError error)
Definition MonoIO.cs:206
static bool Close(IntPtr handle, [Out] MonoIOError error)
Definition MonoIO.cs:132