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
Encoder.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Text
5{
6 // Token: 0x02000269 RID: 617
8 public abstract class Encoder
9 {
10 // Token: 0x060014CD RID: 5325 RVA: 0x0002B7F4 File Offset: 0x000299F4
11 protected Encoder()
12 {
13 }
14
15 // Token: 0x17000210 RID: 528
16 // (get) Token: 0x060014CE RID: 5326 RVA: 0x0002B808 File Offset: 0x00029A08
18 {
19 get
20 {
21 return this._fallback;
22 }
23 }
24
25 // Token: 0x17000211 RID: 529
26 // (get) Token: 0x060014CF RID: 5327 RVA: 0x0002B81C File Offset: 0x00029A1C
28 {
29 get
30 {
31 /*
32An exception occurred when decompiling this method (060014CF)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.EncoderFallbackBuffer System.Text.Encoder::get_FallbackBuffer()
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 IL_0016:
39 stfld:EncoderFallbackBuffer(Encoder::_fallbackBuffer, ldloc:Encoder(this), ldloc:EncoderFallback[exp:EncoderFallbackBuffer](var_0))
40}
41
42 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
43 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
44 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
45 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
46 --- End of inner exception stack trace ---
47 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
48 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
49*/;
50 }
51 }
52
53 // Token: 0x17000212 RID: 530
54 // (get) Token: 0x060014D0 RID: 5328 RVA: 0x0002B848 File Offset: 0x00029A48
56 {
57 get
58 {
59 /*
60An exception occurred when decompiling this method (060014D0)
61
62ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Text.Encoder::get_InternalHasFallbackBuffer()
63
64 ---> System.Exception: Basic block has to end with unconditional control flow.
65{
66 Block_0:
67 stloc:EncoderFallbackBuffer(var_0_06, ldfld:EncoderFallbackBuffer(Encoder::_fallbackBuffer, ldloc:Encoder(this)))
68}
69
70 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
71 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
72 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
73 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
74 --- End of inner exception stack trace ---
75 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
76 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
77*/;
78 }
79 }
80
81 // Token: 0x060014D1 RID: 5329 RVA: 0x0002B85C File Offset: 0x00029A5C
82 public virtual void Reset()
83 {
84 if (this._fallbackBuffer != null)
85 {
86 return;
87 }
88 }
89
90 // Token: 0x060014D2 RID: 5330
91 public abstract int GetByteCount(char[] chars, int index, int count, bool flush);
92
93 // Token: 0x060014D3 RID: 5331 RVA: 0x0002B874 File Offset: 0x00029A74
94 [CLSCompliant(false)]
95 public unsafe virtual int GetByteCount(char* chars, int count, bool flush)
96 {
97 /*
98An exception occurred when decompiling this method (060014D3)
99
100ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.Encoder::GetByteCount(System.Char*,System.Int32,System.Boolean)
101
102 ---> System.Exception: Basic block has to end with unconditional control flow.
103{
104 Block_0:
105 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](count)))
106}
107
108 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
109 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
110 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
111 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
112 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
113 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
114 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
115 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
116 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
117 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
118 --- End of inner exception stack trace ---
119 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
120 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
121*/;
122 }
123
124 // Token: 0x060014D4 RID: 5332
125 public abstract int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, bool flush);
126
127 // Token: 0x060014D5 RID: 5333 RVA: 0x0002B888 File Offset: 0x00029A88
128 [CLSCompliant(false)]
129 public unsafe virtual int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, bool flush)
130 {
131 while (bytes != null && chars == null)
132 {
133 }
134 return "bytes";
135 }
136
137 // Token: 0x060014D6 RID: 5334 RVA: 0x0002B8A4 File Offset: 0x00029AA4
138 public virtual void Convert(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, int byteCount, bool flush, [Out] int charsUsed, [Out] int bytesUsed, [Out] bool completed)
139 {
140 if (bytes != null && chars != null)
141 {
142 return;
143 }
144 }
145
146 // Token: 0x060014D7 RID: 5335 RVA: 0x0002B8C0 File Offset: 0x00029AC0
147 [CLSCompliant(false)]
148 public unsafe virtual void Convert(char* chars, int charCount, byte* bytes, int byteCount, bool flush, [Out] int charsUsed, [Out] int bytesUsed, [Out] bool completed)
149 {
150 if (chars == null || bytes == null)
151 {
152 return;
153 }
156 bytesUsed.m_value = this;
157 if (this._fallbackBuffer != null)
158 {
159 return;
160 }
161 }
162
163 // Token: 0x04000AFC RID: 2812
165
166 // Token: 0x04000AFD RID: 2813
168 }
169}
class f__AnonymousType0<< Count > j__TPar
virtual unsafe int GetByteCount(char *chars, int count, bool flush)
Definition Encoder.cs:95
bool InternalHasFallbackBuffer
Definition Encoder.cs:56
virtual unsafe void Convert(char *chars, int charCount, byte *bytes, int byteCount, bool flush, [Out] int charsUsed, [Out] int bytesUsed, [Out] bool completed)
Definition Encoder.cs:148
int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, bool flush)
virtual void Reset()
Definition Encoder.cs:82
EncoderFallbackBuffer _fallbackBuffer
Definition Encoder.cs:167
EncoderFallback _fallback
Definition Encoder.cs:164
virtual unsafe int GetBytes(char *chars, int charCount, byte *bytes, int byteCount, bool flush)
Definition Encoder.cs:129
virtual void Convert(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, int byteCount, bool flush, [Out] int charsUsed, [Out] int bytesUsed, [Out] bool completed)
Definition Encoder.cs:138
EncoderFallbackBuffer FallbackBuffer
Definition Encoder.cs:28
EncoderFallback Fallback
Definition Encoder.cs:18
int GetByteCount(char[] chars, int index, int count, bool flush)