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: 0x02001763 RID: 5987 [Token(Token = "0x2001763")] [StructLayout(3)] public class CmsProcessableFile : CmsProcessable, CmsReadable { // Token: 0x0600A1A7 RID: 41383 RVA: 0x00259840 File Offset: 0x00257A40 [Token(Token = "0x600A1A7")] [Address(RVA = "0x1C799D0", Offset = "0x1C783D0", VA = "0x181C799D0")] public CmsProcessableFile(FileInfo file) { this._file = file; this._bufSize = (int)((ulong)32768L); } // Token: 0x0600A1A8 RID: 41384 RVA: 0x00259868 File Offset: 0x00257A68 [Token(Token = "0x600A1A8")] [Address(RVA = "0x67E170", Offset = "0x67CB70", VA = "0x18067E170")] public CmsProcessableFile(FileInfo file, int bufSize) { this._file = file; this._bufSize = bufSize; } // Token: 0x0600A1A9 RID: 41385 RVA: 0x0025988C File Offset: 0x00257A8C [Token(Token = "0x600A1A9")] [Address(RVA = "0x1C798A0", Offset = "0x1C782A0", VA = "0x181C798A0", Slot = "7")] public virtual Stream GetInputStream() { FileInfo file = this._file; int bufSize = this._bufSize; throw new NullReferenceException(); } // Token: 0x0600A1AA RID: 41386 RVA: 0x002598AC File Offset: 0x00257AAC [Token(Token = "0x600A1AA")] [Address(RVA = "0x1C79940", Offset = "0x1C78340", VA = "0x181C79940", Slot = "8")] public virtual void Write(Stream zOut) { Stream inputStream = this.GetInputStream(); Streams.PipeAll(inputStream, zOut); Platform.Dispose(inputStream); } // Token: 0x0600A1AB RID: 41387 RVA: 0x002598D0 File Offset: 0x00257AD0 [Token(Token = "0x600A1AB")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "9")] [Obsolete] public virtual object GetContent() { /* An exception occurred when decompiling this method (0600A1AB) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.CmsProcessableFile::GetContent() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:FileInfo(var_0_06, ldfld:FileInfo(CmsProcessableFile::_file, ldloc:CmsProcessableFile(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: 0x04006A6B RID: 27243 [Token(Token = "0x4006A6B")] private const int DefaultBufSize = 32768; // Token: 0x04006A6C RID: 27244 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006A6C")] private readonly FileInfo _file; // Token: 0x04006A6D RID: 27245 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006A6D")] private readonly int _bufSize; } }