548 lines
27 KiB
C#
548 lines
27 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
|
|
{
|
|
// Token: 0x02001934 RID: 6452
|
|
[Token(Token = "0x2001934")]
|
|
public class ZInputStream : Stream
|
|
{
|
|
// Token: 0x060098E7 RID: 39143 RVA: 0x001FB354 File Offset: 0x001F9554
|
|
[Token(Token = "0x60098E7")]
|
|
[Address(RVA = "0x1637810", Offset = "0x1636610", VA = "0x181637810")]
|
|
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: 0x060098E8 RID: 39144 RVA: 0x001FB380 File Offset: 0x001F9580
|
|
[Token(Token = "0x60098E8")]
|
|
[Address(RVA = "0x16381A0", Offset = "0x1636FA0", VA = "0x1816381A0")]
|
|
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: 0x060098E9 RID: 39145 RVA: 0x001FB458 File Offset: 0x001F9658
|
|
[Token(Token = "0x60098E9")]
|
|
[Address(RVA = "0x1638010", Offset = "0x1636E10", VA = "0x181638010")]
|
|
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: 0x060098EA RID: 39146 RVA: 0x001FB52C File Offset: 0x001F972C
|
|
[Token(Token = "0x60098EA")]
|
|
[Address(RVA = "0x1637C00", Offset = "0x1636A00", VA = "0x181637C00")]
|
|
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: 0x060098EB RID: 39147 RVA: 0x001FB5F8 File Offset: 0x001F97F8
|
|
[Token(Token = "0x60098EB")]
|
|
[Address(RVA = "0x1637D60", Offset = "0x1636B60", VA = "0x181637D60")]
|
|
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: 0x060098EC RID: 39148 RVA: 0x001FB6A0 File Offset: 0x001F98A0
|
|
[Token(Token = "0x60098EC")]
|
|
[Address(RVA = "0x1637EB0", Offset = "0x1636CB0", VA = "0x181637EB0")]
|
|
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: 0x17001854 RID: 6228
|
|
// (get) Token: 0x060098ED RID: 39149 RVA: 0x001FB744 File Offset: 0x001F9944
|
|
[Token(Token = "0x17001854")]
|
|
public sealed override bool CanRead
|
|
{
|
|
[Token(Token = "0x60098ED")]
|
|
[Address(RVA = "0x1638320", Offset = "0x1637120", VA = "0x181638320", Slot = "7")]
|
|
get
|
|
{
|
|
return !this.closed;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001855 RID: 6229
|
|
// (get) Token: 0x060098EE RID: 39150 RVA: 0x001FB75C File Offset: 0x001F995C
|
|
[Token(Token = "0x17001855")]
|
|
public sealed override bool CanSeek
|
|
{
|
|
[Token(Token = "0x60098EE")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001856 RID: 6230
|
|
// (get) Token: 0x060098EF RID: 39151 RVA: 0x001FB76C File Offset: 0x001F996C
|
|
[Token(Token = "0x17001856")]
|
|
public sealed override bool CanWrite
|
|
{
|
|
[Token(Token = "0x60098EF")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "9")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x060098F0 RID: 39152 RVA: 0x001FB77C File Offset: 0x001F997C
|
|
[Token(Token = "0x60098F0")]
|
|
[Address(RVA = "0x1637790", Offset = "0x1636590", VA = "0x181637790", Slot = "15")]
|
|
public override void Close()
|
|
{
|
|
if (!this.closed)
|
|
{
|
|
Stream stream = this.input;
|
|
this.closed = true;
|
|
Platform.Dispose(stream);
|
|
base.Close();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060098F1 RID: 39153 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x60098F1")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
|
public sealed override void Flush()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x17001857 RID: 6231
|
|
// (get) Token: 0x060098F2 RID: 39154 RVA: 0x001FB7AC File Offset: 0x001F99AC
|
|
// (set) Token: 0x060098F3 RID: 39155 RVA: 0x001FB7C0 File Offset: 0x001F99C0
|
|
[Token(Token = "0x17001857")]
|
|
public virtual int FlushMode
|
|
{
|
|
[Token(Token = "0x60098F2")]
|
|
[Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0", Slot = "31")]
|
|
get
|
|
{
|
|
return this.flushLevel;
|
|
}
|
|
[Token(Token = "0x60098F3")]
|
|
[Address(RVA = "0x6CBD90", Offset = "0x6CAB90", VA = "0x1806CBD90", Slot = "32")]
|
|
set
|
|
{
|
|
this.flushLevel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001858 RID: 6232
|
|
// (get) Token: 0x060098F4 RID: 39156 RVA: 0x001FB7D4 File Offset: 0x001F99D4
|
|
[Token(Token = "0x17001858")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x60098F4")]
|
|
[Address(RVA = "0x1638330", Offset = "0x1637130", VA = "0x181638330", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098F4)
|
|
|
|
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: 0x17001859 RID: 6233
|
|
// (get) Token: 0x060098F5 RID: 39157 RVA: 0x001FB7E8 File Offset: 0x001F99E8
|
|
// (set) Token: 0x060098F6 RID: 39158 RVA: 0x001FB7FC File Offset: 0x001F99FC
|
|
[Token(Token = "0x17001859")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x60098F5")]
|
|
[Address(RVA = "0x1638380", Offset = "0x1637180", VA = "0x181638380", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098F5)
|
|
|
|
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 = "0x60098F6")]
|
|
[Address(RVA = "0x16383F0", Offset = "0x16371F0", VA = "0x1816383F0", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098F6)
|
|
|
|
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: 0x060098F7 RID: 39159 RVA: 0x001FB810 File Offset: 0x001F9A10
|
|
[Token(Token = "0x60098F7")]
|
|
[Address(RVA = "0x16378C0", Offset = "0x16366C0", VA = "0x1816378C0", 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: 0x060098F8 RID: 39160 RVA: 0x001FB93C File Offset: 0x001F9B3C
|
|
[Token(Token = "0x60098F8")]
|
|
[Address(RVA = "0x1637290", Offset = "0x1636090", VA = "0x181637290", Slot = "28")]
|
|
public override int ReadByte()
|
|
{
|
|
byte b = this.buf1[0];
|
|
return -1;
|
|
}
|
|
|
|
// Token: 0x060098F9 RID: 39161 RVA: 0x001FB960 File Offset: 0x001F9B60
|
|
[Token(Token = "0x60098F9")]
|
|
[Address(RVA = "0x1637B10", Offset = "0x1636910", VA = "0x181637B10", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098F9)
|
|
|
|
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: 0x060098FA RID: 39162 RVA: 0x001FB974 File Offset: 0x001F9B74
|
|
[Token(Token = "0x60098FA")]
|
|
[Address(RVA = "0x1637B60", Offset = "0x1636960", VA = "0x181637B60", Slot = "26")]
|
|
public sealed override void SetLength(long value)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098FA)
|
|
|
|
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: 0x1700185A RID: 6234
|
|
// (get) Token: 0x060098FB RID: 39163 RVA: 0x001FB988 File Offset: 0x001F9B88
|
|
[Token(Token = "0x1700185A")]
|
|
public virtual long TotalIn
|
|
{
|
|
[Token(Token = "0x60098FB")]
|
|
[Address(RVA = "0x16383D0", Offset = "0x16371D0", VA = "0x1816383D0", Slot = "33")]
|
|
get
|
|
{
|
|
return this.z.total_in;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700185B RID: 6235
|
|
// (get) Token: 0x060098FC RID: 39164 RVA: 0x001FB9A8 File Offset: 0x001F9BA8
|
|
[Token(Token = "0x1700185B")]
|
|
public virtual long TotalOut
|
|
{
|
|
[Token(Token = "0x60098FC")]
|
|
[Address(RVA = "0x130D260", Offset = "0x130C060", VA = "0x18130D260", Slot = "34")]
|
|
get
|
|
{
|
|
return this.z.total_out;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060098FD RID: 39165 RVA: 0x001FB9C8 File Offset: 0x001F9BC8
|
|
[Token(Token = "0x60098FD")]
|
|
[Address(RVA = "0x1637BB0", Offset = "0x16369B0", VA = "0x181637BB0", Slot = "29")]
|
|
public sealed override void Write(byte[] buffer, int offset, int count)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060098FD)
|
|
|
|
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: 0x04006822 RID: 26658
|
|
[Token(Token = "0x4006822")]
|
|
private const int BufferSize = 512;
|
|
|
|
// Token: 0x04006823 RID: 26659
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006823")]
|
|
protected ZStream z;
|
|
|
|
// Token: 0x04006824 RID: 26660
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006824")]
|
|
protected int flushLevel;
|
|
|
|
// Token: 0x04006825 RID: 26661
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4006825")]
|
|
protected byte[] buf;
|
|
|
|
// Token: 0x04006826 RID: 26662
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4006826")]
|
|
protected byte[] buf1;
|
|
|
|
// Token: 0x04006827 RID: 26663
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4006827")]
|
|
protected bool compress;
|
|
|
|
// Token: 0x04006828 RID: 26664
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4006828")]
|
|
protected Stream input;
|
|
|
|
// Token: 0x04006829 RID: 26665
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4006829")]
|
|
protected bool closed;
|
|
|
|
// Token: 0x0400682A RID: 26666
|
|
[FieldOffset(Offset = "0x59")]
|
|
[Token(Token = "0x400682A")]
|
|
private bool nomoreinput;
|
|
}
|
|
}
|