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: 0x02001E20 RID: 7712 [Token(Token = "0x2001E20")] public class CmsProcessableFile : CmsProcessable, CmsReadable { // Token: 0x0600C14F RID: 49487 RVA: 0x002BA4F8 File Offset: 0x002B86F8 [Token(Token = "0x600C14F")] [Address(RVA = "0x2148720", Offset = "0x2147720", VA = "0x182148720")] public CmsProcessableFile(FileInfo file) { this._file = file; this._bufSize = (int)((ulong)32768L); } // Token: 0x0600C150 RID: 49488 RVA: 0x002BA520 File Offset: 0x002B8720 [Token(Token = "0x600C150")] [Address(RVA = "0x52CBA0", Offset = "0x52BBA0", VA = "0x18052CBA0")] public CmsProcessableFile(FileInfo file, int bufSize) { this._file = file; this._bufSize = bufSize; } // Token: 0x0600C151 RID: 49489 RVA: 0x002BA544 File Offset: 0x002B8744 [Token(Token = "0x600C151")] [Address(RVA = "0x21485F0", Offset = "0x21475F0", VA = "0x1821485F0", Slot = "7")] public virtual Stream GetInputStream() { FileInfo file = this._file; int bufSize = this._bufSize; throw new NullReferenceException(); } // Token: 0x0600C152 RID: 49490 RVA: 0x002BA564 File Offset: 0x002B8764 [Token(Token = "0x600C152")] [Address(RVA = "0x2148690", Offset = "0x2147690", VA = "0x182148690", Slot = "8")] public virtual void Write(Stream zOut) { Stream inputStream = this.GetInputStream(); Streams.PipeAll(inputStream, zOut); Platform.Dispose(inputStream); } // Token: 0x0600C153 RID: 49491 RVA: 0x002BA588 File Offset: 0x002B8788 [Token(Token = "0x600C153")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "9")] [Obsolete] public virtual object GetContent() { /* An exception occurred when decompiling this method (0600C153) 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: 0x04007A67 RID: 31335 [Token(Token = "0x4007A67")] private const int DefaultBufSize = 32768; // Token: 0x04007A68 RID: 31336 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007A68")] private readonly FileInfo _file; // Token: 0x04007A69 RID: 31337 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007A69")] private readonly int _bufSize; } }