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
InternalDecoderBestFitFallbackBuffer.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Text
6{
7 // Token: 0x02000260 RID: 608
9 {
10 // Token: 0x17000203 RID: 515
11 // (get) Token: 0x0600148D RID: 5261 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: 0x0600148E RID: 5262 RVA: 0x0002B1BC File Offset: 0x000293BC
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: 0x0600148F RID: 5263 RVA: 0x0002B234 File Offset: 0x00029434
46 public override bool Fallback(byte[] bytesUnknown, int index)
47 {
48 char c = this.TryBestFit(bytesUnknown);
52 return true;
53 }
54
55 // Token: 0x06001490 RID: 5264 RVA: 0x0002B264 File Offset: 0x00029464
56 public override char GetNextChar()
57 {
58 int iCount = this._iCount;
59 this._iCount = iCount;
60 this._iCount = iCount;
61 return this._cBestFit;
62 }
63
64 // Token: 0x17000204 RID: 516
65 // (get) Token: 0x06001491 RID: 5265 RVA: 0x0002B290 File Offset: 0x00029490
66 public override int Remaining
67 {
68 get
69 {
70 /*
71An exception occurred when decompiling this method (06001491)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.InternalDecoderBestFitFallbackBuffer::get_Remaining()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:int32(var_0_06, ldfld:int32(InternalDecoderBestFitFallbackBuffer::_iCount, ldloc:InternalDecoderBestFitFallbackBuffer(this)))
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.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
83 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
84 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
85 --- End of inner exception stack trace ---
86 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
87 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
88*/;
89 }
90 }
91
92 // Token: 0x06001492 RID: 5266 RVA: 0x0002B2A4 File Offset: 0x000294A4
93 public override void Reset()
94 {
95 }
96
97 // Token: 0x06001493 RID: 5267 RVA: 0x0002B2B4 File Offset: 0x000294B4
98 internal unsafe override int InternalFallback(byte[] bytes, byte* pBytes)
99 {
100 return 1;
101 }
102
103 // Token: 0x06001494 RID: 5268 RVA: 0x0002B2C4 File Offset: 0x000294C4
104 private char TryBestFit(byte[] bytesCheck)
105 {
106 /*
107An exception occurred when decompiling this method (06001494)
108
109ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char System.Text.InternalDecoderBestFitFallbackBuffer::TryBestFit(System.Byte[])
110
111 ---> System.Exception: Basic block has to end with unconditional control flow.
112{
113 Block_0:
114 stloc:char[](var_0_0B, ldfld:char[](InternalDecoderBestFitFallback::_arrayBestFit, ldfld:InternalDecoderBestFitFallback(InternalDecoderBestFitFallbackBuffer::_oFallback, ldloc:InternalDecoderBestFitFallbackBuffer(this))))
115}
116
117 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
118 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
119 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
120 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
121 --- End of inner exception stack trace ---
122 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
123 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
124*/;
125 }
126
127 // Token: 0x04000AE9 RID: 2793
128 private char _cBestFit;
129
130 // Token: 0x04000AEA RID: 2794
131 private int _iCount;
132
133 // Token: 0x04000AEB RID: 2795
134 private int _iSize;
135
136 // Token: 0x04000AEC RID: 2796
138
139 // Token: 0x04000AED RID: 2797
140 private static object s_InternalSyncObject;
141 }
142}
class f__AnonymousType0<< Count > j__TPar
unsafe override int InternalFallback(byte[] bytes, byte *pBytes)
InternalDecoderBestFitFallbackBuffer(InternalDecoderBestFitFallback fallback)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11