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
PathInternal.cs
Go to the documentation of this file.
1using System;
3
4namespace System.IO
5{
6 // Token: 0x0200053A RID: 1338
7 internal static class PathInternal
8 {
9 // Token: 0x06002776 RID: 10102 RVA: 0x000558A4 File Offset: 0x00053AA4
10 internal static int GetRootLength(ReadOnlySpan<char> path)
11 {
12 }
13
14 // Token: 0x06002777 RID: 10103 RVA: 0x0000207A File Offset: 0x0000027A
15 internal static bool IsDirectorySeparator(char c)
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19
20 // Token: 0x06002778 RID: 10104 RVA: 0x000558B4 File Offset: 0x00053AB4
22 {
23 }
24
25 // Token: 0x06002779 RID: 10105 RVA: 0x000558C4 File Offset: 0x00053AC4
27 {
28 }
29
30 // Token: 0x0600277A RID: 10106 RVA: 0x000558D4 File Offset: 0x00053AD4
31 internal static string TrimEndingDirectorySeparator(string path)
32 {
33 if (!true)
34 {
35 }
36 if (!true)
37 {
38 }
39 string text;
40 return text;
41 }
42
43 // Token: 0x0600277B RID: 10107 RVA: 0x000558F4 File Offset: 0x00053AF4
45 {
46 /*
47An exception occurred when decompiling this method (0600277B)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ReadOnlySpan`1<System.Char> System.IO.PathInternal::TrimEndingDirectorySeparator(System.ReadOnlySpan`1<System.Char>)
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 Block_0:
54 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
55}
56
57 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
58 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
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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
64*/;
65 }
66
67 // Token: 0x0600277C RID: 10108 RVA: 0x00055914 File Offset: 0x00053B14
68 internal static bool IsRoot(ReadOnlySpan<char> path)
69 {
70 /*
71An exception occurred when decompiling this method (0600277C)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.IO.PathInternal::IsRoot(System.ReadOnlySpan`1<System.Char>)
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 IL_0000:
78 brtrue(IL_0000, ldc.i4:bool(1))
79}
80
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 --- End of inner exception stack trace ---
89 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
90 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
91*/;
92 }
93
94 // Token: 0x170005AF RID: 1455
95 // (get) Token: 0x0600277D RID: 10109 RVA: 0x00055924 File Offset: 0x00053B24
96 internal static bool IsCaseSensitive
97 {
98 get
99 {
100 if (!true)
101 {
102 }
103 return true;
104 }
105 }
106
107 // Token: 0x0600277E RID: 10110 RVA: 0x00055938 File Offset: 0x00053B38
108 private static bool GetIsCaseSensitive()
109 {
110 if (!true)
111 {
112 }
113 string tempPath = Path.GetTempPath();
114 string text = Guid.NewGuid().ToString("N");
115 string text2 = "CASESENSITIVETEST" + "N";
116 bool flag = File.Exists(Path.Combine(tempPath, text2).ToLowerInvariant());
117 long num = 0L;
118 int num2 = 2;
119 if (num != 0L || num2 == 0)
120 {
121 }
122 throw new OutOfMemoryException();
123 }
124
125 // Token: 0x0600277F RID: 10111 RVA: 0x000559B8 File Offset: 0x00053BB8
126 public static bool IsPartiallyQualified(string path)
127 {
128 }
129
130 // Token: 0x06002780 RID: 10112 RVA: 0x000559C8 File Offset: 0x00053BC8
131 // Note: this type is marked as 'beforefieldinit'.
136
137 // Token: 0x0400158D RID: 5517
138 private static readonly bool s_isCaseSensitive;
139 }
140}
class f__AnonymousType0<< Count > j__TPar
static bool Exists(string path)
Definition File.cs:86
static int GetRootLength(ReadOnlySpan< char > path)
static bool IsCaseSensitive
static bool EndsInDirectorySeparator(ReadOnlySpan< char > path)
static string TrimEndingDirectorySeparator(string path)
static bool IsDirectorySeparator(char c)
static bool StartsWithDirectorySeparator(ReadOnlySpan< char > path)
static ReadOnlySpan< char > TrimEndingDirectorySeparator(ReadOnlySpan< char > path)
static bool IsPartiallyQualified(string path)
static readonly bool s_isCaseSensitive
static bool IsRoot(ReadOnlySpan< char > path)
static bool GetIsCaseSensitive()
static string Combine(string path1, string path2)
Definition Path.cs:41
static string GetTempPath()
Definition Path.cs:256
static Guid NewGuid()
Definition Guid.cs:15
override string ToString()
Definition Guid.cs:283