using System; using System.IO; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms { // Token: 0x02001E21 RID: 7713 [Token(Token = "0x2001E21")] public class CmsProcessableInputStream : CmsProcessable, CmsReadable { // Token: 0x0600C154 RID: 49492 RVA: 0x002BA59C File Offset: 0x002B879C [Token(Token = "0x600C154")] [Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")] public CmsProcessableInputStream(Stream input) { this.input = input; } // Token: 0x0600C155 RID: 49493 RVA: 0x002BA5B8 File Offset: 0x002B87B8 [Token(Token = "0x600C155")] [Address(RVA = "0x2148830", Offset = "0x2147830", VA = "0x182148830", Slot = "7")] public virtual Stream GetInputStream() { object content = this.GetContent(); return this.input; } // Token: 0x0600C156 RID: 49494 RVA: 0x002BA5D4 File Offset: 0x002B87D4 [Token(Token = "0x600C156")] [Address(RVA = "0x2148860", Offset = "0x2147860", VA = "0x182148860", Slot = "8")] public virtual void Write(Stream output) { object content = this.GetContent(); Streams.PipeAll(this.input, output); Platform.Dispose(this.input); } // Token: 0x0600C157 RID: 49495 RVA: 0x002BA600 File Offset: 0x002B8800 [Token(Token = "0x600C157")] [Address(RVA = "0x6818B0", Offset = "0x6808B0", VA = "0x1806818B0", Slot = "9")] [Obsolete] public virtual object GetContent() { return ((CmsProcessable)this).GetContent(); } // Token: 0x0600C158 RID: 49496 RVA: 0x002BA614 File Offset: 0x002B8814 [Token(Token = "0x600C158")] [Address(RVA = "0x2148750", Offset = "0x2147750", VA = "0x182148750", Slot = "10")] protected virtual void CheckSingleUsage() { /* An exception occurred when decompiling this method (0600C158) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.CmsProcessableInputStream::CheckSingleUsage() ---> System.Exception: Basic block has to end with unconditional control flow. { IL_1D: stloc:InvalidOperationException(var_1_27, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("CmsProcessableInputStream can only be used once"))) } 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: 0x04007A6A RID: 31338 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007A6A")] private readonly Stream input; // Token: 0x04007A6B RID: 31339 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007A6B")] private bool used; } }