550 lines
27 KiB
C#
550 lines
27 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
|
|
{
|
|
// Token: 0x02001357 RID: 4951
|
|
[Token(Token = "0x2001357")]
|
|
[StructLayout(3)]
|
|
public class ZInputStream : Stream
|
|
{
|
|
// Token: 0x06007D0D RID: 32013 RVA: 0x001A3BD4 File Offset: 0x001A1DD4
|
|
[Token(Token = "0x6007D0D")]
|
|
[Address(RVA = "0x20363B0", Offset = "0x2034DB0", VA = "0x1820363B0")]
|
|
private static ZStream GetDefaultZStream(bool nowrap)
|
|
{
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
int num = zstream.inflateInit(15, nowrap);
|
|
return zstream;
|
|
}
|
|
|
|
// Token: 0x06007D0E RID: 32014 RVA: 0x001A3C00 File Offset: 0x001A1E00
|
|
[Token(Token = "0x6007D0E")]
|
|
[Address(RVA = "0x2036D40", Offset = "0x2035740", VA = "0x182036D40")]
|
|
public ZInputStream(Stream input)
|
|
{
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
int num = 0;
|
|
int num2 = zstream.inflateInit(15, num != 0);
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
|
|
{
|
|
int num3 = 0;
|
|
int num4 = zstream.inflateInit(15, num3 != 0);
|
|
}
|
|
this.input = input;
|
|
this.z = zstream;
|
|
bool flag = zstream.istate == (ulong)0L;
|
|
this.compress = flag;
|
|
byte[] array3 = this.buf;
|
|
zstream.next_in = array3;
|
|
ZStream zstream2 = this.z;
|
|
int num5 = 0;
|
|
zstream2.next_in_index = num5;
|
|
this.z.avail_in = num5;
|
|
}
|
|
|
|
// Token: 0x06007D0F RID: 32015 RVA: 0x001A3CD8 File Offset: 0x001A1ED8
|
|
[Token(Token = "0x6007D0F")]
|
|
[Address(RVA = "0x2036BB0", Offset = "0x20355B0", VA = "0x182036BB0")]
|
|
public ZInputStream(Stream input, bool nowrap)
|
|
{
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
int num = zstream.inflateInit(15, nowrap);
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
|
|
{
|
|
int num2 = 0;
|
|
int num3 = zstream.inflateInit(15, num2 != 0);
|
|
}
|
|
this.input = input;
|
|
this.z = zstream;
|
|
bool flag = zstream.istate == (ulong)0L;
|
|
this.compress = flag;
|
|
byte[] array3 = this.buf;
|
|
zstream.next_in = array3;
|
|
ZStream zstream2 = this.z;
|
|
int num4 = 0;
|
|
zstream2.next_in_index = num4;
|
|
this.z.avail_in = num4;
|
|
}
|
|
|
|
// Token: 0x06007D10 RID: 32016 RVA: 0x001A3DAC File Offset: 0x001A1FAC
|
|
[Token(Token = "0x6007D10")]
|
|
[Address(RVA = "0x20367A0", Offset = "0x20351A0", VA = "0x1820367A0")]
|
|
public ZInputStream(Stream input, ZStream z)
|
|
{
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
if (z == 0)
|
|
{
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
}
|
|
if (z.istate == (ulong)0L && z.dstate == (ulong)0L)
|
|
{
|
|
int num = 0;
|
|
int num2 = z.inflateInit(15, num != 0);
|
|
}
|
|
this.input = input;
|
|
bool flag = z.istate == (ulong)0L;
|
|
this.z = z;
|
|
this.compress = flag;
|
|
byte[] array3 = this.buf;
|
|
z.next_in = array3;
|
|
ZStream zstream2 = this.z;
|
|
int num3 = 0;
|
|
zstream2.next_in_index = num3;
|
|
this.z.avail_in = num3;
|
|
}
|
|
|
|
// Token: 0x06007D11 RID: 32017 RVA: 0x001A3E78 File Offset: 0x001A2078
|
|
[Token(Token = "0x6007D11")]
|
|
[Address(RVA = "0x2036900", Offset = "0x2035300", VA = "0x182036900")]
|
|
public ZInputStream(Stream input, int level)
|
|
{
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
this.input = input;
|
|
this.compress = true;
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
int num = 0;
|
|
this.z = zstream;
|
|
int num2 = 0;
|
|
int num3 = zstream.deflateInit(level, 15, num2 != 0);
|
|
ZStream zstream2 = this.z;
|
|
byte[] array3 = this.buf;
|
|
zstream2.next_in = array3;
|
|
this.z.next_in_index = num;
|
|
this.z.avail_in = num;
|
|
}
|
|
|
|
// Token: 0x06007D12 RID: 32018 RVA: 0x001A3F20 File Offset: 0x001A2120
|
|
[Token(Token = "0x6007D12")]
|
|
[Address(RVA = "0x2036A50", Offset = "0x2035450", VA = "0x182036A50")]
|
|
public ZInputStream(Stream input, int level, bool nowrap)
|
|
{
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
this.input = input;
|
|
this.compress = true;
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
int num = 0;
|
|
this.z = zstream;
|
|
int num2 = zstream.deflateInit(level, 15, nowrap);
|
|
ZStream zstream2 = this.z;
|
|
byte[] array3 = this.buf;
|
|
zstream2.next_in = array3;
|
|
this.z.next_in_index = num;
|
|
this.z.avail_in = num;
|
|
}
|
|
|
|
// Token: 0x17001453 RID: 5203
|
|
// (get) Token: 0x06007D13 RID: 32019 RVA: 0x001A3FC4 File Offset: 0x001A21C4
|
|
[Token(Token = "0x17001453")]
|
|
public sealed override bool CanRead
|
|
{
|
|
[Token(Token = "0x6007D13")]
|
|
[Address(RVA = "0x2036EC0", Offset = "0x20358C0", VA = "0x182036EC0", Slot = "7")]
|
|
get
|
|
{
|
|
return !this.closed;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001454 RID: 5204
|
|
// (get) Token: 0x06007D14 RID: 32020 RVA: 0x001A3FDC File Offset: 0x001A21DC
|
|
[Token(Token = "0x17001454")]
|
|
public sealed override bool CanSeek
|
|
{
|
|
[Token(Token = "0x6007D14")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001455 RID: 5205
|
|
// (get) Token: 0x06007D15 RID: 32021 RVA: 0x001A3FEC File Offset: 0x001A21EC
|
|
[Token(Token = "0x17001455")]
|
|
public sealed override bool CanWrite
|
|
{
|
|
[Token(Token = "0x6007D15")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "9")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D16 RID: 32022 RVA: 0x001A3FFC File Offset: 0x001A21FC
|
|
[Token(Token = "0x6007D16")]
|
|
[Address(RVA = "0x2036320", Offset = "0x2034D20", VA = "0x182036320", Slot = "15")]
|
|
public override void Close()
|
|
{
|
|
if (!this.closed)
|
|
{
|
|
Stream stream = this.input;
|
|
this.closed = true;
|
|
int writeTimeout = stream.WriteTimeout;
|
|
base.Close();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D17 RID: 32023 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6007D17")]
|
|
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "17")]
|
|
public sealed override void Flush()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x17001456 RID: 5206
|
|
// (get) Token: 0x06007D18 RID: 32024 RVA: 0x001A4034 File Offset: 0x001A2234
|
|
// (set) Token: 0x06007D19 RID: 32025 RVA: 0x001A4048 File Offset: 0x001A2248
|
|
[Token(Token = "0x17001456")]
|
|
public virtual int FlushMode
|
|
{
|
|
[Token(Token = "0x6007D18")]
|
|
[Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60", Slot = "31")]
|
|
get
|
|
{
|
|
return this.flushLevel;
|
|
}
|
|
[Token(Token = "0x6007D19")]
|
|
[Address(RVA = "0x7B2580", Offset = "0x7B0F80", VA = "0x1807B2580", Slot = "32")]
|
|
set
|
|
{
|
|
this.flushLevel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001457 RID: 5207
|
|
// (get) Token: 0x06007D1A RID: 32026 RVA: 0x001A405C File Offset: 0x001A225C
|
|
[Token(Token = "0x17001457")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x6007D1A")]
|
|
[Address(RVA = "0x2036ED0", Offset = "0x20358D0", VA = "0x182036ED0", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D1A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::get_Length()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x17001458 RID: 5208
|
|
// (get) Token: 0x06007D1B RID: 32027 RVA: 0x001A4070 File Offset: 0x001A2270
|
|
// (set) Token: 0x06007D1C RID: 32028 RVA: 0x001A4084 File Offset: 0x001A2284
|
|
[Token(Token = "0x17001458")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x6007D1B")]
|
|
[Address(RVA = "0x2036F20", Offset = "0x2035920", VA = "0x182036F20", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D1B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::get_Position()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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(Token = "0x6007D1C")]
|
|
[Address(RVA = "0x2036F90", Offset = "0x2035990", VA = "0x182036F90", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D1C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::set_Position(System.Int64)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x06007D1D RID: 32029 RVA: 0x001A4098 File Offset: 0x001A2298
|
|
[Token(Token = "0x6007D1D")]
|
|
[Address(RVA = "0x2036460", Offset = "0x2034E60", VA = "0x182036460", Slot = "27")]
|
|
public override int Read(byte[] b, int off, int len)
|
|
{
|
|
if (len != 0)
|
|
{
|
|
this.z.next_out = b;
|
|
this.z.next_out_index = off;
|
|
this.z.avail_out = len;
|
|
ZStream zstream = this.z;
|
|
int num = 0;
|
|
if (zstream.avail_in == num && (this.nomoreinput ? 1 : 0) == num)
|
|
{
|
|
zstream.next_in_index = num;
|
|
byte[] array = this.buf;
|
|
ZStream zstream2 = this.z;
|
|
Stream stream = this.input;
|
|
this.z.avail_in = num;
|
|
this.nomoreinput = true;
|
|
}
|
|
if ((this.compress ? 1 : 0) != num)
|
|
{
|
|
Deflate dstate = zstream.dstate;
|
|
if (dstate == 0)
|
|
{
|
|
goto IL_C1;
|
|
}
|
|
int num2 = this.flushLevel;
|
|
int num3 = dstate.deflate(zstream, num2);
|
|
}
|
|
Inflate istate = zstream.istate;
|
|
if (istate != 0)
|
|
{
|
|
int num4 = this.flushLevel;
|
|
int num5 = istate.inflate(zstream, num4);
|
|
}
|
|
IL_C1:
|
|
bool flag = this.nomoreinput;
|
|
uint num6;
|
|
if (!flag || num6 != (uint)(-5))
|
|
{
|
|
if (num6 > (uint)1)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
if (((flag || num6 == (uint)1) && this.z.avail_out == len) || this.z.avail_out != len || num6 == (uint)0)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06007D1E RID: 32030 RVA: 0x001A41C4 File Offset: 0x001A23C4
|
|
[Token(Token = "0x6007D1E")]
|
|
[Address(RVA = "0x2035E20", Offset = "0x2034820", VA = "0x182035E20", Slot = "28")]
|
|
public override int ReadByte()
|
|
{
|
|
byte b = this.buf1[0];
|
|
return -1;
|
|
}
|
|
|
|
// Token: 0x06007D1F RID: 32031 RVA: 0x001A41E8 File Offset: 0x001A23E8
|
|
[Token(Token = "0x6007D1F")]
|
|
[Address(RVA = "0x20366B0", Offset = "0x20350B0", VA = "0x1820366B0", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D1F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::Seek(System.Int64,System.IO.SeekOrigin)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x06007D20 RID: 32032 RVA: 0x001A41FC File Offset: 0x001A23FC
|
|
[Token(Token = "0x6007D20")]
|
|
[Address(RVA = "0x2036700", Offset = "0x2035100", VA = "0x182036700", Slot = "26")]
|
|
public sealed override void SetLength(long value)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D20)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::SetLength(System.Int64)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x17001459 RID: 5209
|
|
// (get) Token: 0x06007D21 RID: 32033 RVA: 0x001A4210 File Offset: 0x001A2410
|
|
[Token(Token = "0x17001459")]
|
|
public virtual long TotalIn
|
|
{
|
|
[Token(Token = "0x6007D21")]
|
|
[Address(RVA = "0x2036F70", Offset = "0x2035970", VA = "0x182036F70", Slot = "33")]
|
|
get
|
|
{
|
|
return this.z.total_in;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700145A RID: 5210
|
|
// (get) Token: 0x06007D22 RID: 32034 RVA: 0x001A4230 File Offset: 0x001A2430
|
|
[Token(Token = "0x1700145A")]
|
|
public virtual long TotalOut
|
|
{
|
|
[Token(Token = "0x6007D22")]
|
|
[Address(RVA = "0x6BC910", Offset = "0x6BB310", VA = "0x1806BC910", Slot = "34")]
|
|
get
|
|
{
|
|
return this.z.total_out;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D23 RID: 32035 RVA: 0x001A4250 File Offset: 0x001A2450
|
|
[Token(Token = "0x6007D23")]
|
|
[Address(RVA = "0x2036750", Offset = "0x2035150", VA = "0x182036750", Slot = "29")]
|
|
public sealed override void Write(byte[] buffer, int offset, int count)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D23)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::Write(System.Byte[],System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
|
|
}
|
|
|
|
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: 0x040059DF RID: 23007
|
|
[Token(Token = "0x40059DF")]
|
|
private const int BufferSize = 512;
|
|
|
|
// Token: 0x040059E0 RID: 23008
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40059E0")]
|
|
protected ZStream z;
|
|
|
|
// Token: 0x040059E1 RID: 23009
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40059E1")]
|
|
protected int flushLevel;
|
|
|
|
// Token: 0x040059E2 RID: 23010
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40059E2")]
|
|
protected byte[] buf;
|
|
|
|
// Token: 0x040059E3 RID: 23011
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40059E3")]
|
|
protected byte[] buf1;
|
|
|
|
// Token: 0x040059E4 RID: 23012
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40059E4")]
|
|
protected bool compress;
|
|
|
|
// Token: 0x040059E5 RID: 23013
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40059E5")]
|
|
protected Stream input;
|
|
|
|
// Token: 0x040059E6 RID: 23014
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40059E6")]
|
|
protected bool closed;
|
|
|
|
// Token: 0x040059E7 RID: 23015
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x59")]
|
|
[Token(Token = "0x40059E7")]
|
|
private bool nomoreinput;
|
|
}
|
|
}
|