scripts
This commit is contained in:
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
||||
{
|
||||
// Token: 0x020018FA RID: 6394
|
||||
[Token(Token = "0x20018FA")]
|
||||
[StructLayout(3)]
|
||||
public class ContentHints : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AB91 RID: 43921 RVA: 0x00281AA0 File Offset: 0x0027FCA0
|
||||
[Token(Token = "0x600AB91")]
|
||||
[Address(RVA = "0x1DE60D0", Offset = "0x1DE4AD0", VA = "0x181DE60D0")]
|
||||
public static ContentHints GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AB91)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(o)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'ContentHints' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
|
||||
}
|
||||
|
||||
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: 0x0600AB92 RID: 43922 RVA: 0x00281AF4 File Offset: 0x0027FCF4
|
||||
[Token(Token = "0x600AB92")]
|
||||
[Address(RVA = "0x1DE64B0", Offset = "0x1DE4EB0", VA = "0x181DE64B0")]
|
||||
private ContentHints(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
int num = 0;
|
||||
if (num < 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
DerUtf8String derUtf8String;
|
||||
this.contentDescription = derUtf8String;
|
||||
}
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.contentType = derObjectIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600AB93 RID: 43923 RVA: 0x00281B44 File Offset: 0x0027FD44
|
||||
[Token(Token = "0x600AB93")]
|
||||
[Address(RVA = "0x1DE6640", Offset = "0x1DE5040", VA = "0x181DE6640")]
|
||||
public ContentHints(DerObjectIdentifier contentType)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentDescription = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AB94 RID: 43924 RVA: 0x00281B68 File Offset: 0x0027FD68
|
||||
[Token(Token = "0x600AB94")]
|
||||
[Address(RVA = "0x1DE6470", Offset = "0x1DE4E70", VA = "0x181DE6470")]
|
||||
public ContentHints(DerObjectIdentifier contentType, DerUtf8String contentDescription)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentDescription = contentDescription;
|
||||
}
|
||||
|
||||
// Token: 0x17001B2C RID: 6956
|
||||
// (get) Token: 0x0600AB95 RID: 43925 RVA: 0x00281B8C File Offset: 0x0027FD8C
|
||||
[Token(Token = "0x17001B2C")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600AB95")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B2D RID: 6957
|
||||
// (get) Token: 0x0600AB96 RID: 43926 RVA: 0x00281BA0 File Offset: 0x0027FDA0
|
||||
[Token(Token = "0x17001B2D")]
|
||||
public DerUtf8String ContentDescription
|
||||
{
|
||||
[Token(Token = "0x600AB96")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentDescription;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AB97 RID: 43927 RVA: 0x00281BB4 File Offset: 0x0027FDB4
|
||||
[Token(Token = "0x600AB97")]
|
||||
[Address(RVA = "0x1DE62D0", Offset = "0x1DE4CD0", VA = "0x181DE62D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.contentDescription != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerUtf8String derUtf8String = this.contentDescription;
|
||||
if (derUtf8String != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derUtf8String;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derObjectIdentifier;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400711A RID: 28954
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400711A")]
|
||||
private readonly DerUtf8String contentDescription;
|
||||
|
||||
// Token: 0x0400711B RID: 28955
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400711B")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user