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: 0x02001E7C RID: 7804
|
|
[Token(Token = "0x2001E7C")]
|
|
public class DerSequenceGenerator : DerGenerator
|
|
{
|
|
// Token: 0x0600C398 RID: 50072 RVA: 0x002C330C File Offset: 0x002C150C
|
|
[Token(Token = "0x600C398")]
|
|
[Address(RVA = "0x23AFCB0", Offset = "0x23AECB0", VA = "0x1823AFCB0")]
|
|
public DerSequenceGenerator(Stream outStream)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
this._bOut = memoryStream;
|
|
base..ctor(outStream);
|
|
}
|
|
|
|
// Token: 0x0600C399 RID: 50073 RVA: 0x002C3330 File Offset: 0x002C1530
|
|
[Token(Token = "0x600C399")]
|
|
[Address(RVA = "0x23AFC10", Offset = "0x23AEC10", VA = "0x1823AFC10")]
|
|
public DerSequenceGenerator(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: 0x0600C39A RID: 50074 RVA: 0x002C3368 File Offset: 0x002C1568
|
|
[Token(Token = "0x600C39A")]
|
|
[Address(RVA = "0x23AFB40", Offset = "0x23AEB40", VA = "0x1823AFB40", Slot = "4")]
|
|
public override void AddObject(Asn1Encodable obj)
|
|
{
|
|
((IDisposable)new DerOutputStream(this._bOut)).Dispose();
|
|
}
|
|
|
|
// Token: 0x0600C39B RID: 50075 RVA: 0x002C338C File Offset: 0x002C158C
|
|
[Token(Token = "0x600C39B")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "5")]
|
|
public override Stream GetRawOutputStream()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C39B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerSequenceGenerator::GetRawOutputStream()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:MemoryStream(var_0_06, ldfld:MemoryStream(DerSequenceGenerator::_bOut, ldloc:DerSequenceGenerator(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: 0x0600C39C RID: 50076 RVA: 0x002C33A0 File Offset: 0x002C15A0
|
|
[Token(Token = "0x600C39C")]
|
|
[Address(RVA = "0x23AFBD0", Offset = "0x23AEBD0", VA = "0x1823AFBD0", Slot = "6")]
|
|
public override void Close()
|
|
{
|
|
MemoryStream bOut = this._bOut;
|
|
}
|
|
|
|
// Token: 0x04007B5E RID: 31582
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007B5E")]
|
|
private readonly MemoryStream _bOut;
|
|
}
|
|
}
|