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

129 lines
8.4 KiB
C#

using System;
using System.IO;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
{
// Token: 0x02001E97 RID: 7831
[Token(Token = "0x2001E97")]
public class DerUtf8String : DerStringBase
{
// Token: 0x0600C492 RID: 50322 RVA: 0x002C68B0 File Offset: 0x002C4AB0
[Token(Token = "0x600C492")]
[Address(RVA = "0x2EA9F10", Offset = "0x2EA8F10", VA = "0x182EA9F10")]
public static DerUtf8String GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C492)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_16:
stloc:string(var_3_1C, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_4_2D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("illegal object in GetInstance: "), ldloc:string(var_3_1C))))
}
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: 0x0600C493 RID: 50323 RVA: 0x002C68EC File Offset: 0x002C4AEC
[Token(Token = "0x600C493")]
[Address(RVA = "0x2EAA040", Offset = "0x2EA9040", VA = "0x182EAA040")]
public static DerUtf8String GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
Asn1Object @object = obj.GetObject();
if (!isExplicit && (@object == 0 || @object == 0))
{
Stream octetStream = Asn1OctetString.GetInstance(@object).GetOctetStream();
Encoding utf = Encoding.UTF8;
DerUtf8String derUtf8String;
return derUtf8String;
}
return DerUtf8String.GetInstance(@object);
}
// Token: 0x0600C494 RID: 50324 RVA: 0x002C6938 File Offset: 0x002C4B38
[Token(Token = "0x600C494")]
[Address(RVA = "0x2EAA200", Offset = "0x2EA9200", VA = "0x182EAA200")]
public DerUtf8String(byte[] str)
{
string @string = Encoding.UTF8.GetString(str);
}
// Token: 0x0600C495 RID: 50325 RVA: 0x002C695C File Offset: 0x002C4B5C
[Token(Token = "0x600C495")]
[Address(RVA = "0x2EAA180", Offset = "0x2EA9180", VA = "0x182EAA180")]
public DerUtf8String(string str)
{
/*
An exception occurred when decompiling this method (0600C495)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtf8String::.ctor(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("str")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x0600C496 RID: 50326 RVA: 0x002C6988 File Offset: 0x002C4B88
[Token(Token = "0x600C496")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "10")]
public override string GetString()
{
return this.str;
}
// Token: 0x0600C497 RID: 50327 RVA: 0x002C699C File Offset: 0x002C4B9C
[Token(Token = "0x600C497")]
[Address(RVA = "0x2EA9E10", Offset = "0x2EA8E10", VA = "0x182EA9E10", Slot = "7")]
protected override bool Asn1Equals(Asn1Object asn1Object)
{
if (asn1Object != 0 && asn1Object != 0)
{
string text = this.str;
bool flag;
return flag;
}
throw new NullReferenceException();
}
// Token: 0x0600C498 RID: 50328 RVA: 0x002C69C4 File Offset: 0x002C4BC4
[Token(Token = "0x600C498")]
[Address(RVA = "0x2EA9EB0", Offset = "0x2EA8EB0", VA = "0x182EA9EB0", Slot = "6")]
internal override void Encode(DerOutputStream derOut)
{
Encoding utf = Encoding.UTF8;
string text = this.str;
}
// Token: 0x04007B83 RID: 31619
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007B83")]
private readonly string str;
}
}