641 lines
29 KiB
C#
641 lines
29 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
|
|
{
|
|
// Token: 0x02001358 RID: 4952
|
|
[Token(Token = "0x2001358")]
|
|
[StructLayout(3)]
|
|
public class ZOutputStream : Stream
|
|
{
|
|
// Token: 0x06007D24 RID: 32036 RVA: 0x001A4264 File Offset: 0x001A2464
|
|
[Token(Token = "0x6007D24")]
|
|
[Address(RVA = "0x2037420", Offset = "0x2035E20", VA = "0x182037420")]
|
|
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: 0x06007D25 RID: 32037 RVA: 0x001A4290 File Offset: 0x001A2490
|
|
[Token(Token = "0x6007D25")]
|
|
[Address(RVA = "0x2037900", Offset = "0x2036300", VA = "0x182037900")]
|
|
public ZOutputStream(Stream output)
|
|
{
|
|
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.output = output;
|
|
bool flag = zstream.istate == (ulong)0L;
|
|
this.z = zstream;
|
|
this.compress = flag;
|
|
}
|
|
|
|
// Token: 0x06007D26 RID: 32038 RVA: 0x001A4330 File Offset: 0x001A2530
|
|
[Token(Token = "0x6007D26")]
|
|
[Address(RVA = "0x2037A50", Offset = "0x2036450", VA = "0x182037A50")]
|
|
public ZOutputStream(Stream output, 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.output = output;
|
|
this.z = zstream;
|
|
bool flag = zstream.istate == (ulong)0L;
|
|
this.compress = flag;
|
|
}
|
|
|
|
// Token: 0x06007D27 RID: 32039 RVA: 0x001A43CC File Offset: 0x001A25CC
|
|
[Token(Token = "0x6007D27")]
|
|
[Address(RVA = "0x20377D0", Offset = "0x20361D0", VA = "0x1820377D0")]
|
|
public ZOutputStream(Stream output, 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.output = output;
|
|
bool flag = z.istate == (ulong)0L;
|
|
this.z = z;
|
|
this.compress = flag;
|
|
}
|
|
|
|
// Token: 0x06007D28 RID: 32040 RVA: 0x001A4460 File Offset: 0x001A2660
|
|
[Token(Token = "0x6007D28")]
|
|
[Address(RVA = "0x2037BB0", Offset = "0x20365B0", VA = "0x182037BB0")]
|
|
public ZOutputStream(Stream output, int level)
|
|
{
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
this.output = output;
|
|
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, num != 0);
|
|
}
|
|
|
|
// Token: 0x06007D29 RID: 32041 RVA: 0x001A44CC File Offset: 0x001A26CC
|
|
[Token(Token = "0x6007D29")]
|
|
[Address(RVA = "0x2037CD0", Offset = "0x20366D0", VA = "0x182037CD0")]
|
|
public ZOutputStream(Stream output, int level, bool nowrap)
|
|
{
|
|
byte[] array = new byte[512];
|
|
this.buf = array;
|
|
byte[] array2 = new byte[1];
|
|
this.buf1 = array2;
|
|
base..ctor();
|
|
this.output = output;
|
|
this.compress = true;
|
|
ZStream zstream = new ZStream();
|
|
Adler32 adler = new Adler32();
|
|
zstream._adler = adler;
|
|
this.z = zstream;
|
|
int num = zstream.deflateInit(level, 15, nowrap);
|
|
}
|
|
|
|
// Token: 0x1700145B RID: 5211
|
|
// (get) Token: 0x06007D2A RID: 32042 RVA: 0x001A4534 File Offset: 0x001A2734
|
|
[Token(Token = "0x1700145B")]
|
|
public sealed override bool CanRead
|
|
{
|
|
[Token(Token = "0x6007D2A")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "7")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700145C RID: 5212
|
|
// (get) Token: 0x06007D2B RID: 32043 RVA: 0x001A4544 File Offset: 0x001A2744
|
|
[Token(Token = "0x1700145C")]
|
|
public sealed override bool CanSeek
|
|
{
|
|
[Token(Token = "0x6007D2B")]
|
|
[Address(RVA = "0x413970", Offset = "0x412370", VA = "0x180413970", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700145D RID: 5213
|
|
// (get) Token: 0x06007D2C RID: 32044 RVA: 0x001A4554 File Offset: 0x001A2754
|
|
[Token(Token = "0x1700145D")]
|
|
public sealed override bool CanWrite
|
|
{
|
|
[Token(Token = "0x6007D2C")]
|
|
[Address(RVA = "0x2036EC0", Offset = "0x20358C0", VA = "0x182036EC0", Slot = "9")]
|
|
get
|
|
{
|
|
return !this.closed;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D2D RID: 32045 RVA: 0x001A456C File Offset: 0x001A276C
|
|
[Token(Token = "0x6007D2D")]
|
|
[Address(RVA = "0x2036FE0", Offset = "0x20359E0", VA = "0x182036FE0", Slot = "15")]
|
|
public override void Close()
|
|
{
|
|
if (!this.closed)
|
|
{
|
|
this.DoClose();
|
|
base.Close();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D2E RID: 32046 RVA: 0x001A4590 File Offset: 0x001A2790
|
|
[Token(Token = "0x6007D2E")]
|
|
[Address(RVA = "0x2037010", Offset = "0x2035A10", VA = "0x182037010")]
|
|
private void DoClose()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
this.End();
|
|
int num2 = 0;
|
|
num2++;
|
|
this.closed = true;
|
|
int writeTimeout = this.output.WriteTimeout;
|
|
this.output = (ulong)0L;
|
|
if (num2 != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06007D2F RID: 32047 RVA: 0x001A45D0 File Offset: 0x001A27D0
|
|
[Token(Token = "0x6007D2F")]
|
|
[Address(RVA = "0x2037150", Offset = "0x2035B50", VA = "0x182037150", Slot = "31")]
|
|
public virtual void End()
|
|
{
|
|
ZStream zstream = this.z;
|
|
if (zstream != 0)
|
|
{
|
|
int num = 0;
|
|
if ((this.compress ? 1 : 0) == num)
|
|
{
|
|
Inflate istate = zstream.istate;
|
|
if (istate == 0)
|
|
{
|
|
goto IL_85;
|
|
}
|
|
int num2 = istate.inflateEnd(zstream);
|
|
zstream.istate = num;
|
|
}
|
|
Deflate dstate = zstream.dstate;
|
|
if (dstate != 0)
|
|
{
|
|
int status = dstate.status;
|
|
if (status == 42 || status == 113 || status == 666)
|
|
{
|
|
dstate.pending_buf = num;
|
|
dstate.head = num;
|
|
dstate.prev = num;
|
|
dstate.window = num;
|
|
}
|
|
zstream.dstate = num;
|
|
}
|
|
IL_85:
|
|
ZStream zstream2 = this.z;
|
|
zstream2.next_in = num;
|
|
zstream2.next_out = num;
|
|
zstream2.msg = num;
|
|
zstream2._adler = num;
|
|
this.z = num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D30 RID: 32048 RVA: 0x001A4698 File Offset: 0x001A2898
|
|
[Token(Token = "0x6007D30")]
|
|
[Address(RVA = "0x2037200", Offset = "0x2035C00", VA = "0x182037200", Slot = "32")]
|
|
public virtual void Finish()
|
|
{
|
|
int num;
|
|
for (;;)
|
|
{
|
|
ZStream zstream = this.z;
|
|
num = 0;
|
|
byte[] array = this.buf;
|
|
zstream.next_out = array;
|
|
this.z.next_out_index = num;
|
|
byte[] array2 = this.buf;
|
|
ZStream zstream2 = this.z;
|
|
int length = array2.Length;
|
|
zstream2.avail_out = length;
|
|
ZStream zstream3 = this.z;
|
|
if ((this.compress ? 1 : 0) == num)
|
|
{
|
|
goto IL_6E;
|
|
}
|
|
Deflate dstate = zstream3.dstate;
|
|
if (dstate != 0)
|
|
{
|
|
int num2 = dstate.deflate(zstream3, 4);
|
|
goto IL_6E;
|
|
}
|
|
IL_88:
|
|
uint num3;
|
|
if (num3 > (uint)1)
|
|
{
|
|
goto IL_CD;
|
|
}
|
|
byte[] array3 = this.buf;
|
|
ZStream zstream4 = this.z;
|
|
if (array3.Length > 0)
|
|
{
|
|
break;
|
|
}
|
|
continue;
|
|
IL_6E:
|
|
Inflate istate = zstream3.istate;
|
|
if (istate != 0)
|
|
{
|
|
int num4 = istate.inflate(zstream3, 4);
|
|
goto IL_88;
|
|
}
|
|
goto IL_88;
|
|
}
|
|
int num5 = this.output.ReadByte();
|
|
if (this.z.avail_out == num)
|
|
{
|
|
}
|
|
((IDisposable)this).Dispose();
|
|
return;
|
|
IL_CD:
|
|
if (this.compress)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007D31 RID: 32049 RVA: 0x001A4798 File Offset: 0x001A2998
|
|
[Token(Token = "0x6007D31")]
|
|
[Address(RVA = "0x20373F0", Offset = "0x2035DF0", VA = "0x1820373F0", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
bool canRead = this.output.CanRead;
|
|
}
|
|
|
|
// Token: 0x1700145E RID: 5214
|
|
// (get) Token: 0x06007D32 RID: 32050 RVA: 0x001A47B8 File Offset: 0x001A29B8
|
|
// (set) Token: 0x06007D33 RID: 32051 RVA: 0x001A47CC File Offset: 0x001A29CC
|
|
[Token(Token = "0x1700145E")]
|
|
public virtual int FlushMode
|
|
{
|
|
[Token(Token = "0x6007D32")]
|
|
[Address(RVA = "0x3EDF60", Offset = "0x3EC960", VA = "0x1803EDF60", Slot = "33")]
|
|
get
|
|
{
|
|
return this.flushLevel;
|
|
}
|
|
[Token(Token = "0x6007D33")]
|
|
[Address(RVA = "0x7B2580", Offset = "0x7B0F80", VA = "0x1807B2580", Slot = "34")]
|
|
set
|
|
{
|
|
this.flushLevel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700145F RID: 5215
|
|
// (get) Token: 0x06007D34 RID: 32052 RVA: 0x001A47E0 File Offset: 0x001A29E0
|
|
[Token(Token = "0x1700145F")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x6007D34")]
|
|
[Address(RVA = "0x2037E00", Offset = "0x2036800", VA = "0x182037E00", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D34)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::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: 0x17001460 RID: 5216
|
|
// (get) Token: 0x06007D35 RID: 32053 RVA: 0x001A47F4 File Offset: 0x001A29F4
|
|
// (set) Token: 0x06007D36 RID: 32054 RVA: 0x001A4808 File Offset: 0x001A2A08
|
|
[Token(Token = "0x17001460")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x6007D35")]
|
|
[Address(RVA = "0x2037E50", Offset = "0x2036850", VA = "0x182037E50", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D35)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::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 = "0x6007D36")]
|
|
[Address(RVA = "0x2037EA0", Offset = "0x20368A0", VA = "0x182037EA0", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D36)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::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: 0x06007D37 RID: 32055 RVA: 0x001A481C File Offset: 0x001A2A1C
|
|
[Token(Token = "0x6007D37")]
|
|
[Address(RVA = "0x20374D0", Offset = "0x2035ED0", VA = "0x1820374D0", Slot = "27")]
|
|
public sealed override int Read(byte[] buffer, int offset, int count)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D37)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::Read(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: 0x06007D38 RID: 32056 RVA: 0x001A4830 File Offset: 0x001A2A30
|
|
[Token(Token = "0x6007D38")]
|
|
[Address(RVA = "0x2037520", Offset = "0x2035F20", VA = "0x182037520", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D38)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::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: 0x06007D39 RID: 32057 RVA: 0x001A4844 File Offset: 0x001A2A44
|
|
[Token(Token = "0x6007D39")]
|
|
[Address(RVA = "0x2037570", Offset = "0x2035F70", VA = "0x182037570", Slot = "26")]
|
|
public sealed override void SetLength(long value)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007D39)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::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: 0x17001461 RID: 5217
|
|
// (get) Token: 0x06007D3A RID: 32058 RVA: 0x001A4858 File Offset: 0x001A2A58
|
|
[Token(Token = "0x17001461")]
|
|
public virtual long TotalIn
|
|
{
|
|
[Token(Token = "0x6007D3A")]
|
|
[Address(RVA = "0x2036F70", Offset = "0x2035970", VA = "0x182036F70", Slot = "35")]
|
|
get
|
|
{
|
|
return this.z.total_in;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001462 RID: 5218
|
|
// (get) Token: 0x06007D3B RID: 32059 RVA: 0x001A4878 File Offset: 0x001A2A78
|
|
[Token(Token = "0x17001462")]
|
|
public virtual long TotalOut
|
|
{
|
|
[Token(Token = "0x6007D3B")]
|
|
[Address(RVA = "0x6BC910", Offset = "0x6BB310", VA = "0x1806BC910", Slot = "36")]
|
|
get
|
|
{
|
|
return this.z.total_out;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D3C RID: 32060 RVA: 0x001A4898 File Offset: 0x001A2A98
|
|
[Token(Token = "0x6007D3C")]
|
|
[Address(RVA = "0x20375C0", Offset = "0x2035FC0", VA = "0x1820375C0", Slot = "29")]
|
|
public override void Write(byte[] b, int off, int len)
|
|
{
|
|
if (len != 0)
|
|
{
|
|
this.z.next_in = b;
|
|
this.z.next_in_index = off;
|
|
this.z.avail_in = len;
|
|
ZStream zstream = this.z;
|
|
int num = 0;
|
|
byte[] array = this.buf;
|
|
zstream.next_out = array;
|
|
this.z.next_out_index = num;
|
|
byte[] array2 = this.buf;
|
|
ZStream zstream2 = this.z;
|
|
int length = array2.Length;
|
|
zstream2.avail_out = length;
|
|
ZStream zstream3 = this.z;
|
|
if ((this.compress ? 1 : 0) != num)
|
|
{
|
|
Deflate dstate = zstream3.dstate;
|
|
if (dstate == 0)
|
|
{
|
|
goto IL_C5;
|
|
}
|
|
int num2 = this.flushLevel;
|
|
int num3 = dstate.deflate(zstream3, num2);
|
|
}
|
|
Inflate istate = zstream3.istate;
|
|
if (istate != 0)
|
|
{
|
|
int num4 = this.flushLevel;
|
|
int num5 = istate.inflate(zstream3, num4);
|
|
}
|
|
IL_C5:
|
|
uint num6;
|
|
if (num6 != (uint)0)
|
|
{
|
|
if ("{il2cpp field on {'constant25' (constant value of type Cpp2IL.Core.Analysis.ResultModels.StackPointer)}, offset 0x48}" != (ulong)0L)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
byte[] array3 = this.buf;
|
|
ZStream zstream4 = this.z;
|
|
int num7 = this.output.ReadByte();
|
|
if (this.z.avail_out == num)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007D3D RID: 32061 RVA: 0x001A49CC File Offset: 0x001A2BCC
|
|
[Token(Token = "0x6007D3D")]
|
|
[Address(RVA = "0x20359F0", Offset = "0x20343F0", VA = "0x1820359F0", Slot = "30")]
|
|
public override void WriteByte(byte b)
|
|
{
|
|
this.buf1[0] = b;
|
|
int num = this.ReadByte();
|
|
}
|
|
|
|
// Token: 0x040059E8 RID: 23016
|
|
[Token(Token = "0x40059E8")]
|
|
private const int BufferSize = 512;
|
|
|
|
// Token: 0x040059E9 RID: 23017
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40059E9")]
|
|
protected ZStream z;
|
|
|
|
// Token: 0x040059EA RID: 23018
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40059EA")]
|
|
protected int flushLevel;
|
|
|
|
// Token: 0x040059EB RID: 23019
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40059EB")]
|
|
protected byte[] buf;
|
|
|
|
// Token: 0x040059EC RID: 23020
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40059EC")]
|
|
protected byte[] buf1;
|
|
|
|
// Token: 0x040059ED RID: 23021
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40059ED")]
|
|
protected bool compress;
|
|
|
|
// Token: 0x040059EE RID: 23022
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40059EE")]
|
|
protected Stream output;
|
|
|
|
// Token: 0x040059EF RID: 23023
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40059EF")]
|
|
protected bool closed;
|
|
}
|
|
}
|