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: 0x02001D41 RID: 7489 [Token(Token = "0x2001D41")] public class CmsProcessableInputStream : CmsProcessable, CmsReadable { // Token: 0x0600BD86 RID: 48518 RVA: 0x002B1D34 File Offset: 0x002AFF34 [Token(Token = "0x600BD86")] [Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")] public CmsProcessableInputStream(Stream input) { this.input = input; } // Token: 0x0600BD87 RID: 48519 RVA: 0x002B1D50 File Offset: 0x002AFF50 [Token(Token = "0x600BD87")] [Address(RVA = "0x16671C0", Offset = "0x1665FC0", VA = "0x1816671C0", Slot = "7")] public virtual Stream GetInputStream() { object content = this.GetContent(); return this.input; } // Token: 0x0600BD88 RID: 48520 RVA: 0x002B1D6C File Offset: 0x002AFF6C [Token(Token = "0x600BD88")] [Address(RVA = "0x16671F0", Offset = "0x1665FF0", VA = "0x1816671F0", Slot = "8")] public virtual void Write(Stream output) { object content = this.GetContent(); Streams.PipeAll(this.input, output); Platform.Dispose(this.input); } // Token: 0x0600BD89 RID: 48521 RVA: 0x002B1D98 File Offset: 0x002AFF98 [Token(Token = "0x600BD89")] [Address(RVA = "0x461C60", Offset = "0x460A60", VA = "0x180461C60", Slot = "9")] [Obsolete] public virtual object GetContent() { return ((CmsProcessable)this).GetContent(); } // Token: 0x0600BD8A RID: 48522 RVA: 0x002B1DAC File Offset: 0x002AFFAC [Token(Token = "0x600BD8A")] [Address(RVA = "0x16670E0", Offset = "0x1665EE0", VA = "0x1816670E0", Slot = "10")] protected virtual void CheckSingleUsage() { /* An exception occurred when decompiling this method (0600BD8A) 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: 0x040078B1 RID: 30897 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40078B1")] private readonly Stream input; // Token: 0x040078B2 RID: 30898 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40078B2")] private bool used; } }