using System; using System.IO; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms { // Token: 0x02001764 RID: 5988 [Token(Token = "0x2001764")] [StructLayout(3)] public class CmsProcessableInputStream : CmsProcessable, CmsReadable { // Token: 0x0600A1AC RID: 41388 RVA: 0x002598E4 File Offset: 0x00257AE4 [Token(Token = "0x600A1AC")] [Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")] public CmsProcessableInputStream(Stream input) { this.input = input; } // Token: 0x0600A1AD RID: 41389 RVA: 0x00259900 File Offset: 0x00257B00 [Token(Token = "0x600A1AD")] [Address(RVA = "0x1C79B00", Offset = "0x1C78500", VA = "0x181C79B00", Slot = "7")] public virtual Stream GetInputStream() { object content = this.GetContent(); return this.input; } // Token: 0x0600A1AE RID: 41390 RVA: 0x0025991C File Offset: 0x00257B1C [Token(Token = "0x600A1AE")] [Address(RVA = "0x1C79B30", Offset = "0x1C78530", VA = "0x181C79B30", Slot = "8")] public virtual void Write(Stream output) { object content = this.GetContent(); Streams.PipeAll(this.input, output); Platform.Dispose(this.input); } // Token: 0x0600A1AF RID: 41391 RVA: 0x00259948 File Offset: 0x00257B48 [Token(Token = "0x600A1AF")] [Address(RVA = "0x50F4B0", Offset = "0x50DEB0", VA = "0x18050F4B0", Slot = "9")] [Obsolete] public virtual object GetContent() { return ((CmsProcessable)this).GetContent(); } // Token: 0x0600A1B0 RID: 41392 RVA: 0x0025995C File Offset: 0x00257B5C [Token(Token = "0x600A1B0")] [Address(RVA = "0x1C79A00", Offset = "0x1C78400", VA = "0x181C79A00", Slot = "10")] protected virtual void CheckSingleUsage() { /* An exception occurred when decompiling this method (0600A1B0) 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_21: stloc:InvalidOperationException(var_1_2B, 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: 0x04006A6E RID: 27246 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006A6E")] private readonly Stream input; // Token: 0x04006A6F RID: 27247 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006A6F")] private bool used; } }