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
ASN1Convert.cs
Go to the documentation of this file.
1using System;
2using System.Text;
4
5namespace Mono.Security
6{
7 // Token: 0x02000004 RID: 4
8 public static class ASN1Convert
9 {
10 // Token: 0x06000014 RID: 20 RVA: 0x00002364 File Offset: 0x00000564
11 public static ASN1 FromDateTime(DateTime dt)
12 {
13 /*
14An exception occurred when decompiling this method (06000014)
15
16ICSharpCode.Decompiler.DecompilerException: Error decompiling Mono.Security.ASN1 Mono.Security.ASN1Convert::FromDateTime(System.DateTime)
17
18 ---> System.Exception: Basic block has to end with unconditional control flow.
19{
20 Block_0:
21 stloc:Encoding(var_2_07, callgetter:Encoding(Encoding::get_ASCII))
22 stloc:CultureInfo(var_5_10, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
23 stloc:string(var_7_1E, call:string(string::Concat, ldloc:string(var_6), ldstr:string("Z")))
24}
25
26 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
27 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
28 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
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 88
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x06000015 RID: 21 RVA: 0x00002390 File Offset: 0x00000590
37 public static ASN1 FromInt32(int value)
38 {
39 while (false)
40 {
41 }
42 }
43
44 // Token: 0x06000016 RID: 22 RVA: 0x00002050 File Offset: 0x00000250
45 public static ASN1 FromOid(string oid)
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x06000017 RID: 23 RVA: 0x00002050 File Offset: 0x00000250
51 public static ASN1 FromUnsignedBigInteger(byte[] big)
52 {
53 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
54 }
55
56 // Token: 0x06000018 RID: 24 RVA: 0x000023A8 File Offset: 0x000005A8
57 public static int ToInt32(ASN1 asn1)
58 {
59 }
60
61 // Token: 0x06000019 RID: 25 RVA: 0x000023B8 File Offset: 0x000005B8
62 public static string ToOid(ASN1 asn1)
63 {
64 /*
65An exception occurred when decompiling this method (06000019)
66
67ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Mono.Security.ASN1Convert::ToOid(Mono.Security.ASN1)
68
69 ---> System.Exception: Basic block has to end with unconditional control flow.
70{
71 IL_001C:
72 stloc:CultureInfo(var_14_24, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
73}
74
75 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
76 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
77 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
78 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
79 --- End of inner exception stack trace ---
80 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
81 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
82*/;
83 }
84
85 // Token: 0x0600001A RID: 26 RVA: 0x000023EC File Offset: 0x000005EC
86 public static DateTime ToDateTime(ASN1 time)
87 {
88 if (time != null)
89 {
91 byte[] value = time.Value;
92 int codePage = ascii.m_codePage;
93 return "yyMMddHHmmZ";
94 }
96 }
97 }
98}
class f__AnonymousType0<< Count > j__TPar
static ASN1 FromInt32(int value)
static ASN1 FromDateTime(DateTime dt)
static DateTime ToDateTime(ASN1 time)
static string ToOid(ASN1 asn1)
static int ToInt32(ASN1 asn1)
static ASN1 FromOid(string oid)
static ASN1 FromUnsignedBigInteger(byte[] big)
byte[] Value
Definition ASN1.cs:89
static Encoding ASCII
Definition Encoding.cs:348