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
InternalEncoderBestFitFallbackBuffer.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Text
6{
7 // Token: 0x0200026B RID: 619
9 {
10 // Token: 0x17000214 RID: 532
11 // (get) Token: 0x060014DD RID: 5341 RVA: 0x0000207A File Offset: 0x0000027A
12 private static object InternalSyncObject
13 {
14 get
15 {
16 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
17 }
18 }
19
20 // Token: 0x060014DE RID: 5342 RVA: 0x0002B950 File Offset: 0x00029B50
22 {
23 long num = 0L;
24 base..ctor();
26 if (fallback._arrayBestFit == null)
27 {
31 if (oFallback._arrayBestFit != null)
32 {
33 return;
34 }
35 long num2 = 0L;
38 if (num2 != 0L)
39 {
40 throw new OutOfMemoryException();
41 }
42 }
43 }
44
45 // Token: 0x060014DF RID: 5343 RVA: 0x0002B9C8 File Offset: 0x00029BC8
46 public override bool Fallback(char charUnknown, int index)
47 {
48 char c = this.TryBestFit(charUnknown);
49 this._cBestFit = '?';
50 return true;
51 }
52
53 // Token: 0x060014E0 RID: 5344 RVA: 0x0002B9E8 File Offset: 0x00029BE8
54 public override bool Fallback(char charUnknownHigh, char charUnknownLow, int index)
55 {
56 if (!true)
57 {
58 }
59 bool flag = char.IsHighSurrogate(charUnknownHigh);
60 if (!true)
61 {
62 }
63 bool flag2 = char.IsLowSurrogate(charUnknownLow);
64 this._cBestFit = '?';
65 return true;
66 }
67
68 // Token: 0x060014E1 RID: 5345 RVA: 0x0002BA18 File Offset: 0x00029C18
69 public override char GetNextChar()
70 {
71 int iCount = this._iCount;
72 this._iCount = iCount;
73 this._iCount = iCount;
74 return this._cBestFit;
75 }
76
77 // Token: 0x060014E2 RID: 5346 RVA: 0x0002BA44 File Offset: 0x00029C44
78 public override bool MovePrevious()
79 {
80 /*
81An exception occurred when decompiling this method (060014E2)
82
83ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Text.InternalEncoderBestFitFallbackBuffer::MovePrevious()
84
85 ---> System.Exception: Basic block has to end with unconditional control flow.
86{
87 Block_0:
88 stloc:int32(var_0_06, ldfld:int32(InternalEncoderBestFitFallbackBuffer::_iCount, ldloc:InternalEncoderBestFitFallbackBuffer(this)))
89 stfld:int32(InternalEncoderBestFitFallbackBuffer::_iCount, ldloc:InternalEncoderBestFitFallbackBuffer(this), ldloc:int32(var_0_06))
90 stloc:int32(var_1_14, ldfld:int32(InternalEncoderBestFitFallbackBuffer::_iSize, ldloc:InternalEncoderBestFitFallbackBuffer(this)))
91}
92
93 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
94 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
95 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
96 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
97 --- End of inner exception stack trace ---
98 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
99 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
100*/;
101 }
102
103 // Token: 0x17000215 RID: 533
104 // (get) Token: 0x060014E3 RID: 5347 RVA: 0x0002BA68 File Offset: 0x00029C68
105 public override int Remaining
106 {
107 get
108 {
109 /*
110An exception occurred when decompiling this method (060014E3)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.InternalEncoderBestFitFallbackBuffer::get_Remaining()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:int32(var_0_06, ldfld:int32(InternalEncoderBestFitFallbackBuffer::_iCount, ldloc:InternalEncoderBestFitFallbackBuffer(this)))
118}
119
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 1852
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129 }
130
131 // Token: 0x060014E4 RID: 5348 RVA: 0x0002BA7C File Offset: 0x00029C7C
132 public override void Reset()
133 {
134 }
135
136 // Token: 0x060014E5 RID: 5349 RVA: 0x0002BA8C File Offset: 0x00029C8C
137 private char TryBestFit(char cUnknown)
138 {
139 /*
140An exception occurred when decompiling this method (060014E5)
141
142ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char System.Text.InternalEncoderBestFitFallbackBuffer::TryBestFit(System.Char)
143
144 ---> System.Exception: Basic block has to end with unconditional control flow.
145{
146 Block_0:
147 stloc:char[](var_0_0B, ldfld:char[](InternalEncoderBestFitFallback::_arrayBestFit, ldfld:InternalEncoderBestFitFallback(InternalEncoderBestFitFallbackBuffer::_oFallback, ldloc:InternalEncoderBestFitFallbackBuffer(this))))
148}
149
150 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
151 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
152 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
153 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
154 --- End of inner exception stack trace ---
155 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
156 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
157*/;
158 }
159
160 // Token: 0x04000B00 RID: 2816
161 private char _cBestFit;
162
163 // Token: 0x04000B01 RID: 2817
165
166 // Token: 0x04000B02 RID: 2818
167 private int _iCount;
168
169 // Token: 0x04000B03 RID: 2819
170 private int _iSize;
171
172 // Token: 0x04000B04 RID: 2820
173 private static object s_InternalSyncObject;
174 }
175}
class f__AnonymousType0<< Count > j__TPar
InternalEncoderBestFitFallbackBuffer(InternalEncoderBestFitFallback fallback)
override bool Fallback(char charUnknownHigh, char charUnknownLow, int index)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11