Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Ess/ContentHints.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

141 lines
6.2 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x02001FB7 RID: 8119
[Token(Token = "0x2001FB7")]
public class ContentHints : Asn1Encodable
{
// Token: 0x0600CB39 RID: 52025 RVA: 0x002E27DC File Offset: 0x002E09DC
[Token(Token = "0x600CB39")]
[Address(RVA = "0x2EA6630", Offset = "0x2EA5630", VA = "0x182EA6630")]
public static ContentHints GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600CB39)
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: 0x0600CB3A RID: 52026 RVA: 0x002E2830 File Offset: 0x002E0A30
[Token(Token = "0x600CB3A")]
[Address(RVA = "0x2EA6A10", Offset = "0x2EA5A10", VA = "0x182EA6A10")]
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: 0x0600CB3B RID: 52027 RVA: 0x002E2880 File Offset: 0x002E0A80
[Token(Token = "0x600CB3B")]
[Address(RVA = "0x2EA6BA0", Offset = "0x2EA5BA0", VA = "0x182EA6BA0")]
public ContentHints(DerObjectIdentifier contentType)
{
this.contentType = contentType;
this.contentDescription = (ulong)0L;
}
// Token: 0x0600CB3C RID: 52028 RVA: 0x002E28A4 File Offset: 0x002E0AA4
[Token(Token = "0x600CB3C")]
[Address(RVA = "0x2EA69D0", Offset = "0x2EA59D0", VA = "0x182EA69D0")]
public ContentHints(DerObjectIdentifier contentType, DerUtf8String contentDescription)
{
this.contentType = contentType;
this.contentDescription = contentDescription;
}
// Token: 0x17001FCA RID: 8138
// (get) Token: 0x0600CB3D RID: 52029 RVA: 0x002E28C8 File Offset: 0x002E0AC8
[Token(Token = "0x17001FCA")]
public DerObjectIdentifier ContentType
{
[Token(Token = "0x600CB3D")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.contentType;
}
}
// Token: 0x17001FCB RID: 8139
// (get) Token: 0x0600CB3E RID: 52030 RVA: 0x002E28DC File Offset: 0x002E0ADC
[Token(Token = "0x17001FCB")]
public DerUtf8String ContentDescription
{
[Token(Token = "0x600CB3E")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.contentDescription;
}
}
// Token: 0x0600CB3F RID: 52031 RVA: 0x002E28F0 File Offset: 0x002E0AF0
[Token(Token = "0x600CB3F")]
[Address(RVA = "0x2EA6830", Offset = "0x2EA5830", VA = "0x182EA6830", 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: 0x04008116 RID: 33046
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008116")]
private readonly DerUtf8String contentDescription;
// Token: 0x04008117 RID: 33047
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008117")]
private readonly DerObjectIdentifier contentType;
}
}