Files
2026-04-10 22:50:51 +02:00

632 lines
28 KiB
C#

using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001935 RID: 6453
[Token(Token = "0x2001935")]
public class ZOutputStream : Stream
{
// Token: 0x060098FE RID: 39166 RVA: 0x001FB9DC File Offset: 0x001F9BDC
[Token(Token = "0x60098FE")]
[Address(RVA = "0x1638840", Offset = "0x1637640", VA = "0x181638840")]
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: 0x060098FF RID: 39167 RVA: 0x001FBA08 File Offset: 0x001F9C08
[Token(Token = "0x60098FF")]
[Address(RVA = "0x1638D20", Offset = "0x1637B20", VA = "0x181638D20")]
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: 0x06009900 RID: 39168 RVA: 0x001FBAA8 File Offset: 0x001F9CA8
[Token(Token = "0x6009900")]
[Address(RVA = "0x1638E70", Offset = "0x1637C70", VA = "0x181638E70")]
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: 0x06009901 RID: 39169 RVA: 0x001FBB44 File Offset: 0x001F9D44
[Token(Token = "0x6009901")]
[Address(RVA = "0x1638BF0", Offset = "0x16379F0", VA = "0x181638BF0")]
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: 0x06009902 RID: 39170 RVA: 0x001FBBD8 File Offset: 0x001F9DD8
[Token(Token = "0x6009902")]
[Address(RVA = "0x1638FD0", Offset = "0x1637DD0", VA = "0x181638FD0")]
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: 0x06009903 RID: 39171 RVA: 0x001FBC44 File Offset: 0x001F9E44
[Token(Token = "0x6009903")]
[Address(RVA = "0x16390F0", Offset = "0x1637EF0", VA = "0x1816390F0")]
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: 0x1700185C RID: 6236
// (get) Token: 0x06009904 RID: 39172 RVA: 0x001FBCAC File Offset: 0x001F9EAC
[Token(Token = "0x1700185C")]
public sealed override bool CanRead
{
[Token(Token = "0x6009904")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
get
{
}
}
// Token: 0x1700185D RID: 6237
// (get) Token: 0x06009905 RID: 39173 RVA: 0x001FBCBC File Offset: 0x001F9EBC
[Token(Token = "0x1700185D")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009905")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
}
}
// Token: 0x1700185E RID: 6238
// (get) Token: 0x06009906 RID: 39174 RVA: 0x001FBCCC File Offset: 0x001F9ECC
[Token(Token = "0x1700185E")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009906")]
[Address(RVA = "0x1638320", Offset = "0x1637120", VA = "0x181638320", Slot = "9")]
get
{
return !this.closed;
}
}
// Token: 0x06009907 RID: 39175 RVA: 0x001FBCE4 File Offset: 0x001F9EE4
[Token(Token = "0x6009907")]
[Address(RVA = "0x1638440", Offset = "0x1637240", VA = "0x181638440", Slot = "15")]
public override void Close()
{
if (!this.closed)
{
this.DoClose();
base.Close();
return;
}
}
// Token: 0x06009908 RID: 39176 RVA: 0x001FBD08 File Offset: 0x001F9F08
[Token(Token = "0x6009908")]
[Address(RVA = "0x1638470", Offset = "0x1637270", VA = "0x181638470")]
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: 0x06009909 RID: 39177 RVA: 0x001FBD3C File Offset: 0x001F9F3C
[Token(Token = "0x6009909")]
[Address(RVA = "0x1638580", Offset = "0x1637380", VA = "0x181638580", 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: 0x0600990A RID: 39178 RVA: 0x001FBDE0 File Offset: 0x001F9FE0
[Token(Token = "0x600990A")]
[Address(RVA = "0x1638620", Offset = "0x1637420", VA = "0x181638620", 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: 0x0600990B RID: 39179 RVA: 0x001FBEE0 File Offset: 0x001FA0E0
[Token(Token = "0x600990B")]
[Address(RVA = "0x1638810", Offset = "0x1637610", VA = "0x181638810", Slot = "17")]
public override void Flush()
{
bool canRead = this.output.CanRead;
}
// Token: 0x1700185F RID: 6239
// (get) Token: 0x0600990C RID: 39180 RVA: 0x001FBF00 File Offset: 0x001FA100
// (set) Token: 0x0600990D RID: 39181 RVA: 0x001FBF14 File Offset: 0x001FA114
[Token(Token = "0x1700185F")]
public virtual int FlushMode
{
[Token(Token = "0x600990C")]
[Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0", Slot = "33")]
get
{
return this.flushLevel;
}
[Token(Token = "0x600990D")]
[Address(RVA = "0x6CBD90", Offset = "0x6CAB90", VA = "0x1806CBD90", Slot = "34")]
set
{
this.flushLevel = value;
}
}
// Token: 0x17001860 RID: 6240
// (get) Token: 0x0600990E RID: 39182 RVA: 0x001FBF28 File Offset: 0x001FA128
[Token(Token = "0x17001860")]
public sealed override long Length
{
[Token(Token = "0x600990E")]
[Address(RVA = "0x1639220", Offset = "0x1638020", VA = "0x181639220", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (0600990E)
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: 0x17001861 RID: 6241
// (get) Token: 0x0600990F RID: 39183 RVA: 0x001FBF3C File Offset: 0x001FA13C
// (set) Token: 0x06009910 RID: 39184 RVA: 0x001FBF50 File Offset: 0x001FA150
[Token(Token = "0x17001861")]
public sealed override long Position
{
[Token(Token = "0x600990F")]
[Address(RVA = "0x1639270", Offset = "0x1638070", VA = "0x181639270", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (0600990F)
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 = "0x6009910")]
[Address(RVA = "0x16392C0", Offset = "0x16380C0", VA = "0x1816392C0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009910)
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: 0x06009911 RID: 39185 RVA: 0x001FBF64 File Offset: 0x001FA164
[Token(Token = "0x6009911")]
[Address(RVA = "0x16388F0", Offset = "0x16376F0", VA = "0x1816388F0", Slot = "27")]
public sealed override int Read(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009911)
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: 0x06009912 RID: 39186 RVA: 0x001FBF78 File Offset: 0x001FA178
[Token(Token = "0x6009912")]
[Address(RVA = "0x1638940", Offset = "0x1637740", VA = "0x181638940", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009912)
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: 0x06009913 RID: 39187 RVA: 0x001FBF8C File Offset: 0x001FA18C
[Token(Token = "0x6009913")]
[Address(RVA = "0x1638990", Offset = "0x1637790", VA = "0x181638990", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009913)
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: 0x17001862 RID: 6242
// (get) Token: 0x06009914 RID: 39188 RVA: 0x001FBFA0 File Offset: 0x001FA1A0
[Token(Token = "0x17001862")]
public virtual long TotalIn
{
[Token(Token = "0x6009914")]
[Address(RVA = "0x16383D0", Offset = "0x16371D0", VA = "0x1816383D0", Slot = "35")]
get
{
return this.z.total_in;
}
}
// Token: 0x17001863 RID: 6243
// (get) Token: 0x06009915 RID: 39189 RVA: 0x001FBFC0 File Offset: 0x001FA1C0
[Token(Token = "0x17001863")]
public virtual long TotalOut
{
[Token(Token = "0x6009915")]
[Address(RVA = "0x130D260", Offset = "0x130C060", VA = "0x18130D260", Slot = "36")]
get
{
return this.z.total_out;
}
}
// Token: 0x06009916 RID: 39190 RVA: 0x001FBFE0 File Offset: 0x001FA1E0
[Token(Token = "0x6009916")]
[Address(RVA = "0x16389E0", Offset = "0x16377E0", VA = "0x1816389E0", 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: 0x06009917 RID: 39191 RVA: 0x001FC114 File Offset: 0x001FA314
[Token(Token = "0x6009917")]
[Address(RVA = "0x1636E70", Offset = "0x1635C70", VA = "0x181636E70", Slot = "30")]
public override void WriteByte(byte b)
{
this.buf1[0] = b;
int num = this.ReadByte();
}
// Token: 0x0400682B RID: 26667
[Token(Token = "0x400682B")]
private const int BufferSize = 512;
// Token: 0x0400682C RID: 26668
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400682C")]
protected ZStream z;
// Token: 0x0400682D RID: 26669
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400682D")]
protected int flushLevel;
// Token: 0x0400682E RID: 26670
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400682E")]
protected byte[] buf;
// Token: 0x0400682F RID: 26671
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x400682F")]
protected byte[] buf1;
// Token: 0x04006830 RID: 26672
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4006830")]
protected bool compress;
// Token: 0x04006831 RID: 26673
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4006831")]
protected Stream output;
// Token: 0x04006832 RID: 26674
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4006832")]
protected bool closed;
}
}