93 lines
4.7 KiB
C#
93 lines
4.7 KiB
C#
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: 0x02001D40 RID: 7488
|
|
[Token(Token = "0x2001D40")]
|
|
public class CmsProcessableFile : CmsProcessable, CmsReadable
|
|
{
|
|
// Token: 0x0600BD81 RID: 48513 RVA: 0x002B1C90 File Offset: 0x002AFE90
|
|
[Token(Token = "0x600BD81")]
|
|
[Address(RVA = "0x16670B0", Offset = "0x1665EB0", VA = "0x1816670B0")]
|
|
public CmsProcessableFile(FileInfo file)
|
|
{
|
|
this._file = file;
|
|
this._bufSize = (int)((ulong)32768L);
|
|
}
|
|
|
|
// Token: 0x0600BD82 RID: 48514 RVA: 0x002B1CB8 File Offset: 0x002AFEB8
|
|
[Token(Token = "0x600BD82")]
|
|
[Address(RVA = "0x4F34F0", Offset = "0x4F22F0", VA = "0x1804F34F0")]
|
|
public CmsProcessableFile(FileInfo file, int bufSize)
|
|
{
|
|
this._file = file;
|
|
this._bufSize = bufSize;
|
|
}
|
|
|
|
// Token: 0x0600BD83 RID: 48515 RVA: 0x002B1CDC File Offset: 0x002AFEDC
|
|
[Token(Token = "0x600BD83")]
|
|
[Address(RVA = "0x1666F80", Offset = "0x1665D80", VA = "0x181666F80", Slot = "7")]
|
|
public virtual Stream GetInputStream()
|
|
{
|
|
FileInfo file = this._file;
|
|
int bufSize = this._bufSize;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600BD84 RID: 48516 RVA: 0x002B1CFC File Offset: 0x002AFEFC
|
|
[Token(Token = "0x600BD84")]
|
|
[Address(RVA = "0x1667020", Offset = "0x1665E20", VA = "0x181667020", Slot = "8")]
|
|
public virtual void Write(Stream zOut)
|
|
{
|
|
Stream inputStream = this.GetInputStream();
|
|
Streams.PipeAll(inputStream, zOut);
|
|
Platform.Dispose(inputStream);
|
|
}
|
|
|
|
// Token: 0x0600BD85 RID: 48517 RVA: 0x002B1D20 File Offset: 0x002AFF20
|
|
[Token(Token = "0x600BD85")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "9")]
|
|
[Obsolete]
|
|
public virtual object GetContent()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BD85)
|
|
|
|
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: 0x040078AE RID: 30894
|
|
[Token(Token = "0x40078AE")]
|
|
private const int DefaultBufSize = 32768;
|
|
|
|
// Token: 0x040078AF RID: 30895
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40078AF")]
|
|
private readonly FileInfo _file;
|
|
|
|
// Token: 0x040078B0 RID: 30896
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40078B0")]
|
|
private readonly int _bufSize;
|
|
}
|
|
}
|