82 lines
4.4 KiB
C#
82 lines
4.4 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
|
{
|
|
// Token: 0x02001E7E RID: 7806
|
|
[Token(Token = "0x2001E7E")]
|
|
public class DerSetGenerator : DerGenerator
|
|
{
|
|
// Token: 0x0600C3A0 RID: 50080 RVA: 0x002C3418 File Offset: 0x002C1618
|
|
[Token(Token = "0x600C3A0")]
|
|
[Address(RVA = "0x23B05B0", Offset = "0x23AF5B0", VA = "0x1823B05B0")]
|
|
public DerSetGenerator(Stream outStream)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
this._bOut = memoryStream;
|
|
base..ctor(outStream);
|
|
}
|
|
|
|
// Token: 0x0600C3A1 RID: 50081 RVA: 0x002C343C File Offset: 0x002C163C
|
|
[Token(Token = "0x600C3A1")]
|
|
[Address(RVA = "0x23B0510", Offset = "0x23AF510", VA = "0x1823B0510")]
|
|
public DerSetGenerator(Stream outStream, int tagNo, bool isExplicit)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
this._bOut = memoryStream;
|
|
base..ctor(outStream);
|
|
this._isExplicit = isExplicit;
|
|
this._tagNo = tagNo;
|
|
this._tagged = true;
|
|
}
|
|
|
|
// Token: 0x0600C3A2 RID: 50082 RVA: 0x002C3474 File Offset: 0x002C1674
|
|
[Token(Token = "0x600C3A2")]
|
|
[Address(RVA = "0x23B0440", Offset = "0x23AF440", VA = "0x1823B0440", Slot = "4")]
|
|
public override void AddObject(Asn1Encodable obj)
|
|
{
|
|
((IDisposable)new DerOutputStream(this._bOut)).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C3A3 RID: 50083 RVA: 0x002C3498 File Offset: 0x002C1698
|
|
[Token(Token = "0x600C3A3")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "5")]
|
|
public override Stream GetRawOutputStream()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C3A3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerSetGenerator::GetRawOutputStream()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:MemoryStream(var_0_06, ldfld:MemoryStream(DerSetGenerator::_bOut, ldloc:DerSetGenerator(this)))
|
|
}
|
|
|
|
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: 0x0600C3A4 RID: 50084 RVA: 0x002C34AC File Offset: 0x002C16AC
|
|
[Token(Token = "0x600C3A4")]
|
|
[Address(RVA = "0x23B04D0", Offset = "0x23AF4D0", VA = "0x1823B04D0", Slot = "6")]
|
|
public override void Close()
|
|
{
|
|
MemoryStream bOut = this._bOut;
|
|
}
|
|
|
|
// Token: 0x04007B60 RID: 31584
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007B60")]
|
|
private readonly MemoryStream _bOut;
|
|
}
|
|
}
|