scripts
This commit is contained in:
+149
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
||||
{
|
||||
// Token: 0x020018E7 RID: 6375
|
||||
[Token(Token = "0x20018E7")]
|
||||
[StructLayout(3)]
|
||||
public class MonetaryLimit : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AB26 RID: 43814 RVA: 0x0027F900 File Offset: 0x0027DB00
|
||||
[Token(Token = "0x600AB26")]
|
||||
[Address(RVA = "0x27D1080", Offset = "0x27CFA80", VA = "0x1827D1080")]
|
||||
public static MonetaryLimit GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AB26)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.MonetaryLimit::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5A:
|
||||
stloc:string(var_13_60, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_14_78, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_13_60)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600AB27 RID: 43815 RVA: 0x0027F988 File Offset: 0x0027DB88
|
||||
[Token(Token = "0x600AB27")]
|
||||
[Address(RVA = "0x27D1590", Offset = "0x27CFF90", VA = "0x1827D1590")]
|
||||
private MonetaryLimit(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerPrintableString derPrintableString;
|
||||
this.currency = derPrintableString;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.amount = derInteger;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.exponent = derInteger2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AB28 RID: 43816 RVA: 0x0027F9D0 File Offset: 0x0027DBD0
|
||||
[Token(Token = "0x600AB28")]
|
||||
[Address(RVA = "0x27D14C0", Offset = "0x27CFEC0", VA = "0x1827D14C0")]
|
||||
public MonetaryLimit(string currency, int amount, int exponent)
|
||||
{
|
||||
DerPrintableString derPrintableString = new DerPrintableString(currency, true);
|
||||
this.currency = derPrintableString;
|
||||
DerInteger derInteger = new DerInteger(amount);
|
||||
this.amount = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(amount);
|
||||
this.exponent = derInteger2;
|
||||
}
|
||||
|
||||
// Token: 0x17001B14 RID: 6932
|
||||
// (get) Token: 0x0600AB29 RID: 43817 RVA: 0x0027FA10 File Offset: 0x0027DC10
|
||||
[Token(Token = "0x17001B14")]
|
||||
public virtual string Currency
|
||||
{
|
||||
[Token(Token = "0x600AB29")]
|
||||
[Address(RVA = "0x78FE10", Offset = "0x78E810", VA = "0x18078FE10", Slot = "6")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.currency.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B15 RID: 6933
|
||||
// (get) Token: 0x0600AB2A RID: 43818 RVA: 0x0027FA30 File Offset: 0x0027DC30
|
||||
[Token(Token = "0x17001B15")]
|
||||
public virtual BigInteger Amount
|
||||
{
|
||||
[Token(Token = "0x600AB2A")]
|
||||
[Address(RVA = "0x27D16D0", Offset = "0x27D00D0", VA = "0x1827D16D0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.amount.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B16 RID: 6934
|
||||
// (get) Token: 0x0600AB2B RID: 43819 RVA: 0x0027FA50 File Offset: 0x0027DC50
|
||||
[Token(Token = "0x17001B16")]
|
||||
public virtual BigInteger Exponent
|
||||
{
|
||||
[Token(Token = "0x600AB2B")]
|
||||
[Address(RVA = "0x27D16F0", Offset = "0x27D00F0", VA = "0x1827D16F0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.exponent.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AB2C RID: 43820 RVA: 0x0027FA70 File Offset: 0x0027DC70
|
||||
[Token(Token = "0x600AB2C")]
|
||||
[Address(RVA = "0x27D1350", Offset = "0x27CFD50", VA = "0x1827D1350", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerPrintableString derPrintableString = this.currency;
|
||||
if (derPrintableString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derPrintableString;
|
||||
DerInteger derInteger = this.amount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerInteger derInteger2 = this.exponent;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007074 RID: 28788
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007074")]
|
||||
private readonly DerPrintableString currency;
|
||||
|
||||
// Token: 0x04007075 RID: 28789
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007075")]
|
||||
private readonly DerInteger amount;
|
||||
|
||||
// Token: 0x04007076 RID: 28790
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007076")]
|
||||
private readonly DerInteger exponent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user