Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Utilities/Zlib/ZInputStream.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

548 lines
27 KiB
C#

using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A14 RID: 6676
[Token(Token = "0x2001A14")]
public class ZInputStream : Stream
{
// Token: 0x06009CB5 RID: 40117 RVA: 0x002043EC File Offset: 0x002025EC
[Token(Token = "0x6009CB5")]
[Address(RVA = "0x424CA0", Offset = "0x423CA0", VA = "0x180424CA0")]
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: 0x06009CB6 RID: 40118 RVA: 0x00204418 File Offset: 0x00202618
[Token(Token = "0x6009CB6")]
[Address(RVA = "0x425630", Offset = "0x424630", VA = "0x180425630")]
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: 0x06009CB7 RID: 40119 RVA: 0x002044F0 File Offset: 0x002026F0
[Token(Token = "0x6009CB7")]
[Address(RVA = "0x4254A0", Offset = "0x4244A0", VA = "0x1804254A0")]
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: 0x06009CB8 RID: 40120 RVA: 0x002045C4 File Offset: 0x002027C4
[Token(Token = "0x6009CB8")]
[Address(RVA = "0x425090", Offset = "0x424090", VA = "0x180425090")]
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: 0x06009CB9 RID: 40121 RVA: 0x00204690 File Offset: 0x00202890
[Token(Token = "0x6009CB9")]
[Address(RVA = "0x4251F0", Offset = "0x4241F0", VA = "0x1804251F0")]
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: 0x06009CBA RID: 40122 RVA: 0x00204738 File Offset: 0x00202938
[Token(Token = "0x6009CBA")]
[Address(RVA = "0x425340", Offset = "0x424340", VA = "0x180425340")]
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: 0x170018F1 RID: 6385
// (get) Token: 0x06009CBB RID: 40123 RVA: 0x002047DC File Offset: 0x002029DC
[Token(Token = "0x170018F1")]
public sealed override bool CanRead
{
[Token(Token = "0x6009CBB")]
[Address(RVA = "0x4257B0", Offset = "0x4247B0", VA = "0x1804257B0", Slot = "7")]
get
{
return !this.closed;
}
}
// Token: 0x170018F2 RID: 6386
// (get) Token: 0x06009CBC RID: 40124 RVA: 0x002047F4 File Offset: 0x002029F4
[Token(Token = "0x170018F2")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009CBC")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x170018F3 RID: 6387
// (get) Token: 0x06009CBD RID: 40125 RVA: 0x00204804 File Offset: 0x00202A04
[Token(Token = "0x170018F3")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009CBD")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
}
}
// Token: 0x06009CBE RID: 40126 RVA: 0x00204814 File Offset: 0x00202A14
[Token(Token = "0x6009CBE")]
[Address(RVA = "0x424C20", Offset = "0x423C20", VA = "0x180424C20", Slot = "15")]
public override void Close()
{
if (!this.closed)
{
Stream stream = this.input;
this.closed = true;
Platform.Dispose(stream);
base.Close();
}
}
// Token: 0x06009CBF RID: 40127 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009CBF")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
public sealed override void Flush()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x170018F4 RID: 6388
// (get) Token: 0x06009CC0 RID: 40128 RVA: 0x00204844 File Offset: 0x00202A44
// (set) Token: 0x06009CC1 RID: 40129 RVA: 0x00204858 File Offset: 0x00202A58
[Token(Token = "0x170018F4")]
public virtual int FlushMode
{
[Token(Token = "0x6009CC0")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0", Slot = "31")]
get
{
return this.flushLevel;
}
[Token(Token = "0x6009CC1")]
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0", Slot = "32")]
set
{
this.flushLevel = value;
}
}
// Token: 0x170018F5 RID: 6389
// (get) Token: 0x06009CC2 RID: 40130 RVA: 0x0020486C File Offset: 0x00202A6C
[Token(Token = "0x170018F5")]
public sealed override long Length
{
[Token(Token = "0x6009CC2")]
[Address(RVA = "0x4257D0", Offset = "0x4247D0", VA = "0x1804257D0", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (06009CC2)
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: 0x170018F6 RID: 6390
// (get) Token: 0x06009CC3 RID: 40131 RVA: 0x00204880 File Offset: 0x00202A80
// (set) Token: 0x06009CC4 RID: 40132 RVA: 0x00204894 File Offset: 0x00202A94
[Token(Token = "0x170018F6")]
public sealed override long Position
{
[Token(Token = "0x6009CC3")]
[Address(RVA = "0x425820", Offset = "0x424820", VA = "0x180425820", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009CC3)
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 = "0x6009CC4")]
[Address(RVA = "0x4258C0", Offset = "0x4248C0", VA = "0x1804258C0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009CC4)
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: 0x06009CC5 RID: 40133 RVA: 0x002048A8 File Offset: 0x00202AA8
[Token(Token = "0x6009CC5")]
[Address(RVA = "0x424D50", Offset = "0x423D50", VA = "0x180424D50", 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: 0x06009CC6 RID: 40134 RVA: 0x002049D4 File Offset: 0x00202BD4
[Token(Token = "0x6009CC6")]
[Address(RVA = "0x424720", Offset = "0x423720", VA = "0x180424720", Slot = "28")]
public override int ReadByte()
{
byte b = this.buf1[0];
return -1;
}
// Token: 0x06009CC7 RID: 40135 RVA: 0x002049F8 File Offset: 0x00202BF8
[Token(Token = "0x6009CC7")]
[Address(RVA = "0x424FA0", Offset = "0x423FA0", VA = "0x180424FA0", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009CC7)
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: 0x06009CC8 RID: 40136 RVA: 0x00204A0C File Offset: 0x00202C0C
[Token(Token = "0x6009CC8")]
[Address(RVA = "0x424FF0", Offset = "0x423FF0", VA = "0x180424FF0", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009CC8)
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: 0x170018F7 RID: 6391
// (get) Token: 0x06009CC9 RID: 40137 RVA: 0x00204A20 File Offset: 0x00202C20
[Token(Token = "0x170018F7")]
public virtual long TotalIn
{
[Token(Token = "0x6009CC9")]
[Address(RVA = "0x425870", Offset = "0x424870", VA = "0x180425870", Slot = "33")]
get
{
return this.z.total_in;
}
}
// Token: 0x170018F8 RID: 6392
// (get) Token: 0x06009CCA RID: 40138 RVA: 0x00204A40 File Offset: 0x00202C40
[Token(Token = "0x170018F8")]
public virtual long TotalOut
{
[Token(Token = "0x6009CCA")]
[Address(RVA = "0x425890", Offset = "0x424890", VA = "0x180425890", Slot = "34")]
get
{
return this.z.total_out;
}
}
// Token: 0x06009CCB RID: 40139 RVA: 0x00204A60 File Offset: 0x00202C60
[Token(Token = "0x6009CCB")]
[Address(RVA = "0x425040", Offset = "0x424040", VA = "0x180425040", Slot = "29")]
public sealed override void Write(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009CCB)
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: 0x040069DB RID: 27099
[Token(Token = "0x40069DB")]
private const int BufferSize = 512;
// Token: 0x040069DC RID: 27100
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069DC")]
protected ZStream z;
// Token: 0x040069DD RID: 27101
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069DD")]
protected int flushLevel;
// Token: 0x040069DE RID: 27102
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069DE")]
protected byte[] buf;
// Token: 0x040069DF RID: 27103
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40069DF")]
protected byte[] buf1;
// Token: 0x040069E0 RID: 27104
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40069E0")]
protected bool compress;
// Token: 0x040069E1 RID: 27105
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40069E1")]
protected Stream input;
// Token: 0x040069E2 RID: 27106
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40069E2")]
protected bool closed;
// Token: 0x040069E3 RID: 27107
[FieldOffset(Offset = "0x59")]
[Token(Token = "0x40069E3")]
private bool nomoreinput;
}
}