632 lines
28 KiB
C#
632 lines
28 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
|
|
{
|
|
// Token: 0x02001A15 RID: 6677
|
|
[Token(Token = "0x2001A15")]
|
|
public class ZOutputStream : Stream
|
|
{
|
|
// Token: 0x06009CCC RID: 40140 RVA: 0x00204A74 File Offset: 0x00202C74
|
|
[Token(Token = "0x6009CCC")]
|
|
[Address(RVA = "0x425D10", Offset = "0x424D10", VA = "0x180425D10")]
|
|
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: 0x06009CCD RID: 40141 RVA: 0x00204AA0 File Offset: 0x00202CA0
|
|
[Token(Token = "0x6009CCD")]
|
|
[Address(RVA = "0x4261F0", Offset = "0x4251F0", VA = "0x1804261F0")]
|
|
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: 0x06009CCE RID: 40142 RVA: 0x00204B40 File Offset: 0x00202D40
|
|
[Token(Token = "0x6009CCE")]
|
|
[Address(RVA = "0x426340", Offset = "0x425340", VA = "0x180426340")]
|
|
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: 0x06009CCF RID: 40143 RVA: 0x00204BDC File Offset: 0x00202DDC
|
|
[Token(Token = "0x6009CCF")]
|
|
[Address(RVA = "0x4260C0", Offset = "0x4250C0", VA = "0x1804260C0")]
|
|
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: 0x06009CD0 RID: 40144 RVA: 0x00204C70 File Offset: 0x00202E70
|
|
[Token(Token = "0x6009CD0")]
|
|
[Address(RVA = "0x4264A0", Offset = "0x4254A0", VA = "0x1804264A0")]
|
|
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: 0x06009CD1 RID: 40145 RVA: 0x00204CDC File Offset: 0x00202EDC
|
|
[Token(Token = "0x6009CD1")]
|
|
[Address(RVA = "0x4265C0", Offset = "0x4255C0", VA = "0x1804265C0")]
|
|
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: 0x170018F9 RID: 6393
|
|
// (get) Token: 0x06009CD2 RID: 40146 RVA: 0x00204D44 File Offset: 0x00202F44
|
|
[Token(Token = "0x170018F9")]
|
|
public sealed override bool CanRead
|
|
{
|
|
[Token(Token = "0x6009CD2")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018FA RID: 6394
|
|
// (get) Token: 0x06009CD3 RID: 40147 RVA: 0x00204D54 File Offset: 0x00202F54
|
|
[Token(Token = "0x170018FA")]
|
|
public sealed override bool CanSeek
|
|
{
|
|
[Token(Token = "0x6009CD3")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018FB RID: 6395
|
|
// (get) Token: 0x06009CD4 RID: 40148 RVA: 0x00204D64 File Offset: 0x00202F64
|
|
[Token(Token = "0x170018FB")]
|
|
public sealed override bool CanWrite
|
|
{
|
|
[Token(Token = "0x6009CD4")]
|
|
[Address(RVA = "0x4257B0", Offset = "0x4247B0", VA = "0x1804257B0", Slot = "9")]
|
|
get
|
|
{
|
|
return !this.closed;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CD5 RID: 40149 RVA: 0x00204D7C File Offset: 0x00202F7C
|
|
[Token(Token = "0x6009CD5")]
|
|
[Address(RVA = "0x425910", Offset = "0x424910", VA = "0x180425910", Slot = "15")]
|
|
public override void Close()
|
|
{
|
|
if (!this.closed)
|
|
{
|
|
this.DoClose();
|
|
base.Close();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CD6 RID: 40150 RVA: 0x00204DA0 File Offset: 0x00202FA0
|
|
[Token(Token = "0x6009CD6")]
|
|
[Address(RVA = "0x425940", Offset = "0x424940", VA = "0x180425940")]
|
|
private void DoClose()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
this.End();
|
|
this.closed = true;
|
|
Platform.Dispose(this.output);
|
|
this.output = (ulong)0L;
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x06009CD7 RID: 40151 RVA: 0x00204DD4 File Offset: 0x00202FD4
|
|
[Token(Token = "0x6009CD7")]
|
|
[Address(RVA = "0x425A50", Offset = "0x424A50", VA = "0x180425A50", 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_61;
|
|
}
|
|
InfBlocks blocks = istate.blocks;
|
|
if (blocks != 0)
|
|
{
|
|
blocks.free(zstream);
|
|
}
|
|
istate.blocks = num;
|
|
zstream.istate = num;
|
|
}
|
|
Deflate dstate = zstream.dstate;
|
|
if (dstate != 0)
|
|
{
|
|
int num2 = dstate.deflateEnd();
|
|
zstream.dstate = num;
|
|
}
|
|
IL_61:
|
|
ZStream zstream2 = this.z;
|
|
zstream2.next_in = num;
|
|
zstream2.next_out = num;
|
|
zstream2.msg = num;
|
|
zstream2._adler = num;
|
|
this.z = num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CD8 RID: 40152 RVA: 0x00204E78 File Offset: 0x00203078
|
|
[Token(Token = "0x6009CD8")]
|
|
[Address(RVA = "0x425AF0", Offset = "0x424AF0", VA = "0x180425AF0", 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: 0x06009CD9 RID: 40153 RVA: 0x00204F78 File Offset: 0x00203178
|
|
[Token(Token = "0x6009CD9")]
|
|
[Address(RVA = "0x425CE0", Offset = "0x424CE0", VA = "0x180425CE0", Slot = "17")]
|
|
public override void Flush()
|
|
{
|
|
bool canRead = this.output.CanRead;
|
|
}
|
|
|
|
// Token: 0x170018FC RID: 6396
|
|
// (get) Token: 0x06009CDA RID: 40154 RVA: 0x00204F98 File Offset: 0x00203198
|
|
// (set) Token: 0x06009CDB RID: 40155 RVA: 0x00204FAC File Offset: 0x002031AC
|
|
[Token(Token = "0x170018FC")]
|
|
public virtual int FlushMode
|
|
{
|
|
[Token(Token = "0x6009CDA")]
|
|
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0", Slot = "33")]
|
|
get
|
|
{
|
|
return this.flushLevel;
|
|
}
|
|
[Token(Token = "0x6009CDB")]
|
|
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0", Slot = "34")]
|
|
set
|
|
{
|
|
this.flushLevel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170018FD RID: 6397
|
|
// (get) Token: 0x06009CDC RID: 40156 RVA: 0x00204FC0 File Offset: 0x002031C0
|
|
[Token(Token = "0x170018FD")]
|
|
public sealed override long Length
|
|
{
|
|
[Token(Token = "0x6009CDC")]
|
|
[Address(RVA = "0x4266F0", Offset = "0x4256F0", VA = "0x1804266F0", Slot = "10")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CDC)
|
|
|
|
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: 0x170018FE RID: 6398
|
|
// (get) Token: 0x06009CDD RID: 40157 RVA: 0x00204FD4 File Offset: 0x002031D4
|
|
// (set) Token: 0x06009CDE RID: 40158 RVA: 0x00204FE8 File Offset: 0x002031E8
|
|
[Token(Token = "0x170018FE")]
|
|
public sealed override long Position
|
|
{
|
|
[Token(Token = "0x6009CDD")]
|
|
[Address(RVA = "0x426740", Offset = "0x425740", VA = "0x180426740", Slot = "11")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CDD)
|
|
|
|
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 = "0x6009CDE")]
|
|
[Address(RVA = "0x426790", Offset = "0x425790", VA = "0x180426790", Slot = "12")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CDE)
|
|
|
|
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: 0x06009CDF RID: 40159 RVA: 0x00204FFC File Offset: 0x002031FC
|
|
[Token(Token = "0x6009CDF")]
|
|
[Address(RVA = "0x425DC0", Offset = "0x424DC0", VA = "0x180425DC0", Slot = "27")]
|
|
public sealed override int Read(byte[] buffer, int offset, int count)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CDF)
|
|
|
|
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: 0x06009CE0 RID: 40160 RVA: 0x00205010 File Offset: 0x00203210
|
|
[Token(Token = "0x6009CE0")]
|
|
[Address(RVA = "0x425E10", Offset = "0x424E10", VA = "0x180425E10", Slot = "25")]
|
|
public sealed override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CE0)
|
|
|
|
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: 0x06009CE1 RID: 40161 RVA: 0x00205024 File Offset: 0x00203224
|
|
[Token(Token = "0x6009CE1")]
|
|
[Address(RVA = "0x425E60", Offset = "0x424E60", VA = "0x180425E60", Slot = "26")]
|
|
public sealed override void SetLength(long value)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CE1)
|
|
|
|
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: 0x170018FF RID: 6399
|
|
// (get) Token: 0x06009CE2 RID: 40162 RVA: 0x00205038 File Offset: 0x00203238
|
|
[Token(Token = "0x170018FF")]
|
|
public virtual long TotalIn
|
|
{
|
|
[Token(Token = "0x6009CE2")]
|
|
[Address(RVA = "0x425870", Offset = "0x424870", VA = "0x180425870", Slot = "35")]
|
|
get
|
|
{
|
|
return this.z.total_in;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001900 RID: 6400
|
|
// (get) Token: 0x06009CE3 RID: 40163 RVA: 0x00205058 File Offset: 0x00203258
|
|
[Token(Token = "0x17001900")]
|
|
public virtual long TotalOut
|
|
{
|
|
[Token(Token = "0x6009CE3")]
|
|
[Address(RVA = "0x425890", Offset = "0x424890", VA = "0x180425890", Slot = "36")]
|
|
get
|
|
{
|
|
return this.z.total_out;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CE4 RID: 40164 RVA: 0x00205078 File Offset: 0x00203278
|
|
[Token(Token = "0x6009CE4")]
|
|
[Address(RVA = "0x425EB0", Offset = "0x424EB0", VA = "0x180425EB0", 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: 0x06009CE5 RID: 40165 RVA: 0x002051AC File Offset: 0x002033AC
|
|
[Token(Token = "0x6009CE5")]
|
|
[Address(RVA = "0x4242E0", Offset = "0x4232E0", VA = "0x1804242E0", Slot = "30")]
|
|
public override void WriteByte(byte b)
|
|
{
|
|
this.buf1[0] = b;
|
|
int num = this.ReadByte();
|
|
}
|
|
|
|
// Token: 0x040069E4 RID: 27108
|
|
[Token(Token = "0x40069E4")]
|
|
private const int BufferSize = 512;
|
|
|
|
// Token: 0x040069E5 RID: 27109
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40069E5")]
|
|
protected ZStream z;
|
|
|
|
// Token: 0x040069E6 RID: 27110
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40069E6")]
|
|
protected int flushLevel;
|
|
|
|
// Token: 0x040069E7 RID: 27111
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40069E7")]
|
|
protected byte[] buf;
|
|
|
|
// Token: 0x040069E8 RID: 27112
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40069E8")]
|
|
protected byte[] buf1;
|
|
|
|
// Token: 0x040069E9 RID: 27113
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x40069E9")]
|
|
protected bool compress;
|
|
|
|
// Token: 0x040069EA RID: 27114
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40069EA")]
|
|
protected Stream output;
|
|
|
|
// Token: 0x040069EB RID: 27115
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40069EB")]
|
|
protected bool closed;
|
|
}
|
|
}
|