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
Ucs4Decoder.cs
Go to the documentation of this file.
1using System;
3using System.Text;
4
5namespace System.Xml
6{
7 // Token: 0x020000A3 RID: 163
8 internal abstract class Ucs4Decoder : Decoder
9 {
10 // Token: 0x0600076B RID: 1899 RVA: 0x00018A78 File Offset: 0x00016C78
11 public override int GetCharCount(byte[] bytes, int index, int count)
12 {
13 /*
14An exception occurred when decompiling this method (0600076B)
15
16ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.Ucs4Decoder::GetCharCount(System.Byte[],System.Int32,System.Int32)
17
18 ---> System.Exception: Basic block has to end with unconditional control flow.
19{
20 Block_0:
21 stloc:int32(var_0_06, ldfld:int32(Ucs4Decoder::lastBytesCount, ldloc:Ucs4Decoder(this)))
22}
23
24 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
25 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
26 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
27 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
28 --- End of inner exception stack trace ---
29 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
30 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
31*/;
32 }
33
34 // Token: 0x0600076C RID: 1900
35 internal abstract int GetFullChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex);
36
37 // Token: 0x0600076D RID: 1901 RVA: 0x00018A8C File Offset: 0x00016C8C
38 public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
39 {
40 /*
41An exception occurred when decompiling this method (0600076D)
42
43ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.Ucs4Decoder::GetChars(System.Byte[],System.Int32,System.Int32,System.Char[],System.Int32)
44
45 ---> System.Exception: Basic block has to end with unconditional control flow.
46{
47 Block_0:
48 stloc:int32(var_0_06, ldfld:int32(Ucs4Decoder::lastBytesCount, ldloc:Ucs4Decoder(this)))
49 stloc:uint8[](var_1_0D, ldfld:uint8[](Ucs4Decoder::lastBytes, ldloc:Ucs4Decoder(this)))
50 stloc:int32(var_2_14, ldfld:int32(Ucs4Decoder::lastBytesCount, ldloc:Ucs4Decoder(this)))
51 stfld:int32(Ucs4Decoder::lastBytesCount, ldloc:Ucs4Decoder(this), ldloc:int32(var_2_14))
52 stloc:uint8[](var_3_22, ldfld:uint8[](Ucs4Decoder::lastBytes, ldloc:Ucs4Decoder(this)))
53 stloc:uint8[](var_5_2C, ldfld:uint8[](Ucs4Decoder::lastBytes, ldloc:Ucs4Decoder(this)))
54}
55
56 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
57 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
58 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
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 88
60 --- End of inner exception stack trace ---
61 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
62 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
63*/;
64 }
65
66 // Token: 0x0600076E RID: 1902 RVA: 0x00018ACC File Offset: 0x00016CCC
67 public override 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)
68 {
69 int num = this.lastBytesCount;
70 byte[] array = this.lastBytes;
71 byte[] array2 = this.lastBytes;
72 }
73
74 // Token: 0x0600076F RID: 1903 RVA: 0x00018AFC File Offset: 0x00016CFC
75 internal void Ucs4ToUTF16(uint code, char[] chars, int charIndex)
76 {
77 }
78
79 // Token: 0x06000770 RID: 1904 RVA: 0x00018B0C File Offset: 0x00016D0C
80 protected Ucs4Decoder()
81 {
82 }
83
84 // Token: 0x040003BA RID: 954
85 internal byte[] lastBytes;
86
87 // Token: 0x040003BB RID: 955
88 internal int lastBytesCount;
89 }
90}
class f__AnonymousType0<< Count > j__TPar
void Ucs4ToUTF16(uint code, char[] chars, int charIndex)
override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
override 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)
int GetFullChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
override int GetCharCount(byte[] bytes, int index, int count)