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
Decoder.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Text
6{
7 // Token: 0x0200025E RID: 606
9 public abstract class Decoder
10 {
11 // Token: 0x0600147A RID: 5242 RVA: 0x0002B054 File Offset: 0x00029254
12 protected Decoder()
13 {
14 }
15
16 // Token: 0x170001FF RID: 511
17 // (get) Token: 0x0600147B RID: 5243 RVA: 0x0002B068 File Offset: 0x00029268
19 {
20 get
21 {
22 return this._fallback;
23 }
24 }
25
26 // Token: 0x17000200 RID: 512
27 // (get) Token: 0x0600147C RID: 5244 RVA: 0x0002B07C File Offset: 0x0002927C
29 {
30 get
31 {
32 /*
33An exception occurred when decompiling this method (0600147C)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.DecoderFallbackBuffer System.Text.Decoder::get_FallbackBuffer()
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 IL_0016:
40 stfld:DecoderFallbackBuffer(Decoder::_fallbackBuffer, ldloc:Decoder(this), ldloc:DecoderFallback[exp:DecoderFallbackBuffer](var_0))
41}
42
43 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
44 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
45 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
46 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
47 --- End of inner exception stack trace ---
48 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
49 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
50*/;
51 }
52 }
53
54 // Token: 0x17000201 RID: 513
55 // (get) Token: 0x0600147D RID: 5245 RVA: 0x0002B0A8 File Offset: 0x000292A8
57 {
58 get
59 {
60 /*
61An exception occurred when decompiling this method (0600147D)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Text.Decoder::get_InternalHasFallbackBuffer()
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 Block_0:
68 stloc:DecoderFallbackBuffer(var_0_06, ldfld:DecoderFallbackBuffer(Decoder::_fallbackBuffer, ldloc:Decoder(this)))
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80 }
81
82 // Token: 0x0600147E RID: 5246 RVA: 0x0002B0BC File Offset: 0x000292BC
83 public virtual void Reset()
84 {
85 if (!true)
86 {
87 }
88 if (this._fallbackBuffer != null)
89 {
90 return;
91 }
92 }
93
94 // Token: 0x0600147F RID: 5247
95 public abstract int GetCharCount(byte[] bytes, int index, int count);
96
97 // Token: 0x06001480 RID: 5248 RVA: 0x0000207A File Offset: 0x0000027A
98 public virtual int GetCharCount(byte[] bytes, int index, int count, bool flush)
99 {
100 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
101 }
102
103 // Token: 0x06001481 RID: 5249 RVA: 0x0002B0D8 File Offset: 0x000292D8
104 [CLSCompliant(false)]
105 public unsafe virtual int GetCharCount(byte* bytes, int count, bool flush)
106 {
107 /*
108An exception occurred when decompiling this method (06001481)
109
110ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.Decoder::GetCharCount(System.Byte*,System.Int32,System.Boolean)
111
112 ---> System.Exception: Basic block has to end with unconditional control flow.
113{
114 Block_0:
115 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](count)))
116}
117
118 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
119 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
120 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
121 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
122 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
123 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
124 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
125 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
126 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
127 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
128 --- End of inner exception stack trace ---
129 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
130 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
131*/;
132 }
133
134 // Token: 0x06001482 RID: 5250
135 public abstract int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex);
136
137 // Token: 0x06001483 RID: 5251 RVA: 0x0000207A File Offset: 0x0000027A
138 public virtual int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
139 {
140 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
141 }
142
143 // Token: 0x06001484 RID: 5252 RVA: 0x0002B0EC File Offset: 0x000292EC
144 [CLSCompliant(false)]
145 public unsafe virtual int GetChars(byte* bytes, int byteCount, char* chars, int charCount, bool flush)
146 {
147 while (chars != null && bytes == null)
148 {
149 }
150 return "chars";
151 }
152
153 // Token: 0x06001485 RID: 5253 RVA: 0x0000207A File Offset: 0x0000027A
154 public virtual int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool flush)
155 {
156 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x06001486 RID: 5254 RVA: 0x0002B108 File Offset: 0x00029308
160 public virtual void Convert(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int charCount, bool flush, [Out] int bytesUsed, [Out] int charsUsed, [Out] bool completed)
161 {
162 if (chars != null && bytes != null)
163 {
164 return;
165 }
166 }
167
168 // Token: 0x06001487 RID: 5255 RVA: 0x0002B124 File Offset: 0x00029324
169 [CLSCompliant(false)]
170 public unsafe virtual void Convert(byte* bytes, int byteCount, char* chars, int charCount, bool flush, [Out] int bytesUsed, [Out] int charsUsed, [Out] bool completed)
171 {
172 if (bytes == null || chars == null)
173 {
174 return;
175 }
178 charsUsed.m_value = this;
179 if (this._fallbackBuffer != null)
180 {
181 return;
182 }
183 }
184
185 // Token: 0x04000AE4 RID: 2788
187
188 // Token: 0x04000AE5 RID: 2789
190 }
191}
class f__AnonymousType0<< Count > j__TPar
DecoderFallbackBuffer FallbackBuffer
Definition Decoder.cs:29
virtual int GetChars(ReadOnlySpan< byte > bytes, Span< char > chars, bool flush)
Definition Decoder.cs:154
DecoderFallback _fallback
Definition Decoder.cs:186
DecoderFallback Fallback
Definition Decoder.cs:19
virtual unsafe int GetChars(byte *bytes, int byteCount, char *chars, int charCount, bool flush)
Definition Decoder.cs:145
virtual int GetCharCount(byte[] bytes, int index, int count, bool flush)
Definition Decoder.cs:98
virtual void Reset()
Definition Decoder.cs:83
DecoderFallbackBuffer _fallbackBuffer
Definition Decoder.cs:189
bool InternalHasFallbackBuffer
Definition Decoder.cs:57
virtual void Convert(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int charCount, bool flush, [Out] int bytesUsed, [Out] int charsUsed, [Out] bool completed)
Definition Decoder.cs:160
virtual unsafe int GetCharCount(byte *bytes, int count, bool flush)
Definition Decoder.cs:105
virtual unsafe void Convert(byte *bytes, int byteCount, char *chars, int charCount, bool flush, [Out] int bytesUsed, [Out] int charsUsed, [Out] bool completed)
Definition Decoder.cs:170
int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
virtual int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
Definition Decoder.cs:138
int GetCharCount(byte[] bytes, int index, int count)