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
FileSystemEntry.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000574 RID: 1396
8 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
9 public ref struct FileSystemEntry
10 {
11 // Token: 0x06002A09 RID: 10761 RVA: 0x0005B698 File Offset: 0x00059898
13 {
14 /*
15An exception occurred when decompiling this method (06002A09)
16
17ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.FileAttributes System.IO.Enumeration.FileSystemEntry::Initialize(System.IO.Enumeration.FileSystemEntry,Interop/Sys/DirectoryEntry,System.ReadOnlySpan`1<System.Char>,System.ReadOnlySpan`1<System.Char>,System.ReadOnlySpan`1<System.Char>,System.Span`1<System.Char>)
18
19 ---> System.Exception: Basic block has to end with unconditional control flow.
20{
21 IL_0006:
22 brtrue(IL_0000, ldc.i4:bool(1))
23}
24
25 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
26 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
27 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
28 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
29 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
30 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
31 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
32 --- End of inner exception stack trace ---
33 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
34 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
35*/;
36 }
37
38 // Token: 0x17000606 RID: 1542
39 // (get) Token: 0x06002A0A RID: 10762 RVA: 0x0005B6B0 File Offset: 0x000598B0
41 {
42 get
43 {
44 /*
45An exception occurred when decompiling this method (06002A0A)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ReadOnlySpan`1<System.Char> System.IO.Enumeration.FileSystemEntry::get_FullPath()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0058:
52 stloc:int32(var_9_63, ldfld:int32(Span`1::_length, ldfld:valuetype System.Span`1<char>[exp:valuetype System.Span`1&](FileSystemEntry::_pathBuffer, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this))))
53 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
54 stloc:valuetype System.Span`1<char>(var_11_73, ldfld:valuetype System.Span`1<char>(FileSystemEntry::_pathBuffer, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this)))
55 stfld:valuetype System.ReadOnlySpan`1<char>(FileSystemEntry::_fullPath, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this), ldloc:valuetype System.Span`1<char>[exp:valuetype System.ReadOnlySpan`1<char>](var_11_73))
56 stfld:int32(ReadOnlySpan`1::_length, ldfld:valuetype System.ReadOnlySpan`1<char>[exp:valuetype System.ReadOnlySpan`1&](FileSystemEntry::_fullPath, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this)), ldloc:valuetype System.ReadOnlySpan`1<char>[exp:int32](var_3_2A))
57}
58
59 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
60 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
61 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
62 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
63 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
64 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
65 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
66 --- End of inner exception stack trace ---
67 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
68 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
69*/;
70 }
71 }
72
73 // Token: 0x17000607 RID: 1543
74 // (get) Token: 0x06002A0B RID: 10763 RVA: 0x0005B748 File Offset: 0x00059948
76 {
77 get
78 {
79 if (true && this._fileName._length == 0)
80 {
83 }
84 ReadOnlySpan<char> fileName = this._fileName;
85 int length = this._fileName._length;
86 return fileName;
87 }
88 }
89
90 // Token: 0x17000608 RID: 1544
91 // (get) Token: 0x06002A0C RID: 10764 RVA: 0x0005B780 File Offset: 0x00059980
92 // (set) Token: 0x06002A0D RID: 10765 RVA: 0x0005B7A4 File Offset: 0x000599A4
94 {
96 readonly get
97 {
100 return readOnlySpan;
101 }
103 private set
104 {
106 }
107 }
108
109 // Token: 0x17000609 RID: 1545
110 // (get) Token: 0x06002A0E RID: 10766 RVA: 0x0005B7B8 File Offset: 0x000599B8
111 // (set) Token: 0x06002A0F RID: 10767 RVA: 0x0005B7DC File Offset: 0x000599DC
113 {
115 readonly get
116 {
118 int length = this.<RootDirectory>k__BackingField._length;
119 return readOnlySpan;
120 }
122 private set
123 {
125 }
126 }
127
128 // Token: 0x1700060A RID: 1546
129 // (get) Token: 0x06002A10 RID: 10768 RVA: 0x0005B7F0 File Offset: 0x000599F0
130 // (set) Token: 0x06002A11 RID: 10769 RVA: 0x0005B814 File Offset: 0x00059A14
132 {
134 readonly get
135 {
137 int length = this.<OriginalRootDirectory>k__BackingField._length;
138 return readOnlySpan;
139 }
141 private set
142 {
144 }
145 }
146
147 // Token: 0x1700060B RID: 1547
148 // (get) Token: 0x06002A12 RID: 10770 RVA: 0x0005B828 File Offset: 0x00059A28
150 {
151 get
152 {
153 /*
154An exception occurred when decompiling this method (06002A12)
155
156ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.FileAttributes System.IO.Enumeration.FileSystemEntry::get_Attributes()
157
158 ---> System.Exception: Basic block has to end with unconditional control flow.
159{
160 Block_0:
161 stloc:FileAttributes(var_0_06, ldfld:FileAttributes(FileSystemEntry::_initialAttributes, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this)))
162 stloc:valuetype System.ReadOnlySpan`1<char>(var_1_0D, callgetter:ReadOnlySpan`1[exp:valuetype System.ReadOnlySpan`1<char>](FileSystemEntry::get_FullPath, ldloc:valuetype System.IO.Enumeration.FileSystemEntry&(this)))
163}
164
165 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
166 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
167 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
168 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
169 --- End of inner exception stack trace ---
170 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
171 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
172*/;
173 }
174 }
175
176 // Token: 0x1700060C RID: 1548
177 // (get) Token: 0x06002A13 RID: 10771 RVA: 0x0005B844 File Offset: 0x00059A44
178 public bool IsDirectory
179 {
180 get
181 {
182 return this._status.<InitiallyDirectory>k__BackingField;
183 }
184 }
185
186 // Token: 0x06002A14 RID: 10772 RVA: 0x0005B85C File Offset: 0x00059A5C
187 public string ToSpecifiedFullPath()
188 {
194 int length3 = this.<OriginalRootDirectory>k__BackingField._length;
195 if (length == 0)
196 {
197 }
199 if (length == 0)
200 {
201 }
205 int length4 = this.<OriginalRootDirectory>k__BackingField._length;
206 ReadOnlySpan<char> fileName = this.FileName;
207 if (length == 0)
208 {
209 }
210 string text;
211 return text;
212 }
213
214 // Token: 0x0400168B RID: 5771
216
217 // Token: 0x0400168C RID: 5772
219
220 // Token: 0x0400168D RID: 5773
222
223 // Token: 0x0400168E RID: 5774
225
226 // Token: 0x0400168F RID: 5775
228
229 // Token: 0x04001690 RID: 5776
230 [FixedBuffer(typeof(char), 256)]
232
233 // Token: 0x04001691 RID: 5777
235
236 // Token: 0x04001692 RID: 5778
239
240 // Token: 0x04001693 RID: 5779
243
244 // Token: 0x04001694 RID: 5780
247
248 // Token: 0x02000575 RID: 1397
251 [StructLayout(0, Size = 512)]
253 {
254 // Token: 0x04001695 RID: 5781
255 public char FixedElementField;
256 }
257 }
258}
class f__AnonymousType0<< Count > j__TPar
static bool EndsInDirectorySeparator(ReadOnlySpan< char > path)
static bool StartsWithDirectorySeparator(ReadOnlySpan< char > path)
static void ThrowArgumentOutOfRangeException()
ReadOnlySpan< char >< Directory > k__BackingField
ReadOnlySpan< char >< OriginalRootDirectory > k__BackingField
static FileAttributes Initialize(FileSystemEntry entry, Interop.Sys.DirectoryEntry directoryEntry, ReadOnlySpan< char > directory, ReadOnlySpan< char > rootDirectory, ReadOnlySpan< char > originalRootDirectory, Span< char > pathBuffer)
Interop.Sys.DirectoryEntry _directoryEntry
FileSystemEntry.< _fileNameBuffer > e__FixedBuffer _fileNameBuffer
ReadOnlySpan< char >< RootDirectory > k__BackingField
readonly int _length