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
DecoderReplacementFallbackBuffer.cs
Go to the documentation of this file.
1using System;
2
3namespace System.Text
4{
5 // Token: 0x02000268 RID: 616
7 {
8 // Token: 0x060014C7 RID: 5319 RVA: 0x0002B73C File Offset: 0x0002993C
14
15 // Token: 0x060014C8 RID: 5320 RVA: 0x0002B760 File Offset: 0x00029960
16 public override bool Fallback(byte[] bytesUnknown, int index)
17 {
19 int stringLength = this._strDefault._stringLength;
20 if (stringLength != 0)
21 {
23 return true;
24 }
25 }
26
27 // Token: 0x060014C9 RID: 5321 RVA: 0x0002B790 File Offset: 0x00029990
28 public override char GetNextChar()
29 {
33 char c;
34 return c;
35 }
36
37 // Token: 0x1700020F RID: 527
38 // (get) Token: 0x060014CA RID: 5322 RVA: 0x0002B7B8 File Offset: 0x000299B8
39 public override int Remaining
40 {
41 get
42 {
43 /*
44An exception occurred when decompiling this method (060014CA)
45
46ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.DecoderReplacementFallbackBuffer::get_Remaining()
47
48 ---> System.Exception: Basic block has to end with unconditional control flow.
49{
50 Block_0:
51 stloc:int32(var_0_06, ldfld:int32(DecoderReplacementFallbackBuffer::_fallbackCount, ldloc:DecoderReplacementFallbackBuffer(this)))
52}
53
54 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
55 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
56 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
57 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
58 --- End of inner exception stack trace ---
59 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
60 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
61*/;
62 }
63 }
64
65 // Token: 0x060014CB RID: 5323 RVA: 0x0002B7CC File Offset: 0x000299CC
66 public override void Reset()
67 {
68 }
69
70 // Token: 0x060014CC RID: 5324 RVA: 0x0002B7DC File Offset: 0x000299DC
71 internal unsafe override int InternalFallback(byte[] bytes, byte* pBytes)
72 {
73 return this._strDefault._stringLength;
74 }
75
76 // Token: 0x04000AF9 RID: 2809
77 private string _strDefault;
78
79 // Token: 0x04000AFA RID: 2810
80 private int _fallbackCount;
81
82 // Token: 0x04000AFB RID: 2811
83 private int _fallbackIndex;
84 }
85}
class f__AnonymousType0<< Count > j__TPar
unsafe override int InternalFallback(byte[] bytes, byte *pBytes)
DecoderReplacementFallbackBuffer(DecoderReplacementFallback fallback)
override bool Fallback(byte[] bytesUnknown, int index)