This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,499 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Crc
{
// Token: 0x02001FBD RID: 8125
[Token(Token = "0x2001FBD")]
internal class CRC32
{
// Token: 0x170020C2 RID: 8386
// (get) Token: 0x0600CDEC RID: 52716 RVA: 0x002F5FE4 File Offset: 0x002F41E4
[Token(Token = "0x170020C2")]
public long TotalBytesRead
{
[Token(Token = "0x600CDEC")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this._TotalBytesRead;
}
}
// Token: 0x170020C3 RID: 8387
// (get) Token: 0x0600CDED RID: 52717 RVA: 0x002F5FF8 File Offset: 0x002F41F8
[Token(Token = "0x170020C3")]
public int Crc32Result
{
[Token(Token = "0x600CDED")]
[Address(RVA = "0x5F70B0", Offset = "0x5F5EB0", VA = "0x1805F70B0")]
get
{
/*
An exception occurred when decompiling this method (0600CDED)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Crc.CRC32::get_Crc32Result()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint32(var_0_06, ldfld:uint32(CRC32::_register, ldloc:CRC32(this)))
}
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 1660
*/;
}
}
// Token: 0x0600CDEE RID: 52718 RVA: 0x002F600C File Offset: 0x002F420C
[Token(Token = "0x600CDEE")]
[Address(RVA = "0x1960510", Offset = "0x195F310", VA = "0x181960510")]
public int GetCrc32(Stream input)
{
/*
An exception occurred when decompiling this method (0600CDEE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Crc.CRC32::GetCrc32(System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:Exception(var_4_2D, newobj:Exception(Exception::.ctor, ldstr:string("The input stream must not be null.")))
}
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 1660
*/;
}
// Token: 0x0600CDEF RID: 52719 RVA: 0x002F6048 File Offset: 0x002F4248
[Token(Token = "0x600CDEF")]
[Address(RVA = "0x1960390", Offset = "0x195F190", VA = "0x181960390")]
public int GetCrc32AndCopy(Stream input, Stream output)
{
/*
An exception occurred when decompiling this method (0600CDEF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Crc.CRC32::GetCrc32AndCopy(System.IO.Stream,System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3B:
stloc:Exception(var_6_45, newobj:Exception(Exception::.ctor, ldstr:string("The input stream must not be null.")))
}
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 1660
*/;
}
// Token: 0x0600CDF0 RID: 52720 RVA: 0x002F609C File Offset: 0x002F429C
[Token(Token = "0x600CDF0")]
[Address(RVA = "0x5F68D0", Offset = "0x5F56D0", VA = "0x1805F68D0")]
public int ComputeCrc32(int W, byte B)
{
uint num = this.crc32Table[W];
throw new NullReferenceException();
}
// Token: 0x0600CDF1 RID: 52721 RVA: 0x002F60BC File Offset: 0x002F42BC
[Token(Token = "0x600CDF1")]
[Address(RVA = "0x5F68D0", Offset = "0x5F56D0", VA = "0x1805F68D0")]
internal int _InternalComputeCrc32(uint W, byte B)
{
uint num = this.crc32Table[(int)W];
throw new NullReferenceException();
}
// Token: 0x0600CDF2 RID: 52722 RVA: 0x002F60DC File Offset: 0x002F42DC
[Token(Token = "0x600CDF2")]
[Address(RVA = "0x1960650", Offset = "0x195F450", VA = "0x181960650")]
public void SlurpBlock(byte[] block, int offset, int count)
{
/*
An exception occurred when decompiling this method (0600CDF2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Crc.CRC32::SlurpBlock(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_36:
stloc:Exception(var_4_40, newobj:Exception(Exception::.ctor, ldstr:string("The data buffer must not be null.")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDF3 RID: 52723 RVA: 0x002F612C File Offset: 0x002F432C
[Token(Token = "0x600CDF3")]
[Address(RVA = "0x1960880", Offset = "0x195F680", VA = "0x181960880")]
public void UpdateCRC(byte b)
{
uint register = this._register;
uint[] array = this.crc32Table;
if (!this.reverseBits)
{
uint num = array[(int)register];
this._register = num;
return;
}
uint num2 = array[(int)register];
this._register = num2;
}
// Token: 0x0600CDF4 RID: 52724 RVA: 0x002F6178 File Offset: 0x002F4378
[Token(Token = "0x600CDF4")]
[Address(RVA = "0x19607B0", Offset = "0x195F5B0", VA = "0x1819607B0")]
public void UpdateCRC(byte b, int n)
{
if (n > 0)
{
int num = n - 1;
uint[] array = this.crc32Table;
if (!this.reverseBits)
{
}
uint register = this._register;
uint num2 = array[(int)register];
this._register = num2;
}
}
// Token: 0x0600CDF5 RID: 52725 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600CDF5")]
[Address(RVA = "0x5F6D20", Offset = "0x5F5B20", VA = "0x1805F6D20")]
private static uint ReverseBits(uint data)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600CDF6 RID: 52726 RVA: 0x002F61BC File Offset: 0x002F43BC
[Token(Token = "0x600CDF6")]
[Address(RVA = "0x5F6D80", Offset = "0x5F5B80", VA = "0x1805F6D80")]
private static byte ReverseBits(byte data)
{
/*
An exception occurred when decompiling this method (0600CDF6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte BestHTTP.Decompression.Crc.CRC32::ReverseBits(System.Byte)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_0_0F, mul:uint32[exp:int64](mul:uint32(ldloc:uint8[exp:uint32](data), conv.u4:uint32(ldc.i4:int32[exp:uint32](131586))), conv.u4:uint32(ldc.i4:int32[exp:uint32](16781313))))
}
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 1660
*/;
}
// Token: 0x0600CDF7 RID: 52727 RVA: 0x002F61D8 File Offset: 0x002F43D8
[Token(Token = "0x600CDF7")]
[Address(RVA = "0x1960240", Offset = "0x195F040", VA = "0x181960240")]
private void GenerateLookupTable()
{
uint[] array = new uint[256];
this.crc32Table = array;
int num = 0;
if (num == 1)
{
}
uint num2 = this.dwPolynomial;
while (num != 1)
{
}
uint[] array2 = this.crc32Table;
ulong num3;
if ((this.reverseBits ? 1UL : 0UL) == num3)
{
array2[0] = num2;
}
long num4 = (long)(num * (int)((uint)131586));
num2 += num2;
long num5 = num4 * (long)((uint)16781313);
array2[0] = (uint)num;
num++;
while (num5 != (long)array2.Length)
{
}
}
// Token: 0x0600CDF8 RID: 52728 RVA: 0x002F6260 File Offset: 0x002F4460
[Token(Token = "0x600CDF8")]
[Address(RVA = "0x5F7180", Offset = "0x5F5F80", VA = "0x1805F7180")]
private uint gf2_matrix_times(uint[] matrix, uint vec)
{
int num = 0;
if (vec != (uint)0)
{
if (vec != (uint)1)
{
}
num++;
while (vec >= (uint)2)
{
}
}
throw new NullReferenceException();
}
// Token: 0x0600CDF9 RID: 52729 RVA: 0x002F6288 File Offset: 0x002F4488
[Token(Token = "0x600CDF9")]
[Address(RVA = "0x5F70C0", Offset = "0x5F5EC0", VA = "0x1805F70C0")]
private void gf2_matrix_square(uint[] square, uint[] mat)
{
int num = 0;
int length = mat.Length;
int num2 = 0;
uint num3;
if (num3 != (uint)0)
{
if (num3 != (uint)1)
{
}
num2++;
while (num3 >= (uint)2)
{
}
}
num++;
}
// Token: 0x0600CDFA RID: 52730 RVA: 0x002F62C0 File Offset: 0x002F44C0
[Token(Token = "0x600CDFA")]
[Address(RVA = "0x195FE20", Offset = "0x195EC20", VA = "0x18195FE20")]
public void Combine(int crc, int length)
{
uint[] array = new uint[32];
uint[] array2 = new uint[32];
if (length != 0)
{
uint register = this._register;
uint num = this.dwPolynomial;
array2[0] = num;
uint num2;
num2 += (uint)1;
array2[0] = num2;
num2 += num2;
int num3 = 0;
int length2 = array2.Length;
int num4 = 0;
uint num5;
if (num5 != (uint)0)
{
if (num5 != (uint)1)
{
}
num4++;
while (num5 >= (uint)2)
{
}
}
num3++;
int num6 = 0;
int length3 = array.Length;
int num7 = 0;
uint num8;
if (num8 != (uint)0)
{
if (num8 != (uint)1)
{
}
num7++;
while (num8 >= (uint)2)
{
}
}
num6++;
int num9 = 0;
int length4 = array2.Length;
int num10 = 0;
uint num11;
if (num11 != (uint)0)
{
if (num11 != (uint)1)
{
}
num10++;
while (num11 >= (uint)2)
{
}
}
num9++;
int i;
if (length != 1)
{
i = 0;
int num12 = 0;
if (register != (uint)0)
{
if (register != (uint)1)
{
}
num12++;
while (register >= (uint)2)
{
}
}
}
int num16;
if (register != (uint)2)
{
int num13 = 0;
int length5 = array.Length;
int num14 = 0;
uint num15;
if (num15 != (uint)0)
{
num11 = num15;
if (num15 != (uint)1)
{
}
num14++;
while (num11 >= (uint)2)
{
}
}
num13++;
if (length != 1)
{
num16 = 0;
int num17 = 0;
if (i != 0)
{
if (i != 1)
{
}
num17++;
while (i >= 2)
{
}
}
}
while (i != 2)
{
}
}
this._register = (uint)num16;
}
}
// Token: 0x0600CDFB RID: 52731 RVA: 0x002F6424 File Offset: 0x002F4624
[Token(Token = "0x600CDFB")]
[Address(RVA = "0x1960A90", Offset = "0x195F890", VA = "0x181960A90")]
public CRC32()
{
}
// Token: 0x0600CDFC RID: 52732 RVA: 0x002F6434 File Offset: 0x002F4634
[Token(Token = "0x600CDFC")]
[Address(RVA = "0x1960AA0", Offset = "0x195F8A0", VA = "0x181960AA0")]
public CRC32(bool reverseBits)
{
}
// Token: 0x0600CDFD RID: 52733 RVA: 0x002F6444 File Offset: 0x002F4644
[Token(Token = "0x600CDFD")]
[Address(RVA = "0x1960920", Offset = "0x195F720", VA = "0x181960920")]
public CRC32(int polynomial, bool reverseBits)
{
this._register = (uint)((ulong)4294967295L);
base..ctor();
this.reverseBits = reverseBits;
this.dwPolynomial = (uint)polynomial;
uint[] array = new uint[256];
this.crc32Table = array;
int num = 0;
if (num != 1)
{
}
while (num != 1)
{
}
uint[] array2 = this.crc32Table;
ulong num2;
if ((this.reverseBits ? 1UL : 0UL) == num2)
{
array2[0] = (uint)num;
}
long num3 = (long)(num * (int)((uint)131586));
num += num;
long num4 = num3 * (long)((uint)16781313);
array2[0] = (uint)num;
num++;
while (num4 != (long)array2.Length)
{
}
}
// Token: 0x0600CDFE RID: 52734 RVA: 0x002F64E4 File Offset: 0x002F46E4
[Token(Token = "0x600CDFE")]
[Address(RVA = "0x1960640", Offset = "0x195F440", VA = "0x181960640")]
public void Reset()
{
this._register = (uint)((ulong)4294967295L);
}
// Token: 0x040083D4 RID: 33748
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40083D4")]
private uint dwPolynomial;
// Token: 0x040083D5 RID: 33749
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40083D5")]
private long _TotalBytesRead;
// Token: 0x040083D6 RID: 33750
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40083D6")]
private bool reverseBits;
// Token: 0x040083D7 RID: 33751
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40083D7")]
private uint[] crc32Table;
// Token: 0x040083D8 RID: 33752
[Token(Token = "0x40083D8")]
private const int BUFFER_SIZE = 8192;
// Token: 0x040083D9 RID: 33753
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40083D9")]
private uint _register;
}
}
@@ -0,0 +1,59 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB7 RID: 8119
[Token(Token = "0x2001FB7")]
public sealed class Adler
{
// Token: 0x0600CDBC RID: 52668 RVA: 0x002F4CD8 File Offset: 0x002F2ED8
[Token(Token = "0x600CDBC")]
[Address(RVA = "0x195DE50", Offset = "0x195CC50", VA = "0x18195DE50")]
public static uint Adler32(uint adler, byte[] buf, int index, int len)
{
if (buf != 0 && len > 0)
{
int i = Adler.NMAX;
int length = buf.Length;
int num = index + 1;
byte b2;
byte b = b2 + 1;
b2 = (byte)((uint)b2 + adler);
b2 = (byte)((uint)b2 + adler);
b2 = (byte)((uint)b2 + adler);
b2 = (byte)((uint)b2 + adler);
b2 = (byte)((uint)b2 + adler);
while (i >= 16)
{
}
if (i != 0)
{
int length2 = buf.Length;
b2 = b;
int num2 = i - 1;
while (num2 != 0)
{
}
}
}
uint num3;
return num3;
}
// Token: 0x0600CDBD RID: 52669 RVA: 0x002F4D54 File Offset: 0x002F2F54
[Token(Token = "0x600CDBD")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public Adler()
{
}
// Token: 0x0400839E RID: 33694
[Token(Token = "0x400839E")]
private static readonly uint BASE;
// Token: 0x0400839F RID: 33695
[Token(Token = "0x400839F")]
private static readonly int NMAX;
}
}
@@ -0,0 +1,23 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA0 RID: 8096
[Token(Token = "0x2001FA0")]
internal enum BlockState
{
// Token: 0x0400828E RID: 33422
[Token(Token = "0x400828E")]
NeedMore,
// Token: 0x0400828F RID: 33423
[Token(Token = "0x400828F")]
BlockDone,
// Token: 0x04008290 RID: 33424
[Token(Token = "0x4008290")]
FinishStarted,
// Token: 0x04008291 RID: 33425
[Token(Token = "0x4008291")]
FinishDone
}
}
@@ -0,0 +1,53 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB0 RID: 8112
[Token(Token = "0x2001FB0")]
public enum CompressionLevel
{
// Token: 0x04008375 RID: 33653
[Token(Token = "0x4008375")]
None,
// Token: 0x04008376 RID: 33654
[Token(Token = "0x4008376")]
Level0 = 0,
// Token: 0x04008377 RID: 33655
[Token(Token = "0x4008377")]
BestSpeed,
// Token: 0x04008378 RID: 33656
[Token(Token = "0x4008378")]
Level1 = 1,
// Token: 0x04008379 RID: 33657
[Token(Token = "0x4008379")]
Level2,
// Token: 0x0400837A RID: 33658
[Token(Token = "0x400837A")]
Level3,
// Token: 0x0400837B RID: 33659
[Token(Token = "0x400837B")]
Level4,
// Token: 0x0400837C RID: 33660
[Token(Token = "0x400837C")]
Level5,
// Token: 0x0400837D RID: 33661
[Token(Token = "0x400837D")]
Default,
// Token: 0x0400837E RID: 33662
[Token(Token = "0x400837E")]
Level6 = 6,
// Token: 0x0400837F RID: 33663
[Token(Token = "0x400837F")]
Level7,
// Token: 0x04008380 RID: 33664
[Token(Token = "0x4008380")]
Level8,
// Token: 0x04008381 RID: 33665
[Token(Token = "0x4008381")]
BestCompression,
// Token: 0x04008382 RID: 33666
[Token(Token = "0x4008382")]
Level9 = 9
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB2 RID: 8114
[Token(Token = "0x2001FB2")]
public enum CompressionMode
{
// Token: 0x04008388 RID: 33672
[Token(Token = "0x4008388")]
Compress,
// Token: 0x04008389 RID: 33673
[Token(Token = "0x4008389")]
Decompress
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB1 RID: 8113
[Token(Token = "0x2001FB1")]
public enum CompressionStrategy
{
// Token: 0x04008384 RID: 33668
[Token(Token = "0x4008384")]
Default,
// Token: 0x04008385 RID: 33669
[Token(Token = "0x4008385")]
Filtered,
// Token: 0x04008386 RID: 33670
[Token(Token = "0x4008386")]
HuffmanOnly
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA1 RID: 8097
[Token(Token = "0x2001FA1")]
internal enum DeflateFlavor
{
// Token: 0x04008293 RID: 33427
[Token(Token = "0x4008293")]
Store,
// Token: 0x04008294 RID: 33428
[Token(Token = "0x4008294")]
Fast,
// Token: 0x04008295 RID: 33429
[Token(Token = "0x4008295")]
Slow
}
}
@@ -0,0 +1,2197 @@
using System;
using BestHTTP.Extensions;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA2 RID: 8098
[Token(Token = "0x2001FA2")]
internal sealed class DeflateManager
{
// Token: 0x0600CD25 RID: 52517 RVA: 0x002EEEA0 File Offset: 0x002ED0A0
[Token(Token = "0x600CD25")]
[Address(RVA = "0x19693D0", Offset = "0x19681D0", VA = "0x1819693D0")]
internal DeflateManager()
{
ZTree ztree = new ZTree();
this.treeLiterals = ztree;
ZTree ztree2 = new ZTree();
this.treeDistances = ztree2;
ZTree ztree3 = new ZTree();
this.treeBitLengths = ztree3;
int num = InternalConstants.MAX_BITS;
num++;
short[] array = new short[num];
this.bl_count = array;
int[] array2 = new int[InternalConstants.L_CODES];
this.heap = array2;
sbyte[] array3 = new sbyte[InternalConstants.L_CODES];
this.depth = array3;
this._WantRfc1950HeaderBytes = true;
base..ctor();
int num2 = DeflateManager.HEAP_SIZE;
num2 += num2;
short[] array4 = new short[num2];
this.dyn_ltree = array4;
short[] array5 = new short[InternalConstants.D_CODES];
this.dyn_dtree = array5;
short[] array6 = new short[InternalConstants.BL_CODES];
this.bl_tree = array6;
}
// Token: 0x0600CD26 RID: 52518 RVA: 0x002EEF6C File Offset: 0x002ED16C
[Token(Token = "0x600CD26")]
[Address(RVA = "0x1968B40", Offset = "0x1967940", VA = "0x181968B40")]
private void _InitializeLazyMatch()
{
int num = this.w_size;
int num2 = this.hash_size;
num += num;
short[] array = this.head;
int num3 = 0;
this.window_size = num;
Array.Clear(array, num3, num2);
int num4 = (int)this.compressionLevel;
DeflateManager.Config config;
this.config = config;
this.SetDeflater();
int num5 = 0;
this.strstart = num5;
this.block_start = num5;
this.lookahead = num5;
int min_MATCH = DeflateManager.MIN_MATCH;
this.match_available = num5;
this.prev_length = min_MATCH;
this.match_length = min_MATCH;
this.ins_h = num5;
}
// Token: 0x0600CD27 RID: 52519 RVA: 0x002EEFFC File Offset: 0x002ED1FC
[Token(Token = "0x600CD27")]
[Address(RVA = "0x1968C30", Offset = "0x1967A30", VA = "0x181968C30")]
private void _InitializeTreeData()
{
ZTree ztree = this.treeLiterals;
short[] array = this.dyn_ltree;
ztree.dyn_tree = array;
ZTree ztree2 = this.treeLiterals;
StaticTree literals = StaticTree.Literals;
ztree2.staticTree = literals;
ZTree ztree3 = this.treeDistances;
short[] array2 = this.dyn_dtree;
ztree3.dyn_tree = array2;
ZTree ztree4 = this.treeDistances;
StaticTree distances = StaticTree.Distances;
ztree4.staticTree = distances;
ZTree ztree5 = this.treeBitLengths;
short[] array3 = this.bl_tree;
ztree5.dyn_tree = array3;
ZTree ztree6 = this.treeBitLengths;
StaticTree bitLengths = StaticTree.BitLengths;
ztree6.staticTree = bitLengths;
int num = 0;
this.bi_buf = (short)num;
this.bi_valid = num;
this.last_eob_len = (int)((ulong)8L);
this._InitializeBlocks();
}
// Token: 0x0600CD28 RID: 52520 RVA: 0x002EF0BC File Offset: 0x002ED2BC
[Token(Token = "0x600CD28")]
[Address(RVA = "0x1968920", Offset = "0x1967720", VA = "0x181968920")]
internal void _InitializeBlocks()
{
int num = 0;
short[] array = this.dyn_ltree;
num++;
num += 2;
array[0] = (short)num;
if ("{il2cpp array field local2->}" == (ulong)2L || "{il2cpp array field local2->}" == num)
{
}
short[] array2 = this.dyn_dtree;
num++;
num += 2;
array2[0] = (short)num;
short[] array3 = this.bl_tree;
num++;
num += 2;
array3[0] = (short)num;
short[] array4 = this.dyn_ltree;
int num2 = DeflateManager.END_BLOCK;
num2 += num2;
uint num3;
array4[0] = (short)num3;
this.opt_len = num;
this.matches = num;
this.last_lit = num;
}
// Token: 0x0600CD29 RID: 52521 RVA: 0x002EF160 File Offset: 0x002ED360
[Token(Token = "0x600CD29")]
[Address(RVA = "0x196B330", Offset = "0x196A130", VA = "0x18196B330")]
internal void pqdownheap(short[] tree, int k)
{
int[] array = this.heap;
int num = this.heap_len;
int num2 = array[k];
int length = this.heap.Length;
int num3 = k + 1;
sbyte[] array2 = this.depth;
if (DeflateManager._IsSmaller(tree, num3, k, array2))
{
}
int[] array3 = this.heap;
sbyte[] array4 = this.depth;
if (!DeflateManager._IsSmaller(tree, num2, k, array4))
{
int[] array5 = this.heap;
int length2 = array5.Length;
int num4;
array5[0] = num4;
int num5 = this.heap_len;
}
int[] array6 = this.heap;
array6[0] = num2;
}
// Token: 0x0600CD2A RID: 52522 RVA: 0x002EF204 File Offset: 0x002ED404
[Token(Token = "0x600CD2A")]
[Address(RVA = "0x1968D70", Offset = "0x1967B70", VA = "0x181968D70")]
internal static bool _IsSmaller(short[] tree, int n, int m, sbyte[] depth)
{
int length = tree.Length;
short num;
short num2;
if (num < num2)
{
return true;
}
if (num != num2)
{
}
int length2 = depth.Length;
bool flag;
return flag;
}
// Token: 0x0600CD2B RID: 52523 RVA: 0x002EF234 File Offset: 0x002ED434
[Token(Token = "0x600CD2B")]
[Address(RVA = "0x196B5E0", Offset = "0x196A3E0", VA = "0x18196B5E0")]
internal void scan_tree(short[] tree, int max_code)
{
int length = tree.Length;
int i = 0;
uint num;
tree[0] = (short)num;
int num2 = 0;
num2 += 3;
uint num3;
if (1U < num3)
{
}
short[] array = this.bl_tree;
if (1UL > (ulong)10L)
{
int num4 = InternalConstants.REPZ_11_138;
num4 += num4;
}
int num5 = InternalConstants.REPZ_3_10;
num5 += num5;
short[] array2 = this.bl_tree;
short[] array3 = this.bl_tree;
int num6 = InternalConstants.REP_3_6;
num6 += num6;
short[] array4 = this.bl_tree;
i++;
num2 += 2;
while (i <= max_code)
{
}
}
// Token: 0x0600CD2C RID: 52524 RVA: 0x002EF2C8 File Offset: 0x002ED4C8
[Token(Token = "0x600CD2C")]
[Address(RVA = "0x196A870", Offset = "0x1969670", VA = "0x18196A870")]
internal int build_bl_tree()
{
int max_code = this.treeLiterals.max_code;
short[] array = this.dyn_ltree;
this.scan_tree(array, max_code);
int max_code2 = this.treeDistances.max_code;
short[] array2 = this.dyn_dtree;
this.scan_tree(array2, max_code2);
this.treeBitLengths.build_tree(this);
int i = InternalConstants.BL_CODES;
short[] array3 = this.bl_tree;
sbyte[] array4 = ZTree.bl_order;
i++;
if ("{il2cpp array field local12->}" == (ulong)0L)
{
while (i >= 3)
{
}
}
array4 += i;
return i;
}
// Token: 0x0600CD2D RID: 52525 RVA: 0x002EF354 File Offset: 0x002ED554
[Token(Token = "0x600CD2D")]
[Address(RVA = "0x196B920", Offset = "0x196A720", VA = "0x18196B920")]
internal void send_all_trees(int lcodes, int dcodes, int blcodes)
{
this.send_bits(lcodes, 5);
this.send_bits(lcodes, 5);
this.send_bits(lcodes, 4);
int num = 0;
if (blcodes > 0)
{
short[] array = this.bl_tree;
sbyte[] bl_order = ZTree.bl_order;
num++;
num++;
}
short[] array2 = this.dyn_ltree;
int num2 = lcodes - 1;
this.send_tree(array2, num2);
short[] array3 = this.dyn_dtree;
this.send_tree(array3, num2);
}
// Token: 0x0600CD2E RID: 52526 RVA: 0x002EF3C4 File Offset: 0x002ED5C4
[Token(Token = "0x600CD2E")]
[Address(RVA = "0x196C1E0", Offset = "0x196AFE0", VA = "0x18196C1E0")]
internal void send_tree(short[] tree, int max_code)
{
int num = 0;
int num2 = 0;
num2 += 3;
uint num3;
if (1U < num3)
{
}
if (1UL > (ulong)10L)
{
short[] array = this.bl_tree;
int repz_11_ = InternalConstants.REPZ_11_138;
this.send_code(repz_11_, array);
uint num4;
this.send_bits(repz_11_, (int)num4);
}
short[] array2 = this.bl_tree;
int repz_3_ = InternalConstants.REPZ_3_10;
this.send_code(repz_3_, array2);
this.send_bits(repz_3_, 3);
short[] array3 = this.bl_tree;
this.send_code((int)num3, array3);
short[] array4 = this.bl_tree;
int rep_3_ = InternalConstants.REP_3_6;
this.send_code(rep_3_, array4);
this.send_bits(rep_3_, 2);
short[] array5 = this.bl_tree;
this.send_code(rep_3_, array5);
num++;
num2 += 2;
}
// Token: 0x0600CD2F RID: 52527 RVA: 0x002EF484 File Offset: 0x002ED684
[Token(Token = "0x600CD2F")]
[Address(RVA = "0x196B590", Offset = "0x196A390", VA = "0x18196B590")]
private void put_bytes(byte[] p, int start, int len)
{
byte[] array = this.pending;
int num = this.pendingCount;
Array.Copy(p, start, array, num, len);
}
// Token: 0x0600CD30 RID: 52528 RVA: 0x002EF4AC File Offset: 0x002ED6AC
[Token(Token = "0x600CD30")]
[Address(RVA = "0x196BC40", Offset = "0x196AA40", VA = "0x18196BC40")]
internal void send_code(int c, short[] tree)
{
int length = tree.Length;
short num;
short num2;
this.send_bits((int)num, (int)num2);
}
// Token: 0x0600CD31 RID: 52529 RVA: 0x002EF4D0 File Offset: 0x002ED6D0
[Token(Token = "0x600CD31")]
[Address(RVA = "0x196BAA0", Offset = "0x196A8A0", VA = "0x18196BAA0")]
internal void send_bits(int value, int length)
{
int num = this.bi_valid;
int num2 = this.bi_valid;
int num3 = DeflateManager.Buf_size;
num3 -= length;
this.bi_buf = (short)value;
this.bi_valid = value;
}
// Token: 0x0600CD32 RID: 52530 RVA: 0x002EF518 File Offset: 0x002ED718
[Token(Token = "0x600CD32")]
[Address(RVA = "0x19699A0", Offset = "0x19687A0", VA = "0x1819699A0")]
internal void _tr_align()
{
int num = DeflateManager.STATIC_TREES;
num += num;
this.send_bits(num, 3);
int length = StaticTree.lengthAndLiteralsTreeCodes.Length;
short num2;
short num3;
this.send_bits((int)num2, (int)num3);
this.bi_flush();
int num4 = this.last_eob_len;
num4 += 11;
if (num4 < 9)
{
int num5 = DeflateManager.STATIC_TREES;
num5 += num5;
this.send_bits(num5, 3);
int length2 = StaticTree.lengthAndLiteralsTreeCodes.Length;
short num6;
short num7;
this.send_bits((int)num6, (int)num7);
this.bi_flush();
}
this.last_eob_len = (int)((ulong)7L);
}
// Token: 0x0600CD33 RID: 52531 RVA: 0x002EF5A8 File Offset: 0x002ED7A8
[Token(Token = "0x600CD33")]
[Address(RVA = "0x196A2A0", Offset = "0x19690A0", VA = "0x18196A2A0")]
internal bool _tr_tally(int dist, int lc)
{
byte[] array = this.pending;
int num = this.last_lit;
int distanceOffset = this._distanceOffset;
byte[] array2 = this.pending;
int num2 = this._distanceOffset;
num2++;
byte[] array3 = this.pending;
num2 = this._lengthOffset;
short[] array4 = this.dyn_ltree;
if (dist != 0)
{
sbyte[] lengthCode = ZTree.LengthCode;
int num3 = InternalConstants.LITERALS;
num3 += typeof(InternalConstants).TypeHandle;
int num4 = dist - 1;
short[] array5 = this.dyn_dtree;
int num5 = ZTree.DistanceCode(num4);
num5 += num5;
}
int num9;
if (this.last_lit == 8191 && this.compressionLevel > CompressionLevel.Level2)
{
int num6 = 0;
short[] array6 = this.dyn_dtree;
int[] extraDistanceBits = ZTree.ExtraDistanceBits;
num6++;
int num7 = extraDistanceBits[num6];
num7 += 5;
int num8 = num7 * num6;
num6 += 2;
num9 = this.last_lit;
num9 -= typeof(InternalConstants).TypeHandle;
if (this.matches < num9)
{
num9 -= typeof(InternalConstants).TypeHandle;
if (lc < num9)
{
}
}
}
int num10 = this.lit_bufsize - 1;
while (num9 == num10)
{
}
throw new NullReferenceException();
}
// Token: 0x0600CD34 RID: 52532 RVA: 0x002EF6C4 File Offset: 0x002ED8C4
[Token(Token = "0x600CD34")]
[Address(RVA = "0x196BCB0", Offset = "0x196AAB0", VA = "0x18196BCB0")]
internal void send_compressed_block(short[] ltree, short[] dtree)
{
int num = 0;
if (this.last_lit != num)
{
int num2 = this._distanceOffset;
byte[] array = this.pending;
num2 += num;
int length = array.Length;
int num3 = num2 + 1;
int num4 = this._lengthOffset;
num4 += num;
num += 2;
num++;
sbyte[] lengthCode = ZTree.LengthCode;
int num5 = InternalConstants.LITERALS;
num5 += num5;
int length2 = ltree.Length;
num5 += 3;
short num6 = ltree[num5];
short num7 = ltree[array];
this.send_bits((int)num7, (int)num6);
int[] extraLengthBits = ZTree.ExtraLengthBits;
int num8;
if (num8 != 0)
{
int[] lengthBase = ZTree.LengthBase;
byte b;
this.send_bits((int)b, num8);
}
byte b2;
int num9 = ZTree.DistanceCode((int)b2);
this.send_bits(1, (int)num6);
if (ZTree.ExtraDistanceBits[num9] != 0)
{
int[] distanceBase = ZTree.DistanceBase;
int length3 = ltree.Length;
num4++;
short num10 = ltree[num4];
short num11 = ltree[num4];
this.send_bits((int)num11, (int)num10);
}
if (num < this.last_lit)
{
}
}
int num12 = DeflateManager.END_BLOCK;
num12 += num12;
int length4 = ltree.Length;
short num13 = ltree[num12];
num12++;
short num14 = ltree[num12];
this.send_bits((int)num13, (int)num14);
int num15 = DeflateManager.END_BLOCK;
num15 += num15;
num15++;
this.last_eob_len = num15;
}
// Token: 0x0600CD35 RID: 52533 RVA: 0x002EF82C File Offset: 0x002EDA2C
[Token(Token = "0x600CD35")]
[Address(RVA = "0x196C4B0", Offset = "0x196B2B0", VA = "0x18196C4B0")]
internal void set_data_type()
{
short[] array = this.dyn_ltree;
int num = 0;
int length = array.Length;
num++;
num += 2;
if (num < 128)
{
num++;
}
short[] array2 = this.dyn_ltree;
num++;
num += array2;
if (num > num)
{
}
int z_ASCII = DeflateManager.Z_ASCII;
this.data_type = (sbyte)z_ASCII;
}
// Token: 0x0600CD36 RID: 52534 RVA: 0x002EF888 File Offset: 0x002EDA88
[Token(Token = "0x600CD36")]
[Address(RVA = "0x196A670", Offset = "0x1969470", VA = "0x18196A670")]
internal void bi_flush()
{
if (this.bi_valid != 16)
{
int num = this.pendingCount;
byte[] array = this.pending;
short num2 = this.bi_buf;
int num3 = num + 1;
this.pendingCount = num3;
this.bi_buf = (short)num3;
return;
}
int num4 = this.pendingCount;
byte[] array2 = this.pending;
short num5 = this.bi_buf;
int num6 = num4 + 1;
this.pendingCount = num6;
int num7 = this.pendingCount;
byte[] array3 = this.pending;
short num8 = this.bi_buf;
int num9 = num7 + 1;
this.pendingCount = num9;
int num10 = 0;
this.bi_buf = (short)num10;
this.bi_valid = num10;
}
// Token: 0x0600CD37 RID: 52535 RVA: 0x002EF92C File Offset: 0x002EDB2C
[Token(Token = "0x600CD37")]
[Address(RVA = "0x196A770", Offset = "0x1969570", VA = "0x18196A770")]
internal void bi_windup()
{
if (this.bi_valid > 0)
{
int num = this.pendingCount;
byte[] array = this.pending;
short num2 = this.bi_buf;
int num3 = num + 1;
this.pendingCount = num3;
int num4 = 0;
this.bi_buf = (short)num4;
this.bi_valid = num4;
return;
}
int num5 = 0;
this.bi_buf = (short)num5;
this.bi_valid = num5;
}
// Token: 0x0600CD38 RID: 52536 RVA: 0x002EF9E0 File Offset: 0x002EDBE0
[Token(Token = "0x600CD38")]
[Address(RVA = "0x196AA00", Offset = "0x1969800", VA = "0x18196AA00")]
internal void copy_block(int buf, int len, bool header)
{
this.bi_windup();
this.last_eob_len = (int)((ulong)8L);
if (header)
{
int num = this.pendingCount;
byte[] array = this.pending;
int num2 = num + 1;
this.pendingCount = num2;
int num3 = this.pendingCount;
byte[] array2 = this.pending;
int num4 = num3 + 1;
this.pendingCount = num4;
int num5 = this.pendingCount;
byte[] array3 = this.pending;
int num6 = num5 + 1;
this.pendingCount = num6;
int num7 = this.pendingCount;
byte[] array4 = this.pending;
int num8 = num7 + 1;
this.pendingCount = num8;
}
int num9 = this.pendingCount;
byte[] array5 = this.pending;
Array.Copy(this.window, buf, array5, num9, len);
}
// Token: 0x0600CD39 RID: 52537 RVA: 0x002EFA98 File Offset: 0x002EDC98
[Token(Token = "0x600CD39")]
[Address(RVA = "0x196AB60", Offset = "0x1969960", VA = "0x18196AB60")]
internal void flush_block_only(bool eof)
{
int num = this.block_start;
int num2 = this.strstart;
num2 -= num;
this._tr_flush_block(num, num2, eof);
ZlibCodec codec = this._codec;
int num3 = this.strstart;
this.block_start = num3;
codec.flush_pending();
}
// Token: 0x0600CD3A RID: 52538 RVA: 0x002EFAE4 File Offset: 0x002EDCE4
[Token(Token = "0x600CD3A")]
[Address(RVA = "0x1966700", Offset = "0x1965500", VA = "0x181966700")]
internal BlockState DeflateNone(FlushType flush)
{
int num3;
do
{
int num = this.pending.Length;
num += -5;
uint num2;
if (num < (int)num2)
{
}
num3 = 0;
int num4 = this.lookahead;
this._fillWindow();
int num5 = this.lookahead;
if (num5 == 0)
{
if (flush == FlushType.None)
{
break;
}
if (num5 == 0)
{
break;
}
}
int num6 = this.block_start;
int num7 = this.strstart;
this.lookahead = num3;
if (num5 != 0)
{
}
num7 -= this;
this.strstart = this;
this.lookahead = num7;
int num8 = 0;
this._tr_flush_block(num6, (int)num2, num8 != 0);
ZlibCodec codec = this._codec;
int num9 = this.strstart;
this.block_start = num9;
codec.flush_pending();
if (this._codec.AvailableBytesOut == num3)
{
break;
}
int num10 = this.strstart;
int num11 = this.block_start;
int num12 = this.w_size;
num10 -= num11;
int num13 = this.block_start;
int num14 = this.strstart;
int num15 = 0;
num14 -= num13;
this._tr_flush_block(num13, num14, num15 != 0);
ZlibCodec codec2 = this._codec;
int num16 = this.strstart;
this.block_start = num16;
codec2.flush_pending();
}
while (this._codec.AvailableBytesOut != num3);
bool flag = flush == FlushType.Finish;
this.flush_block_only(flag);
ZlibCodec codec3 = this._codec;
while (flush != FlushType.Finish)
{
}
throw new NullReferenceException();
}
// Token: 0x0600CD3B RID: 52539 RVA: 0x002EFC38 File Offset: 0x002EDE38
[Token(Token = "0x600CD3B")]
[Address(RVA = "0x196A0E0", Offset = "0x1968EE0", VA = "0x18196A0E0")]
internal void _tr_stored_block(int buf, int stored_len, bool eof)
{
this.send_bits(buf, 3);
this.bi_windup();
int num = this.pendingCount;
byte[] array = this.pending;
this.last_eob_len = (int)((ulong)8L);
int num2 = num + 1;
this.pendingCount = num2;
int num3 = this.pendingCount;
byte[] array2 = this.pending;
int num4 = num3 + 1;
this.pendingCount = num4;
int num5 = this.pendingCount;
byte[] array3 = this.pending;
int num6 = num5 + 1;
this.pendingCount = num6;
int num7 = this.pendingCount;
byte[] array4 = this.pending;
int num8 = num7 + 1;
this.pendingCount = num8;
int num9 = this.pendingCount;
byte[] array5 = this.pending;
Array.Copy(this.window, buf, array5, num9, stored_len);
}
// Token: 0x0600CD3C RID: 52540 RVA: 0x002EFCF4 File Offset: 0x002EDEF4
[Token(Token = "0x600CD3C")]
[Address(RVA = "0x1969BD0", Offset = "0x19689D0", VA = "0x181969BD0")]
internal void _tr_flush_block(int buf, int stored_len, bool eof)
{
int num = 0;
this.set_data_type();
this.treeLiterals.build_tree(this);
this.treeDistances.build_tree(this);
int max_code = this.treeLiterals.max_code;
short[] array = this.dyn_ltree;
this.scan_tree(array, max_code);
int max_code2 = this.treeDistances.max_code;
short[] array2 = this.dyn_dtree;
this.scan_tree(array2, max_code2);
this.treeBitLengths.build_tree(this);
int i = InternalConstants.BL_CODES;
short[] array3 = this.bl_tree;
sbyte[] bl_order = ZTree.bl_order;
i++;
if ("{il2cpp array field local22->}" == num)
{
while (i >= 3)
{
}
}
int num2 = this.static_len;
i += i;
num2 += 10;
int num3 = this.opt_len;
num3 += 10;
if (num2 <= num3)
{
num3 = num2;
}
if (buf != -1)
{
num3 = buf;
this._tr_stored_block(num3, stored_len, eof);
}
if (this != num3)
{
this.send_bits(num3, 3);
ZTree ztree = this.treeLiterals;
ZTree ztree2 = this.treeDistances;
int num4 = i + 1;
int max_code3 = ztree.max_code;
this.send_bits(num3, 5);
this.send_bits(num3, 5);
this.send_bits(num3, 4);
if (num4 > 0)
{
short[] array4 = this.bl_tree;
sbyte[] bl_order2 = ZTree.bl_order;
num++;
this.send_bits(num3, 3);
num++;
}
short[] array5 = this.dyn_ltree;
this.send_tree(array5, max_code3);
short[] array6 = this.dyn_dtree;
this.send_tree(array6, max_code3);
}
short[] distTreeCodes = StaticTree.distTreeCodes;
short[] lengthAndLiteralsTreeCodes = StaticTree.lengthAndLiteralsTreeCodes;
this.send_compressed_block(lengthAndLiteralsTreeCodes, distTreeCodes);
this._InitializeBlocks();
if (eof)
{
this.bi_windup();
}
}
// Token: 0x0600CD3D RID: 52541 RVA: 0x002EFE94 File Offset: 0x002EE094
[Token(Token = "0x600CD3D")]
[Address(RVA = "0x19695B0", Offset = "0x19683B0", VA = "0x1819695B0")]
private void _fillWindow()
{
do
{
int num = 0;
int num2 = this.window_size;
int num3 = this.strstart;
num2 -= num3;
int num4 = this.lookahead;
num2 -= num4;
int num7;
if (num3 != 0 || num4 != 0 || this.w_size != -1)
{
int num5 = this.w_size;
num5 += num5;
byte[] array = this.window;
int num6 = 0;
num7 = this.w_size;
Array.Copy(array, num7, array, num6, num7);
int num8 = this.hash_size;
num7 = num8;
short[] array2 = this.head;
short num9 = array2[num7];
int num10 = this.w_size;
num9 = (short)((int)num9 - num10);
array2[0] = (short)num;
int num11 = num8 - 1;
while (num11 != 0)
{
}
int num12 = this.w_size;
num7 = num12;
short[] array3 = this.prev;
short num13 = array3[num7];
int num14 = this.w_size;
num13 = (short)((int)num13 - num14);
array3[0] = (short)num;
int num15 = num12 - 1;
while (num15 != 0)
{
}
}
ZlibCodec codec = this._codec;
if (codec.AvailableBytesIn == 0)
{
break;
}
int num16 = this.lookahead;
byte[] array4 = this.window;
int num17 = this.strstart;
int num18 = codec.AvailableBytesIn;
if (num18 != 0)
{
num18 -= num18;
codec.AvailableBytesIn = num18;
if (codec.dstate._WantRfc1950HeaderBytes)
{
uint adler = codec._Adler32;
byte[] inputBuffer = codec.InputBuffer;
uint num19 = Adler.Adler32(adler, inputBuffer, num7, num18);
codec._Adler32 = num19;
}
int nextIn = codec.NextIn;
num16 += num17;
Array.Copy(codec.InputBuffer, nextIn, array4, num16, num18);
}
int num20 = this.lookahead;
byte[] array5 = this.window;
int num21 = this.strstart;
byte b;
this.ins_h = (int)b;
int num22 = num21 + 1;
this.ins_h = (int)b;
int num23 = this.lookahead;
}
while (this._codec.AvailableBytesIn != 0);
}
// Token: 0x0600CD3E RID: 52542 RVA: 0x002F008C File Offset: 0x002EE28C
[Token(Token = "0x600CD3E")]
[Address(RVA = "0x1966030", Offset = "0x1964E30", VA = "0x181966030")]
internal BlockState DeflateFast(FlushType flush)
{
do
{
int num = this.lookahead;
this._fillWindow();
int num2 = this.lookahead;
if (flush == FlushType.None)
{
break;
}
if (this.lookahead == 0)
{
break;
}
int num3 = this.lookahead;
int num4 = this.ins_h;
byte[] array = this.window;
int num5 = this.strstart;
int num6 = DeflateManager.MIN_MATCH;
num6 += num5;
short[] array2 = this.head;
this.ins_h = num4;
short num7 = array2[num4];
short[] array3 = this.prev;
int num8 = this.w_mask;
array3[0] = num7;
short[] array4 = this.head;
num8 = this.ins_h;
int num9 = this.strstart;
array4[0] = (short)num9;
int num10 = this.strstart;
int num11 = this.w_size;
num10 -= (int)num7;
if (this.compressionStrategy != CompressionStrategy.HuffmanOnly)
{
int num12 = this.longest_match((int)num7);
this.match_length = num12;
}
int num13 = this.match_length;
byte[] array5 = this.window;
int num14 = this.strstart;
int num15 = 0;
byte b;
bool flag = this._tr_tally(num15, (int)b);
int num16 = this.strstart;
int num17 = this.strstart;
int num18 = this.match_start;
if (this.treeBitLengths == (ulong)0L)
{
}
num17 -= num18;
bool flag2 = this._tr_tally(num17, num16);
int num19 = this.lookahead;
flag = flag2;
int num20 = this.match_length;
num19 -= num20;
DeflateManager.Config config = this.config;
this.lookahead = num19;
int num21 = this.strstart;
int num22 = this.ins_h;
byte[] array6 = this.window;
int num23 = DeflateManager.MIN_MATCH;
num23 += num21;
short[] array7 = this.head;
this.ins_h = num22;
short num24 = array7[num22];
short[] array8 = this.prev;
int num25 = this.w_mask;
array8[0] = num24;
short[] array9 = this.head;
int num26 = this.ins_h;
int num27 = this.strstart;
array9[0] = (short)num27;
while (num26 != array9.Length)
{
}
int num28 = this.strstart;
int num29 = 0;
byte[] array10 = this.window;
this.strstart = num28;
this.match_length = num29;
byte b2;
this.ins_h = (int)b2;
num28++;
this.ins_h = (int)b2;
while (!flag)
{
}
int num30 = this.block_start;
num28 -= num30;
int num31 = 0;
this._tr_flush_block(num30, num28, num31 != 0);
ZlibCodec codec = this._codec;
int num32 = this.strstart;
this.block_start = num32;
codec.flush_pending();
}
while (this._codec.AvailableBytesOut != 0);
int num33 = this.block_start;
int num34 = this.strstart;
bool flag3 = flush == FlushType.Finish;
num34 -= num33;
this._tr_flush_block(num33, num34, flag3);
ZlibCodec codec2 = this._codec;
int num35 = this.strstart;
this.block_start = num35;
codec2.flush_pending();
if (this._codec.AvailableBytesOut != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x0600CD3F RID: 52543 RVA: 0x002F037C File Offset: 0x002EE57C
[Token(Token = "0x600CD3F")]
[Address(RVA = "0x1966940", Offset = "0x1965740", VA = "0x181966940")]
internal BlockState DeflateSlow(FlushType flush)
{
int num = 0;
int num2 = this.lookahead;
this._fillWindow();
int num3 = this.lookahead;
if (flush != FlushType.None)
{
if (this.lookahead != 0)
{
int num4 = this.lookahead;
int num5 = this.ins_h;
byte[] array = this.window;
int num6 = this.strstart;
int num7 = DeflateManager.MIN_MATCH;
num7 += num6;
short[] array2 = this.head;
this.ins_h = num5;
short num8 = array2[num5];
short[] array3 = this.prev;
int num9 = this.w_mask;
array3[0] = num8;
short[] array4 = this.head;
num9 = this.ins_h;
int num10 = this.strstart;
array4[0] = (short)num10;
int num11 = this.match_length;
this.prev_length = num11;
int num12 = this.match_start;
this.prev_match = num12;
int min_MATCH = DeflateManager.MIN_MATCH;
this.match_length = min_MATCH;
int maxLazy = this.config.MaxLazy;
if (this.prev_length < maxLazy)
{
int num13 = this.strstart;
int num14 = this.w_size;
num13 -= (int)num8;
if (this.compressionStrategy != CompressionStrategy.HuffmanOnly)
{
int num15 = this.longest_match((int)num8);
this.match_length = num15;
}
int num16 = this.match_length;
if (this.compressionStrategy == CompressionStrategy.Filtered || this.strstart > 4096)
{
int min_MATCH2 = DeflateManager.MIN_MATCH;
this.match_length = min_MATCH2;
}
}
int num17 = this.prev_length;
int num18 = this.prev_length;
int num19 = this.strstart;
int num20 = this.lookahead;
int num21 = this.strstart;
int num22 = this.prev_length;
num20 += num19;
bool flag = this._tr_tally(num21, num22);
int num23 = this.prev_length;
this.prev_length = 1;
int num24 = this.strstart;
num24++;
this.strstart = num24;
int num25 = this.ins_h;
byte[] array5 = this.window;
int num26 = DeflateManager.MIN_MATCH;
num26 += num24;
short[] array6 = this.head;
this.ins_h = num25;
short num27 = array6[num25];
short[] array7 = this.prev;
int num28 = this.w_mask;
array7[0] = num27;
short[] array8 = this.head;
int num29 = this.ins_h;
int num30 = this.strstart;
array8[0] = (short)num30;
while (num29 != array8.Length)
{
}
int num31 = 0;
this.match_available = num31;
int num32 = this.strstart;
num32++;
int min_MATCH3 = DeflateManager.MIN_MATCH;
this.strstart = num32;
this.match_length = min_MATCH3;
while (!flag)
{
}
int num33 = this.block_start;
num32 -= num33;
int num34 = 0;
this._tr_flush_block(num33, num32, num34 != 0);
ZlibCodec codec = this._codec;
int num35 = this.strstart;
this.block_start = num35;
codec.flush_pending();
if (this._codec.AvailableBytesOut == num31)
{
goto IL_393;
}
if (this.match_available == 0)
{
this.match_available = 1;
}
byte[] array9 = this.window;
int num36 = this.strstart;
int num37 = 0;
byte b;
if (this._tr_tally(num37, (int)b))
{
int num38 = this.block_start;
int num39 = this.strstart;
int num40 = 0;
num39 -= num38;
this._tr_flush_block(num38, num39, num40 != 0);
ZlibCodec codec2 = this._codec;
int num41 = this.strstart;
this.block_start = num41;
codec2.flush_pending();
}
if (this._codec.AvailableBytesOut == 0)
{
goto IL_393;
}
}
if (this.match_available != 0)
{
byte[] array10 = this.window;
int num42 = this.strstart;
int num43 = 0;
byte b2;
bool flag2 = this._tr_tally(num43, (int)b2);
this.match_available = num;
}
bool flag3 = flush == FlushType.Finish;
this.flush_block_only(flag3);
if (this._codec.AvailableBytesOut != 0)
{
}
}
IL_393:
throw new NullReferenceException();
}
// Token: 0x0600CD40 RID: 52544 RVA: 0x002F0724 File Offset: 0x002EE924
[Token(Token = "0x600CD40")]
[Address(RVA = "0x196ABD0", Offset = "0x19699D0", VA = "0x18196ABD0")]
internal int longest_match(int cur_match)
{
DeflateManager.Config config = this.config;
int num = this.strstart;
int num2 = this.prev_length;
int num3 = this.w_size;
if (num > num3)
{
int num4 = this.strstart;
int num5 = this.w_size;
int num6 = DeflateManager.MIN_LOOKAHEAD;
num6 -= num5;
num6 += num4;
}
int niceLength = this.config.NiceLength;
int num7 = this.w_mask;
int num8 = this.strstart;
int num9 = this.window.Length;
DeflateManager.Config config2 = this.config;
int num10 = this.lookahead;
if (niceLength <= num10)
{
}
int num11 = this.prev_length;
byte[] array = this.window;
int num12 = array.Length;
byte b;
if ("{il2cpp array field local22->}" == b)
{
num9 = num;
int num13 = num9 + 1;
num += 2;
num++;
num9 = num12;
int num14 = num9 + 1;
byte b2 = array[num14];
num++;
int num15 = num + 1;
num = num15;
num15 = num12;
num15 += 3;
num++;
int num16 = num + 1;
num = num16;
num16 = num12;
num16 += 5;
num++;
int num17 = num + 1;
num = num17;
num17 = num12;
num17 += 7;
byte b3 = array[num17];
int num18 = num + 1;
num = num18;
num12 += 8;
int num19 = DeflateManager.MAX_MATCH;
num19 -= num8;
num19 += num;
num = num8;
num -= num19;
if (num19 > num2)
{
num2 = num19;
this.match_start = cur_match;
int length = this.window.Length;
int num20 = cur_match - 1;
}
}
short[] array2 = this.prev;
ulong num21;
if ((ulong)array2[num7] > num21)
{
int num22 = niceLength - 1;
while (num22 != 0)
{
}
}
int num23 = this.lookahead;
if (num2 > num23)
{
num2 = num23;
}
return num2;
}
// Token: 0x170020A0 RID: 8352
// (get) Token: 0x0600CD41 RID: 52545 RVA: 0x002F08EC File Offset: 0x002EEAEC
// (set) Token: 0x0600CD42 RID: 52546 RVA: 0x002F0900 File Offset: 0x002EEB00
[Token(Token = "0x170020A0")]
internal bool WantRfc1950HeaderBytes
{
[Token(Token = "0x600CD41")]
[Address(RVA = "0x196ABC0", Offset = "0x19699C0", VA = "0x18196ABC0")]
get
{
return this._WantRfc1950HeaderBytes;
}
[Token(Token = "0x600CD42")]
[Address(RVA = "0x196C4A0", Offset = "0x196B2A0", VA = "0x18196C4A0")]
set
{
this._WantRfc1950HeaderBytes = value;
}
}
// Token: 0x0600CD43 RID: 52547 RVA: 0x002F0914 File Offset: 0x002EEB14
[Token(Token = "0x600CD43")]
[Address(RVA = "0x1967CC0", Offset = "0x1966AC0", VA = "0x181967CC0")]
internal int Initialize(ZlibCodec codec, CompressionLevel level)
{
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
int num;
return num;
}
// Token: 0x0600CD44 RID: 52548 RVA: 0x002F092C File Offset: 0x002EEB2C
[Token(Token = "0x600CD44")]
[Address(RVA = "0x1967C10", Offset = "0x1966A10", VA = "0x181967C10")]
internal int Initialize(ZlibCodec codec, CompressionLevel level, int bits)
{
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
int num;
return num;
}
// Token: 0x0600CD45 RID: 52549 RVA: 0x002F0944 File Offset: 0x002EEB44
[Token(Token = "0x600CD45")]
[Address(RVA = "0x1968010", Offset = "0x1966E10", VA = "0x181968010")]
internal int Initialize(ZlibCodec codec, CompressionLevel level, int bits, CompressionStrategy compressionStrategy)
{
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
int num;
return num;
}
// Token: 0x0600CD46 RID: 52550 RVA: 0x002F0958 File Offset: 0x002EEB58
[Token(Token = "0x600CD46")]
[Address(RVA = "0x1967D60", Offset = "0x1966B60", VA = "0x181967D60")]
internal int Initialize(ZlibCodec codec, CompressionLevel level, int windowBits, int memLevel, CompressionStrategy strategy)
{
this._codec = codec;
codec.Message = (ulong)0L;
this._codec.dstate = this;
this.w_bits = windowBits;
this.hash_bits = windowBits;
uint num;
this.w_size = (int)num;
uint num2 = num - 1U;
this.hash_size = (int)num;
this.w_mask = (int)num2;
uint num3 = num - 1U;
this.hash_mask = (int)num3;
int min_MATCH = DeflateManager.MIN_MATCH;
int num4 = windowBits - 1;
num4 += min_MATCH;
this.hash_shift = num4;
int num5 = 0;
byte[] array = VariableSizedBufferPool.Get((long)num4, num5 != 0);
int num6 = this.w_size;
this.window = array;
short[] array2 = new short[num6];
int num7 = this.hash_size;
this.prev = array2;
short[] array3 = new short[num7];
this.head = array3;
this.lit_bufsize = (int)num;
byte[] array4;
this.pending = array4;
int num8 = this.lit_bufsize;
this._distanceOffset = num8;
this.compressionLevel = level;
this._lengthOffset = num8;
this.compressionStrategy = CompressionStrategy.Default;
this.Reset();
return 0;
}
// Token: 0x0600CD47 RID: 52551 RVA: 0x002F0A5C File Offset: 0x002EEC5C
[Token(Token = "0x600CD47")]
[Address(RVA = "0x19680C0", Offset = "0x1966EC0", VA = "0x1819680C0")]
internal void Reset()
{
ZlibCodec codec = this._codec;
int num = 0;
codec.TotalBytesOut = (long)num;
codec.TotalBytesIn = (long)num;
this._codec.Message = num;
this.nextPending = num;
this.Rfc1950BytesEmitted = num != 0;
if ((this._WantRfc1950HeaderBytes ? 1 : 0) != num)
{
}
int busy_STATE = DeflateManager.BUSY_STATE;
this.status = busy_STATE;
this._codec._Adler32 = (uint)((ulong)1L);
this.last_flush = num;
ZTree ztree = this.treeLiterals;
short[] array = this.dyn_ltree;
ztree.dyn_tree = array;
ZTree ztree2 = this.treeLiterals;
StaticTree literals = StaticTree.Literals;
ztree2.staticTree = literals;
ZTree ztree3 = this.treeDistances;
short[] array2 = this.dyn_dtree;
ztree3.dyn_tree = array2;
ZTree ztree4 = this.treeDistances;
StaticTree distances = StaticTree.Distances;
ztree4.staticTree = distances;
ZTree ztree5 = this.treeBitLengths;
short[] array3 = this.bl_tree;
ztree5.dyn_tree = array3;
ZTree ztree6 = this.treeBitLengths;
StaticTree bitLengths = StaticTree.BitLengths;
ztree6.staticTree = bitLengths;
this.bi_buf = (short)num;
this.bi_valid = num;
this.last_eob_len = (int)((ulong)8L);
this._InitializeBlocks();
int num2 = this.w_size;
int num3 = this.hash_size;
num2 += num2;
short[] array4 = this.head;
int num4 = 0;
this.window_size = num2;
Array.Clear(array4, num4, num3);
int num5 = (int)this.compressionLevel;
DeflateManager.Config config;
this.config = config;
this.SetDeflater();
this.strstart = num;
this.block_start = num;
this.lookahead = num;
int min_MATCH = DeflateManager.MIN_MATCH;
this.match_available = num;
this.ins_h = num;
this.prev_length = min_MATCH;
this.match_length = min_MATCH;
}
// Token: 0x0600CD48 RID: 52552 RVA: 0x002F0C00 File Offset: 0x002EEE00
[Token(Token = "0x600CD48")]
[Address(RVA = "0x1967AB0", Offset = "0x19668B0", VA = "0x181967AB0")]
internal int End()
{
int num = this.status;
int num2 = this.status;
int num3 = this.status;
return -2;
}
// Token: 0x0600CD49 RID: 52553 RVA: 0x002F0C2C File Offset: 0x002EEE2C
[Token(Token = "0x600CD49")]
[Address(RVA = "0x19683E0", Offset = "0x19671E0", VA = "0x1819683E0")]
private void SetDeflater()
{
DeflateFlavor flavor = this.config.Flavor;
if (flavor == DeflateFlavor.Store || flavor == DeflateFlavor.Store || flavor == DeflateFlavor.Fast)
{
DeflateManager.CompressFunc compressFunc;
compressFunc.method_ptr = ldftn(DeflateNone);
compressFunc.method = ldftn(DeflateNone);
compressFunc.m_target = this;
this.DeflateFunction = compressFunc;
}
}
// Token: 0x0600CD4A RID: 52554 RVA: 0x002F0C80 File Offset: 0x002EEE80
[Token(Token = "0x600CD4A")]
[Address(RVA = "0x1968830", Offset = "0x1967630", VA = "0x181968830")]
internal int SetParams(CompressionLevel level, CompressionStrategy strategy)
{
int num = 0;
if (this.compressionLevel != level)
{
DeflateFlavor flavor = this.config.Flavor;
DeflateManager.Config config;
if (config.Flavor != flavor)
{
ZlibCodec codec = this._codec;
if (codec.TotalBytesIn != (long)num)
{
int num2 = codec.Deflate(FlushType.Partial);
}
}
this.compressionLevel = level;
this.config = config;
this.SetDeflater();
}
this.compressionStrategy = strategy;
return num;
}
// Token: 0x0600CD4B RID: 52555 RVA: 0x002F0CF4 File Offset: 0x002EEEF4
[Token(Token = "0x600CD4B")]
[Address(RVA = "0x1968480", Offset = "0x1967280", VA = "0x181968480")]
internal int SetDictionary(byte[] dictionary)
{
int num = 0;
int length = dictionary.Length;
int num2 = this.status;
ZlibCodec codec = this._codec;
uint adler = codec._Adler32;
int length2 = dictionary.Length;
int num3 = 0;
uint num4 = Adler.Adler32(adler, dictionary, num3, length2);
codec._Adler32 = num4;
int num5 = this.w_size;
if (length > num5)
{
int num6 = this.w_size;
int num7 = dictionary.Length;
num7 -= num6;
}
byte[] array = this.window;
int num8 = 0;
Array.Copy(dictionary, num, array, num8, length);
byte[] array2 = this.window;
this.strstart = length;
this.block_start = length;
byte b = array2[0];
this.ins_h = (int)b;
this.ins_h = (int)b;
int num9 = this.ins_h;
byte[] array3 = this.window;
int num10 = DeflateManager.MIN_MATCH;
num10 += num;
short[] array4 = this.head;
this.ins_h = num9;
short[] array5 = this.prev;
int num11 = this.w_mask;
short num12 = array4[num9];
array5[0] = num12;
short[] array6 = this.head;
int num13 = this.ins_h;
array6[0] = (short)num;
num++;
return 0;
}
// Token: 0x0600CD4C RID: 52556 RVA: 0x002F0E24 File Offset: 0x002EF024
[Token(Token = "0x600CD4C")]
[Address(RVA = "0x1967160", Offset = "0x1965F60", VA = "0x181967160")]
internal int Deflate(FlushType flush)
{
for (;;)
{
ZlibCodec codec = this._codec;
if (codec.OutputBuffer != (ulong)0L && (codec.InputBuffer != (ulong)0L || codec.AvailableBytesIn == 0))
{
int num = this.status;
if (flush == FlushType.Finish && this._codec.AvailableBytesOut != 0)
{
int num2 = this.last_flush;
int num3 = this.status;
this.last_flush = (int)flush;
CompressionLevel compressionLevel = this.compressionLevel;
if (this.strstart != 0)
{
int preset_DICT = DeflateManager.PRESET_DICT;
}
ulong num4;
num4 += (ulong)1L;
num4 += num4;
long num5 = (long)(num4 * (ulong)((uint)31));
int num6 = this.pendingCount;
byte[] array = this.pending;
int busy_STATE = DeflateManager.BUSY_STATE;
this.status = busy_STATE;
int num7 = num6 + 1;
this.pendingCount = num7;
int num8 = this.pendingCount;
byte[] array2 = this.pending;
int num9 = num8 + 1;
this.pendingCount = num9;
if (this.strstart != 0)
{
int num10 = this.pendingCount;
byte[] array3 = this.pending;
int num11 = num10 + 1;
this.pendingCount = num11;
uint adler = this._codec._Adler32;
int num12 = this.pendingCount;
byte[] array4 = this.pending;
int num13 = num12 + 1;
this.pendingCount = num13;
uint adler2 = this._codec._Adler32;
int num14 = this.pendingCount;
byte[] array5 = this.pending;
int num15 = num14 + 1;
this.pendingCount = num15;
uint adler3 = this._codec._Adler32;
int num16 = this.pendingCount;
byte[] array6 = this.pending;
int num17 = num16 + 1;
this.pendingCount = num17;
uint adler4 = this._codec._Adler32;
}
this._codec._Adler32 = (uint)((ulong)1L);
ZlibCodec codec2 = this._codec;
if (this.Z_ASCII != 0 || (codec2.AvailableBytesIn == 0 && flush != FlushType.Finish))
{
codec2.flush_pending();
if (this._codec.AvailableBytesOut == 0)
{
goto IL_38C;
}
}
int num18 = this.status;
if (this._codec.AvailableBytesIn == 0)
{
break;
}
}
}
}
if (this._codec.AvailableBytesIn == 0 && this.lookahead == 0)
{
if (flush == FlushType.None)
{
goto IL_2A6;
}
int num19 = this.status;
}
DeflateManager.CompressFunc deflateFunction = this.DeflateFunction;
BlockState blockState;
int num20 = (int)blockState;
if (blockState == BlockState.FinishStarted || blockState == BlockState.FinishDone)
{
int finish_STATE = DeflateManager.FINISH_STATE;
this.status = finish_STATE;
}
if (num20 == 0 || num20 == 2)
{
goto IL_38C;
}
if (num20 == 1)
{
if (flush != (FlushType)num20)
{
int num21 = 0;
int num22 = 0;
int num23 = 0;
int num24 = 0;
this._tr_stored_block(num24, num23, num22 != 0);
if (flush == FlushType.Full && this.hash_size > num21)
{
short[] array7 = this.head;
num21++;
array7[0] = (short)num21;
}
}
this._codec.flush_pending();
if (this._codec.AvailableBytesOut == 0)
{
goto IL_38C;
}
}
IL_2A6:
if (flush == FlushType.Finish && this._WantRfc1950HeaderBytes && !this.Rfc1950BytesEmitted)
{
int num25 = this.pendingCount;
byte[] array8 = this.pending;
int num26 = num25 + 1;
this.pendingCount = num26;
uint adler5 = this._codec._Adler32;
int num27 = this.pendingCount;
byte[] array9 = this.pending;
int num28 = num27 + 1;
this.pendingCount = num28;
uint adler6 = this._codec._Adler32;
int num29 = this.pendingCount;
byte[] array10 = this.pending;
int num30 = num29 + 1;
this.pendingCount = num30;
uint adler7 = this._codec._Adler32;
int num31 = this.pendingCount;
byte[] array11 = this.pending;
int num32 = num31 + 1;
this.pendingCount = num32;
uint adler8 = this._codec._Adler32;
this._codec.flush_pending();
this.Rfc1950BytesEmitted = true;
if (this.Z_ASCII == 0)
{
}
}
IL_38C:
throw new NullReferenceException();
}
// Token: 0x0600CD4D RID: 52557 RVA: 0x002F11C4 File Offset: 0x002EF3C4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CD4D")]
[Address(RVA = "0x1968E30", Offset = "0x1967C30", VA = "0x181968E30")]
static DeflateManager()
{
string[] array = new string[10];
if ("need dictionary" != 0)
{
}
array[0] = "need dictionary";
if ("stream end" != 0)
{
}
array[1] = "stream end";
if ("" != 0)
{
}
array[2] = "";
if ("file error" != 0)
{
}
array[3] = "file error";
if ("stream error" != 0)
{
}
array[4] = "stream error";
if ("data error" != 0)
{
}
array[5] = "data error";
if ("insufficient memory" != 0)
{
}
array[6] = "insufficient memory";
if ("buffer error" != 0)
{
}
array[7] = "buffer error";
if ("incompatible version" != 0)
{
}
array[8] = "incompatible version";
if ("" != 0)
{
}
array[9] = "";
int num = 0;
DeflateManager._ErrorMessage = array;
DeflateManager.STORED_BLOCK = num;
DeflateManager.Z_BINARY = num;
int num2 = DeflateManager.MIN_MATCH;
int num3 = DeflateManager.MAX_MATCH;
num2++;
num3 += num2;
DeflateManager.MIN_LOOKAHEAD = num3;
}
// Token: 0x04008296 RID: 33430
[Token(Token = "0x4008296")]
private static readonly int MEM_LEVEL_MAX;
// Token: 0x04008297 RID: 33431
[Token(Token = "0x4008297")]
private static readonly int MEM_LEVEL_DEFAULT;
// Token: 0x04008298 RID: 33432
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008298")]
private DeflateManager.CompressFunc DeflateFunction;
// Token: 0x04008299 RID: 33433
[Token(Token = "0x4008299")]
private static readonly string[] _ErrorMessage;
// Token: 0x0400829A RID: 33434
[Token(Token = "0x400829A")]
private static readonly int PRESET_DICT;
// Token: 0x0400829B RID: 33435
[Token(Token = "0x400829B")]
private static readonly int INIT_STATE;
// Token: 0x0400829C RID: 33436
[Token(Token = "0x400829C")]
private static readonly int BUSY_STATE;
// Token: 0x0400829D RID: 33437
[Token(Token = "0x400829D")]
private static readonly int FINISH_STATE;
// Token: 0x0400829E RID: 33438
[Token(Token = "0x400829E")]
private static readonly int Z_DEFLATED;
// Token: 0x0400829F RID: 33439
[Token(Token = "0x400829F")]
private static readonly int STORED_BLOCK;
// Token: 0x040082A0 RID: 33440
[Token(Token = "0x40082A0")]
private static readonly int STATIC_TREES;
// Token: 0x040082A1 RID: 33441
[Token(Token = "0x40082A1")]
private static readonly int DYN_TREES;
// Token: 0x040082A2 RID: 33442
[Token(Token = "0x40082A2")]
private static readonly int Z_BINARY;
// Token: 0x040082A3 RID: 33443
[Token(Token = "0x40082A3")]
private static readonly int Z_ASCII;
// Token: 0x040082A4 RID: 33444
[Token(Token = "0x40082A4")]
private static readonly int Z_UNKNOWN;
// Token: 0x040082A5 RID: 33445
[Token(Token = "0x40082A5")]
private static readonly int Buf_size;
// Token: 0x040082A6 RID: 33446
[Token(Token = "0x40082A6")]
private static readonly int MIN_MATCH;
// Token: 0x040082A7 RID: 33447
[Token(Token = "0x40082A7")]
private static readonly int MAX_MATCH;
// Token: 0x040082A8 RID: 33448
[Token(Token = "0x40082A8")]
private static readonly int MIN_LOOKAHEAD;
// Token: 0x040082A9 RID: 33449
[Token(Token = "0x40082A9")]
private static readonly int HEAP_SIZE;
// Token: 0x040082AA RID: 33450
[Token(Token = "0x40082AA")]
private static readonly int END_BLOCK;
// Token: 0x040082AB RID: 33451
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40082AB")]
internal ZlibCodec _codec;
// Token: 0x040082AC RID: 33452
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40082AC")]
internal int status;
// Token: 0x040082AD RID: 33453
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40082AD")]
internal byte[] pending;
// Token: 0x040082AE RID: 33454
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40082AE")]
internal int nextPending;
// Token: 0x040082AF RID: 33455
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40082AF")]
internal int pendingCount;
// Token: 0x040082B0 RID: 33456
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40082B0")]
internal sbyte data_type;
// Token: 0x040082B1 RID: 33457
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40082B1")]
internal int last_flush;
// Token: 0x040082B2 RID: 33458
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40082B2")]
internal int w_size;
// Token: 0x040082B3 RID: 33459
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x40082B3")]
internal int w_bits;
// Token: 0x040082B4 RID: 33460
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40082B4")]
internal int w_mask;
// Token: 0x040082B5 RID: 33461
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40082B5")]
internal byte[] window;
// Token: 0x040082B6 RID: 33462
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40082B6")]
internal int window_size;
// Token: 0x040082B7 RID: 33463
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40082B7")]
internal short[] prev;
// Token: 0x040082B8 RID: 33464
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40082B8")]
internal short[] head;
// Token: 0x040082B9 RID: 33465
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40082B9")]
internal int ins_h;
// Token: 0x040082BA RID: 33466
[FieldOffset(Offset = "0x74")]
[Token(Token = "0x40082BA")]
internal int hash_size;
// Token: 0x040082BB RID: 33467
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40082BB")]
internal int hash_bits;
// Token: 0x040082BC RID: 33468
[FieldOffset(Offset = "0x7C")]
[Token(Token = "0x40082BC")]
internal int hash_mask;
// Token: 0x040082BD RID: 33469
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40082BD")]
internal int hash_shift;
// Token: 0x040082BE RID: 33470
[FieldOffset(Offset = "0x84")]
[Token(Token = "0x40082BE")]
internal int block_start;
// Token: 0x040082BF RID: 33471
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40082BF")]
private DeflateManager.Config config;
// Token: 0x040082C0 RID: 33472
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40082C0")]
internal int match_length;
// Token: 0x040082C1 RID: 33473
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x40082C1")]
internal int prev_match;
// Token: 0x040082C2 RID: 33474
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40082C2")]
internal int match_available;
// Token: 0x040082C3 RID: 33475
[FieldOffset(Offset = "0x9C")]
[Token(Token = "0x40082C3")]
internal int strstart;
// Token: 0x040082C4 RID: 33476
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x40082C4")]
internal int match_start;
// Token: 0x040082C5 RID: 33477
[FieldOffset(Offset = "0xA4")]
[Token(Token = "0x40082C5")]
internal int lookahead;
// Token: 0x040082C6 RID: 33478
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x40082C6")]
internal int prev_length;
// Token: 0x040082C7 RID: 33479
[FieldOffset(Offset = "0xAC")]
[Token(Token = "0x40082C7")]
internal CompressionLevel compressionLevel;
// Token: 0x040082C8 RID: 33480
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x40082C8")]
internal CompressionStrategy compressionStrategy;
// Token: 0x040082C9 RID: 33481
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x40082C9")]
internal short[] dyn_ltree;
// Token: 0x040082CA RID: 33482
[FieldOffset(Offset = "0xC0")]
[Token(Token = "0x40082CA")]
internal short[] dyn_dtree;
// Token: 0x040082CB RID: 33483
[FieldOffset(Offset = "0xC8")]
[Token(Token = "0x40082CB")]
internal short[] bl_tree;
// Token: 0x040082CC RID: 33484
[FieldOffset(Offset = "0xD0")]
[Token(Token = "0x40082CC")]
internal ZTree treeLiterals;
// Token: 0x040082CD RID: 33485
[FieldOffset(Offset = "0xD8")]
[Token(Token = "0x40082CD")]
internal ZTree treeDistances;
// Token: 0x040082CE RID: 33486
[FieldOffset(Offset = "0xE0")]
[Token(Token = "0x40082CE")]
internal ZTree treeBitLengths;
// Token: 0x040082CF RID: 33487
[FieldOffset(Offset = "0xE8")]
[Token(Token = "0x40082CF")]
internal short[] bl_count;
// Token: 0x040082D0 RID: 33488
[FieldOffset(Offset = "0xF0")]
[Token(Token = "0x40082D0")]
internal int[] heap;
// Token: 0x040082D1 RID: 33489
[FieldOffset(Offset = "0xF8")]
[Token(Token = "0x40082D1")]
internal int heap_len;
// Token: 0x040082D2 RID: 33490
[FieldOffset(Offset = "0xFC")]
[Token(Token = "0x40082D2")]
internal int heap_max;
// Token: 0x040082D3 RID: 33491
[FieldOffset(Offset = "0x100")]
[Token(Token = "0x40082D3")]
internal sbyte[] depth;
// Token: 0x040082D4 RID: 33492
[FieldOffset(Offset = "0x108")]
[Token(Token = "0x40082D4")]
internal int _lengthOffset;
// Token: 0x040082D5 RID: 33493
[FieldOffset(Offset = "0x10C")]
[Token(Token = "0x40082D5")]
internal int lit_bufsize;
// Token: 0x040082D6 RID: 33494
[FieldOffset(Offset = "0x110")]
[Token(Token = "0x40082D6")]
internal int last_lit;
// Token: 0x040082D7 RID: 33495
[FieldOffset(Offset = "0x114")]
[Token(Token = "0x40082D7")]
internal int _distanceOffset;
// Token: 0x040082D8 RID: 33496
[FieldOffset(Offset = "0x118")]
[Token(Token = "0x40082D8")]
internal int opt_len;
// Token: 0x040082D9 RID: 33497
[FieldOffset(Offset = "0x11C")]
[Token(Token = "0x40082D9")]
internal int static_len;
// Token: 0x040082DA RID: 33498
[FieldOffset(Offset = "0x120")]
[Token(Token = "0x40082DA")]
internal int matches;
// Token: 0x040082DB RID: 33499
[FieldOffset(Offset = "0x124")]
[Token(Token = "0x40082DB")]
internal int last_eob_len;
// Token: 0x040082DC RID: 33500
[FieldOffset(Offset = "0x128")]
[Token(Token = "0x40082DC")]
internal short bi_buf;
// Token: 0x040082DD RID: 33501
[FieldOffset(Offset = "0x12C")]
[Token(Token = "0x40082DD")]
internal int bi_valid;
// Token: 0x040082DE RID: 33502
[FieldOffset(Offset = "0x130")]
[Token(Token = "0x40082DE")]
private bool Rfc1950BytesEmitted;
// Token: 0x040082DF RID: 33503
[FieldOffset(Offset = "0x131")]
[Token(Token = "0x40082DF")]
private bool _WantRfc1950HeaderBytes;
// Token: 0x02001FA3 RID: 8099
[Token(Token = "0x2001FA3")]
internal sealed class CompressFunc : MulticastDelegate
{
// Token: 0x0600CD4E RID: 52558 RVA: 0x002F12DC File Offset: 0x002EF4DC
[Token(Token = "0x600CD4E")]
[Address(RVA = "0x448ED0", Offset = "0x447CD0", VA = "0x180448ED0")]
public CompressFunc(object @object, IntPtr method)
{
this.method = method;
this.m_target = @object;
}
// Token: 0x0600CD4F RID: 52559 RVA: 0x002F12F8 File Offset: 0x002EF4F8
[Token(Token = "0x600CD4F")]
[Address(RVA = "0x1960B40", Offset = "0x195F940", VA = "0x181960B40", Slot = "13")]
public BlockState Invoke(FlushType flush)
{
uint num;
do
{
Delegate[] delegates = this.delegates;
if (delegates != 0)
{
}
}
while (num == (uint)0);
throw new ExecutionEngineException();
}
// Token: 0x0600CD50 RID: 52560 RVA: 0x002F137C File Offset: 0x002EF57C
[Token(Token = "0x600CD50")]
[Address(RVA = "0x1960AC0", Offset = "0x195F8C0", VA = "0x181960AC0", Slot = "14")]
public IAsyncResult BeginInvoke(FlushType flush, AsyncCallback callback, object @object)
{
}
// Token: 0x0600CD51 RID: 52561 RVA: 0x002F138C File Offset: 0x002EF58C
[Token(Token = "0x600CD51")]
[Address(RVA = "0x458BC0", Offset = "0x4579C0", VA = "0x180458BC0", Slot = "15")]
public BlockState EndInvoke(IAsyncResult result)
{
throw new NullReferenceException();
}
}
// Token: 0x02001FA4 RID: 8100
[Token(Token = "0x2001FA4")]
internal class Config
{
// Token: 0x0600CD52 RID: 52562 RVA: 0x002F13A0 File Offset: 0x002EF5A0
[Token(Token = "0x600CD52")]
[Address(RVA = "0x18D7470", Offset = "0x18D6270", VA = "0x1818D7470")]
private Config(int goodLength, int maxLazy, int niceLength, int maxChainLength, DeflateFlavor flavor)
{
this.MaxChainLength = 0;
this.GoodLength = goodLength;
this.NiceLength = niceLength;
this.Flavor = DeflateFlavor.Store;
this.MaxLazy = maxLazy;
}
// Token: 0x0600CD53 RID: 52563 RVA: 0x002F13D8 File Offset: 0x002EF5D8
[Token(Token = "0x600CD53")]
[Address(RVA = "0x1960E20", Offset = "0x195FC20", VA = "0x181960E20")]
public static DeflateManager.Config Lookup(CompressionLevel level)
{
return DeflateManager.Config.Table[(int)level];
}
// Token: 0x0600CD54 RID: 52564 RVA: 0x002F13F8 File Offset: 0x002EF5F8
[Token(Token = "0x600CD54")]
[Address(RVA = "0x1960EB0", Offset = "0x195FCB0", VA = "0x181960EB0")]
static Config()
{
DeflateManager.Config[] array = new DeflateManager.Config[10];
int num = 0;
DeflateManager.Config config;
config.GoodLength = num;
config.NiceLength = num;
config.Flavor = (DeflateFlavor)num;
array[0] = config;
DeflateManager.Config config2;
config2.GoodLength = (int)((ulong)4L);
config2.MaxLazy = (int)((ulong)4L);
config2.NiceLength = (int)((ulong)8L);
config2.MaxChainLength = (int)((ulong)4L);
config2.Flavor = (DeflateFlavor)((ulong)1L);
array[1] = config2;
DeflateManager.Config config3;
config3.GoodLength = (int)((ulong)4L);
config3.MaxLazy = (int)((ulong)5L);
config3.NiceLength = (int)((ulong)16L);
config3.MaxChainLength = (int)((ulong)8L);
config3.Flavor = (DeflateFlavor)((ulong)1L);
array[2] = config3;
DeflateManager.Config config4;
config4.GoodLength = (int)((ulong)4L);
config4.MaxLazy = (int)((ulong)6L);
config4.NiceLength = (int)((ulong)32L);
config4.MaxChainLength = (int)((ulong)32L);
config4.Flavor = (DeflateFlavor)((ulong)1L);
array[3] = config4;
DeflateManager.Config config5;
config5.GoodLength = (int)((ulong)4L);
config5.MaxLazy = (int)((ulong)4L);
config5.NiceLength = (int)((ulong)16L);
config5.MaxChainLength = (int)((ulong)16L);
config5.Flavor = (DeflateFlavor)((ulong)2L);
array[4] = config5;
DeflateManager.Config config6;
config6.GoodLength = (int)((ulong)8L);
config6.MaxLazy = (int)((ulong)16L);
config6.NiceLength = (int)((ulong)32L);
config6.MaxChainLength = (int)((ulong)32L);
config6.Flavor = (DeflateFlavor)((ulong)2L);
array[5] = config6;
DeflateManager.Config config7;
config7.GoodLength = (int)((ulong)8L);
config7.MaxLazy = (int)((ulong)16L);
config7.NiceLength = (int)((ulong)128L);
config7.MaxChainLength = (int)((ulong)128L);
config7.Flavor = (DeflateFlavor)((ulong)2L);
array[6] = config7;
DeflateManager.Config config8;
config8.GoodLength = (int)((ulong)8L);
config8.MaxLazy = (int)((ulong)32L);
config8.NiceLength = (int)((ulong)128L);
config8.MaxChainLength = (int)((ulong)256L);
config8.Flavor = (DeflateFlavor)((ulong)2L);
array[7] = config8;
DeflateManager.Config config9;
config9.GoodLength = (int)((ulong)32L);
config9.MaxLazy = (int)((ulong)128L);
config9.NiceLength = (int)((ulong)258L);
config9.MaxChainLength = (int)((ulong)1024L);
config9.Flavor = (DeflateFlavor)((ulong)2L);
array[8] = config9;
DeflateManager.Config config10;
config10.GoodLength = (int)((ulong)32L);
config10.MaxLazy = (int)((ulong)258L);
config10.NiceLength = (int)((ulong)258L);
config10.MaxChainLength = (int)((ulong)4096L);
config10.Flavor = (DeflateFlavor)((ulong)2L);
array[9] = config10;
DeflateManager.Config.Table = array;
}
// Token: 0x040082E0 RID: 33504
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40082E0")]
internal int GoodLength;
// Token: 0x040082E1 RID: 33505
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x40082E1")]
internal int MaxLazy;
// Token: 0x040082E2 RID: 33506
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40082E2")]
internal int NiceLength;
// Token: 0x040082E3 RID: 33507
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40082E3")]
internal int MaxChainLength;
// Token: 0x040082E4 RID: 33508
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40082E4")]
internal DeflateFlavor Flavor;
// Token: 0x040082E5 RID: 33509
[Token(Token = "0x40082E5")]
private static readonly DeflateManager.Config[] Table;
}
}
}
@@ -0,0 +1,529 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA5 RID: 8101
[Token(Token = "0x2001FA5")]
public class DeflateStream : Stream
{
// Token: 0x0600CD55 RID: 52565 RVA: 0x002F167C File Offset: 0x002EF87C
[Token(Token = "0x600CD55")]
[Address(RVA = "0x196C980", Offset = "0x196B780", VA = "0x18196C980")]
public DeflateStream(Stream stream, CompressionMode mode)
{
}
// Token: 0x0600CD56 RID: 52566 RVA: 0x002F168C File Offset: 0x002EF88C
[Token(Token = "0x600CD56")]
[Address(RVA = "0x196C9B0", Offset = "0x196B7B0", VA = "0x18196C9B0")]
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level)
{
}
// Token: 0x0600CD57 RID: 52567 RVA: 0x002F169C File Offset: 0x002EF89C
[Token(Token = "0x600CD57")]
[Address(RVA = "0x196C9D0", Offset = "0x196B7D0", VA = "0x18196C9D0")]
public DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
{
}
// Token: 0x0600CD58 RID: 52568 RVA: 0x002F16AC File Offset: 0x002EF8AC
[Token(Token = "0x600CD58")]
[Address(RVA = "0x196CB30", Offset = "0x196B930", VA = "0x18196CB30")]
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
{
this._innerStream = stream;
ZlibBaseStream zlibBaseStream;
this._baseStream = zlibBaseStream;
}
// Token: 0x0600CD59 RID: 52569 RVA: 0x002F16D0 File Offset: 0x002EF8D0
[Token(Token = "0x600CD59")]
[Address(RVA = "0x196CA00", Offset = "0x196B800", VA = "0x18196CA00")]
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen, int windowBits)
{
this._innerStream = stream;
ZlibBaseStream zlibBaseStream;
zlibBaseStream._streamMode = (ZlibBaseStream.StreamMode)((ulong)2L);
zlibBaseStream._bufferSize = (int)((ulong)16384L);
byte[] array = new byte[1];
zlibBaseStream._buf1 = array;
zlibBaseStream._leaveOpen = false;
zlibBaseStream.windowBitsMax = 0;
zlibBaseStream._flushMode = (FlushType)((ulong)0L);
zlibBaseStream._stream = stream;
zlibBaseStream._compressionMode = mode;
zlibBaseStream._flavor = (ZlibStreamFlavor)((ulong)1951L);
zlibBaseStream._level = level;
this._baseStream = zlibBaseStream;
}
// Token: 0x170020A1 RID: 8353
// (get) Token: 0x0600CD5A RID: 52570 RVA: 0x002F1754 File Offset: 0x002EF954
// (set) Token: 0x0600CD5B RID: 52571 RVA: 0x002F1774 File Offset: 0x002EF974
[Token(Token = "0x170020A1")]
public virtual FlushType FlushMode
{
[Token(Token = "0x600CD5A")]
[Address(RVA = "0x196CD40", Offset = "0x196BB40", VA = "0x18196CD40", Slot = "31")]
get
{
return this._baseStream._flushMode;
}
[Token(Token = "0x600CD5B")]
[Address(RVA = "0x196CFE0", Offset = "0x196BDE0", VA = "0x18196CFE0", Slot = "32")]
set
{
/*
An exception occurred when decompiling this method (0600CD5B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::set_FlushMode(BestHTTP.Decompression.Zlib.FlushType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:ObjectDisposedException(var_1_22, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020A2 RID: 8354
// (get) Token: 0x0600CD5C RID: 52572 RVA: 0x002F17A4 File Offset: 0x002EF9A4
// (set) Token: 0x0600CD5D RID: 52573 RVA: 0x002F17C4 File Offset: 0x002EF9C4
[Token(Token = "0x170020A2")]
public int BufferSize
{
[Token(Token = "0x600CD5C")]
[Address(RVA = "0x196CC00", Offset = "0x196BA00", VA = "0x18196CC00")]
get
{
return this._baseStream._bufferSize;
}
[Token(Token = "0x600CD5D")]
[Address(RVA = "0x196CE90", Offset = "0x196BC90", VA = "0x18196CE90")]
set
{
/*
An exception occurred when decompiling this method (0600CD5D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::set_BufferSize(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:ObjectDisposedException(var_1_2D, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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 1660
*/;
}
}
// Token: 0x170020A3 RID: 8355
// (get) Token: 0x0600CD5E RID: 52574 RVA: 0x002F1800 File Offset: 0x002EFA00
// (set) Token: 0x0600CD5F RID: 52575 RVA: 0x002F1820 File Offset: 0x002EFA20
[Token(Token = "0x170020A3")]
public CompressionStrategy Strategy
{
[Token(Token = "0x600CD5E")]
[Address(RVA = "0x196CE10", Offset = "0x196BC10", VA = "0x18196CE10")]
get
{
return this._baseStream.Strategy;
}
[Token(Token = "0x600CD5F")]
[Address(RVA = "0x196D0B0", Offset = "0x196BEB0", VA = "0x18196D0B0")]
set
{
/*
An exception occurred when decompiling this method (0600CD5F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::set_Strategy(BestHTTP.Decompression.Zlib.CompressionStrategy)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:ObjectDisposedException(var_1_22, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020A4 RID: 8356
// (get) Token: 0x0600CD60 RID: 52576 RVA: 0x002F1850 File Offset: 0x002EFA50
[Token(Token = "0x170020A4")]
public virtual long TotalIn
{
[Token(Token = "0x600CD60")]
[Address(RVA = "0x196CE30", Offset = "0x196BC30", VA = "0x18196CE30", Slot = "33")]
get
{
return this._baseStream._z.TotalBytesIn;
}
}
// Token: 0x170020A5 RID: 8357
// (get) Token: 0x0600CD61 RID: 52577 RVA: 0x002F1874 File Offset: 0x002EFA74
[Token(Token = "0x170020A5")]
public virtual long TotalOut
{
[Token(Token = "0x600CD61")]
[Address(RVA = "0x196CE60", Offset = "0x196BC60", VA = "0x18196CE60", Slot = "34")]
get
{
return this._baseStream._z.TotalBytesOut;
}
}
// Token: 0x0600CD62 RID: 52578 RVA: 0x002F1898 File Offset: 0x002EFA98
[Token(Token = "0x600CD62")]
[Address(RVA = "0x196C690", Offset = "0x196B490", VA = "0x18196C690", Slot = "16")]
protected override void Dispose(bool disposing)
{
int num;
do
{
num = 0;
if ((this._disposed ? 1 : 0) == num)
{
if (disposing)
{
ZlibBaseStream baseStream = this._baseStream;
if (baseStream != 0)
{
int writeTimeout = baseStream.WriteTimeout;
}
}
this._disposed = true;
}
base.Dispose(disposing);
}
while (num != 0);
}
// Token: 0x170020A6 RID: 8358
// (get) Token: 0x0600CD63 RID: 52579 RVA: 0x002F18D8 File Offset: 0x002EFAD8
[Token(Token = "0x170020A6")]
public override bool CanRead
{
[Token(Token = "0x600CD63")]
[Address(RVA = "0x196CC20", Offset = "0x196BA20", VA = "0x18196CC20", Slot = "7")]
get
{
/*
An exception occurred when decompiling this method (0600CD63)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Decompression.Zlib.DeflateStream::get_CanRead()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1A:
stloc:ObjectDisposedException(var_0_24, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020A7 RID: 8359
// (get) Token: 0x0600CD64 RID: 52580 RVA: 0x002F190C File Offset: 0x002EFB0C
[Token(Token = "0x170020A7")]
public override bool CanSeek
{
[Token(Token = "0x600CD64")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
}
}
// Token: 0x170020A8 RID: 8360
// (get) Token: 0x0600CD65 RID: 52581 RVA: 0x002F191C File Offset: 0x002EFB1C
[Token(Token = "0x170020A8")]
public override bool CanWrite
{
[Token(Token = "0x600CD65")]
[Address(RVA = "0x196CCB0", Offset = "0x196BAB0", VA = "0x18196CCB0", Slot = "9")]
get
{
/*
An exception occurred when decompiling this method (0600CD65)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Decompression.Zlib.DeflateStream::get_CanWrite()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1A:
stloc:ObjectDisposedException(var_0_24, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x0600CD66 RID: 52582 RVA: 0x002F1950 File Offset: 0x002EFB50
[Token(Token = "0x600CD66")]
[Address(RVA = "0x196C730", Offset = "0x196B530", VA = "0x18196C730", Slot = "17")]
public override void Flush()
{
/*
An exception occurred when decompiling this method (0600CD66)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::Flush()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_15:
stloc:ObjectDisposedException(var_0_1F, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x170020A9 RID: 8361
// (get) Token: 0x0600CD67 RID: 52583 RVA: 0x002F197C File Offset: 0x002EFB7C
[Token(Token = "0x170020A9")]
public override long Length
{
[Token(Token = "0x600CD67")]
[Address(RVA = "0x196CD60", Offset = "0x196BB60", VA = "0x18196CD60", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (0600CD67)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.DeflateStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
}
// Token: 0x170020AA RID: 8362
// (get) Token: 0x0600CD68 RID: 52584 RVA: 0x002F1990 File Offset: 0x002EFB90
// (set) Token: 0x0600CD69 RID: 52585 RVA: 0x002F19D4 File Offset: 0x002EFBD4
[Token(Token = "0x170020AA")]
public override long Position
{
[Token(Token = "0x600CD68")]
[Address(RVA = "0x196CDB0", Offset = "0x196BBB0", VA = "0x18196CDB0", Slot = "11")]
get
{
ZlibBaseStream baseStream = this._baseStream;
ZlibBaseStream.StreamMode streamMode = baseStream._streamMode;
if (streamMode != ZlibBaseStream.StreamMode.Writer)
{
if (streamMode != ZlibBaseStream.StreamMode.Reader)
{
}
return baseStream._z.TotalBytesIn;
}
return baseStream._z.TotalBytesOut;
}
[Token(Token = "0x600CD69")]
[Address(RVA = "0x196D060", Offset = "0x196BE60", VA = "0x18196D060", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (0600CD69)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
}
// Token: 0x0600CD6A RID: 52586 RVA: 0x002F19E8 File Offset: 0x002EFBE8
[Token(Token = "0x600CD6A")]
[Address(RVA = "0x196C7B0", Offset = "0x196B5B0", VA = "0x18196C7B0", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (0600CD6A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.DeflateStream::Read(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:ObjectDisposedException(var_0_22, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CD6B RID: 52587 RVA: 0x002F1A18 File Offset: 0x002EFC18
[Token(Token = "0x600CD6B")]
[Address(RVA = "0x196C870", Offset = "0x196B670", VA = "0x18196C870", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (0600CD6B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.DeflateStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
// Token: 0x0600CD6C RID: 52588 RVA: 0x002F1A2C File Offset: 0x002EFC2C
[Token(Token = "0x600CD6C")]
[Address(RVA = "0x44E4A0", Offset = "0x44D2A0", VA = "0x18044E4A0", Slot = "26")]
public override void SetLength(long value)
{
((IDisposable)this._baseStream).Dispose();
}
// Token: 0x0600CD6D RID: 52589 RVA: 0x002F1A4C File Offset: 0x002EFC4C
[Token(Token = "0x600CD6D")]
[Address(RVA = "0x196C8C0", Offset = "0x196B6C0", VA = "0x18196C8C0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (0600CD6D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.DeflateStream::Write(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_19:
stloc:ObjectDisposedException(var_1_23, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("DeflateStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x040082E6 RID: 33510
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40082E6")]
internal ZlibBaseStream _baseStream;
// Token: 0x040082E7 RID: 33511
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40082E7")]
internal Stream _innerStream;
// Token: 0x040082E8 RID: 33512
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40082E8")]
private bool _disposed;
}
}
@@ -0,0 +1,26 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FAF RID: 8111
[Token(Token = "0x2001FAF")]
public enum FlushType
{
// Token: 0x0400836F RID: 33647
[Token(Token = "0x400836F")]
None,
// Token: 0x04008370 RID: 33648
[Token(Token = "0x4008370")]
Partial,
// Token: 0x04008371 RID: 33649
[Token(Token = "0x4008371")]
Sync,
// Token: 0x04008372 RID: 33650
[Token(Token = "0x4008372")]
Full,
// Token: 0x04008373 RID: 33651
[Token(Token = "0x4008373")]
Finish
}
}
@@ -0,0 +1,662 @@
using System;
using System.IO;
using System.Text;
using BestHTTP.Decompression.Crc;
using BestHTTP.Extensions;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA6 RID: 8102
[Token(Token = "0x2001FA6")]
public class GZipStream : Stream
{
// Token: 0x170020AB RID: 8363
// (get) Token: 0x0600CD6E RID: 52590 RVA: 0x002F1A7C File Offset: 0x002EFC7C
// (set) Token: 0x0600CD6F RID: 52591 RVA: 0x002F1A90 File Offset: 0x002EFC90
[Token(Token = "0x170020AB")]
public string Comment
{
[Token(Token = "0x600CD6E")]
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40")]
get
{
return this._Comment;
}
[Token(Token = "0x600CD6F")]
[Address(RVA = "0x196E140", Offset = "0x196CF40", VA = "0x18196E140")]
set
{
/*
An exception occurred when decompiling this method (0600CD6F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::set_Comment(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_11:
stloc:ObjectDisposedException(var_0_1B, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020AC RID: 8364
// (get) Token: 0x0600CD70 RID: 52592 RVA: 0x002F1AB8 File Offset: 0x002EFCB8
// (set) Token: 0x0600CD71 RID: 52593 RVA: 0x002F1ACC File Offset: 0x002EFCCC
[Token(Token = "0x170020AC")]
public string FileName
{
[Token(Token = "0x600CD70")]
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
get
{
return this._FileName;
}
[Token(Token = "0x600CD71")]
[Address(RVA = "0x196E1C0", Offset = "0x196CFC0", VA = "0x18196E1C0")]
set
{
/*
An exception occurred when decompiling this method (0600CD71)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::set_FileName(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_84:
stloc:Exception(var_3_8E, newobj:Exception(Exception::.ctor, ldstr:string("Illegal filename")))
}
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 1660
*/;
}
}
// Token: 0x170020AD RID: 8365
// (get) Token: 0x0600CD72 RID: 52594 RVA: 0x002F1B68 File Offset: 0x002EFD68
[Token(Token = "0x170020AD")]
public int Crc32
{
[Token(Token = "0x600CD72")]
[Address(RVA = "0xD17AD0", Offset = "0xD168D0", VA = "0x180D17AD0")]
get
{
return this._Crc32;
}
}
// Token: 0x0600CD73 RID: 52595 RVA: 0x002F1B7C File Offset: 0x002EFD7C
[Token(Token = "0x600CD73")]
[Address(RVA = "0x196DC20", Offset = "0x196CA20", VA = "0x18196DC20")]
public GZipStream(Stream stream, CompressionMode mode)
{
}
// Token: 0x0600CD74 RID: 52596 RVA: 0x002F1B8C File Offset: 0x002EFD8C
[Token(Token = "0x600CD74")]
[Address(RVA = "0x196DD20", Offset = "0x196CB20", VA = "0x18196DD20")]
public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level)
{
}
// Token: 0x0600CD75 RID: 52597 RVA: 0x002F1B9C File Offset: 0x002EFD9C
[Token(Token = "0x600CD75")]
[Address(RVA = "0x196DD40", Offset = "0x196CB40", VA = "0x18196DD40")]
public GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
{
}
// Token: 0x0600CD76 RID: 52598 RVA: 0x002F1BAC File Offset: 0x002EFDAC
[Token(Token = "0x600CD76")]
[Address(RVA = "0x196DC50", Offset = "0x196CA50", VA = "0x18196DC50")]
public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
{
ZlibBaseStream zlibBaseStream;
this._baseStream = zlibBaseStream;
}
// Token: 0x170020AE RID: 8366
// (get) Token: 0x0600CD77 RID: 52599 RVA: 0x002F1BC8 File Offset: 0x002EFDC8
// (set) Token: 0x0600CD78 RID: 52600 RVA: 0x002F1BE8 File Offset: 0x002EFDE8
[Token(Token = "0x170020AE")]
public virtual FlushType FlushMode
{
[Token(Token = "0x600CD77")]
[Address(RVA = "0x196DEB0", Offset = "0x196CCB0", VA = "0x18196DEB0", Slot = "31")]
get
{
return this._baseStream._flushMode;
}
[Token(Token = "0x600CD78")]
[Address(RVA = "0x196E330", Offset = "0x196D130", VA = "0x18196E330", Slot = "32")]
set
{
/*
An exception occurred when decompiling this method (0600CD78)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::set_FlushMode(BestHTTP.Decompression.Zlib.FlushType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:ObjectDisposedException(var_1_22, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020AF RID: 8367
// (get) Token: 0x0600CD79 RID: 52601 RVA: 0x002F1C18 File Offset: 0x002EFE18
// (set) Token: 0x0600CD7A RID: 52602 RVA: 0x002F1C38 File Offset: 0x002EFE38
[Token(Token = "0x170020AF")]
public int BufferSize
{
[Token(Token = "0x600CD79")]
[Address(RVA = "0x196DD70", Offset = "0x196CB70", VA = "0x18196DD70")]
get
{
return this._baseStream._bufferSize;
}
[Token(Token = "0x600CD7A")]
[Address(RVA = "0x196DFF0", Offset = "0x196CDF0", VA = "0x18196DFF0")]
set
{
/*
An exception occurred when decompiling this method (0600CD7A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::set_BufferSize(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:ObjectDisposedException(var_1_2D, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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 1660
*/;
}
}
// Token: 0x170020B0 RID: 8368
// (get) Token: 0x0600CD7B RID: 52603 RVA: 0x002F1C74 File Offset: 0x002EFE74
[Token(Token = "0x170020B0")]
public virtual long TotalIn
{
[Token(Token = "0x600CD7B")]
[Address(RVA = "0x196DF90", Offset = "0x196CD90", VA = "0x18196DF90", Slot = "33")]
get
{
return this._baseStream._z.TotalBytesIn;
}
}
// Token: 0x170020B1 RID: 8369
// (get) Token: 0x0600CD7C RID: 52604 RVA: 0x002F1C98 File Offset: 0x002EFE98
[Token(Token = "0x170020B1")]
public virtual long TotalOut
{
[Token(Token = "0x600CD7C")]
[Address(RVA = "0x196DFC0", Offset = "0x196CDC0", VA = "0x18196DFC0", Slot = "34")]
get
{
return this._baseStream._z.TotalBytesOut;
}
}
// Token: 0x0600CD7D RID: 52605 RVA: 0x002F1CBC File Offset: 0x002EFEBC
[Token(Token = "0x600CD7D")]
[Address(RVA = "0x196D130", Offset = "0x196BF30", VA = "0x18196D130", Slot = "16")]
protected override void Dispose(bool disposing)
{
int num = 0;
if ((this._disposed ? 1 : 0) == num)
{
if (disposing)
{
ZlibBaseStream baseStream = this._baseStream;
if (baseStream != 0)
{
int writeTimeout = baseStream.WriteTimeout;
CRC32 crc = this._baseStream.crc;
if (crc == 0)
{
goto IL_53;
}
uint register = crc._register;
this._Crc32 = (int)register;
}
}
this._disposed = true;
}
base.Dispose(disposing);
if (num != 0)
{
throw new NullReferenceException();
}
IL_53:
this._Crc32 = num;
}
// Token: 0x170020B2 RID: 8370
// (get) Token: 0x0600CD7E RID: 52606 RVA: 0x002F1D2C File Offset: 0x002EFF2C
[Token(Token = "0x170020B2")]
public override bool CanRead
{
[Token(Token = "0x600CD7E")]
[Address(RVA = "0x196DD90", Offset = "0x196CB90", VA = "0x18196DD90", Slot = "7")]
get
{
/*
An exception occurred when decompiling this method (0600CD7E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Decompression.Zlib.GZipStream::get_CanRead()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1A:
stloc:ObjectDisposedException(var_0_24, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x170020B3 RID: 8371
// (get) Token: 0x0600CD7F RID: 52607 RVA: 0x002F1D60 File Offset: 0x002EFF60
[Token(Token = "0x170020B3")]
public override bool CanSeek
{
[Token(Token = "0x600CD7F")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
}
}
// Token: 0x170020B4 RID: 8372
// (get) Token: 0x0600CD80 RID: 52608 RVA: 0x002F1D70 File Offset: 0x002EFF70
[Token(Token = "0x170020B4")]
public override bool CanWrite
{
[Token(Token = "0x600CD80")]
[Address(RVA = "0x196DE20", Offset = "0x196CC20", VA = "0x18196DE20", Slot = "9")]
get
{
/*
An exception occurred when decompiling this method (0600CD80)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.Decompression.Zlib.GZipStream::get_CanWrite()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1A:
stloc:ObjectDisposedException(var_0_24, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
}
// Token: 0x0600CD81 RID: 52609 RVA: 0x002F1DA4 File Offset: 0x002EFFA4
[Token(Token = "0x600CD81")]
[Address(RVA = "0x196D6D0", Offset = "0x196C4D0", VA = "0x18196D6D0", Slot = "17")]
public override void Flush()
{
/*
An exception occurred when decompiling this method (0600CD81)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::Flush()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_15:
stloc:ObjectDisposedException(var_0_1F, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x170020B5 RID: 8373
// (get) Token: 0x0600CD82 RID: 52610 RVA: 0x002F1DD0 File Offset: 0x002EFFD0
[Token(Token = "0x170020B5")]
public override long Length
{
[Token(Token = "0x600CD82")]
[Address(RVA = "0x196DED0", Offset = "0x196CCD0", VA = "0x18196DED0", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (0600CD82)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.GZipStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
}
// Token: 0x170020B6 RID: 8374
// (get) Token: 0x0600CD83 RID: 52611 RVA: 0x002F1DE4 File Offset: 0x002EFFE4
// (set) Token: 0x0600CD84 RID: 52612 RVA: 0x002F1E30 File Offset: 0x002F0030
[Token(Token = "0x170020B6")]
public override long Position
{
[Token(Token = "0x600CD83")]
[Address(RVA = "0x196DF20", Offset = "0x196CD20", VA = "0x18196DF20", Slot = "11")]
get
{
ZlibBaseStream baseStream = this._baseStream;
ZlibBaseStream.StreamMode streamMode = baseStream._streamMode;
if (streamMode != ZlibBaseStream.StreamMode.Writer)
{
if (streamMode != ZlibBaseStream.StreamMode.Reader)
{
}
ZlibCodec z = baseStream._z;
int gzipHeaderByteCount = baseStream._gzipHeaderByteCount;
}
ZlibCodec z2 = baseStream._z;
int headerByteCount = this._headerByteCount;
throw new NullReferenceException();
}
[Token(Token = "0x600CD84")]
[Address(RVA = "0x196E3B0", Offset = "0x196D1B0", VA = "0x18196E3B0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (0600CD84)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
}
// Token: 0x0600CD85 RID: 52613 RVA: 0x002F1E44 File Offset: 0x002F0044
[Token(Token = "0x600CD85")]
[Address(RVA = "0x196D750", Offset = "0x196C550", VA = "0x18196D750", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (0600CD85)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.GZipStream::Read(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_E4:
stloc:ObjectDisposedException(var_8_EE, newobj:ObjectDisposedException(ObjectDisposedException::.ctor, ldstr:string("GZipStream")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CD86 RID: 52614 RVA: 0x002F1F40 File Offset: 0x002F0140
[Token(Token = "0x600CD86")]
[Address(RVA = "0x196D9F0", Offset = "0x196C7F0", VA = "0x18196D9F0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (0600CD86)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.GZipStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
// Token: 0x0600CD87 RID: 52615 RVA: 0x002F1F54 File Offset: 0x002F0154
[Token(Token = "0x600CD87")]
[Address(RVA = "0x196DA40", Offset = "0x196C840", VA = "0x18196DA40", Slot = "26")]
public override void SetLength(long value)
{
((IDisposable)this._baseStream).Dispose();
}
// Token: 0x0600CD88 RID: 52616 RVA: 0x002F1F74 File Offset: 0x002F0174
[Token(Token = "0x600CD88")]
[Address(RVA = "0x196DA70", Offset = "0x196C870", VA = "0x18196DA70", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (0600CD88)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.GZipStream::Write(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_46:
stloc:InvalidOperationException(var_4_4B, newobj:InvalidOperationException(InvalidOperationException::.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 1660
*/;
}
// Token: 0x0600CD89 RID: 52617 RVA: 0x002F1FD0 File Offset: 0x002F01D0
[Token(Token = "0x600CD89")]
[Address(RVA = "0x196D200", Offset = "0x196C000", VA = "0x18196D200")]
private int EmitHeader()
{
if (this._Comment == 0)
{
}
string comment = this._Comment;
Encoding encoding = GZipStream.iso8859dash1;
if (this._FileName == 0)
{
}
string fileName = this._FileName;
Encoding encoding2 = GZipStream.iso8859dash1;
int num;
if (this._Comment == (ulong)0L)
{
num = 0;
}
num++;
int num2;
if (this._FileName == (ulong)0L)
{
num2 = 0;
}
num2++;
int num3 = 0;
byte[] array;
array[0] = (byte)num3;
DateTime now = DateTime.Now;
int num4 = 0;
this.LastModified = num4;
DateTime unixEpoch = GZipStream._unixEpoch;
DateTime dateTime;
TimeSpan timeSpan = dateTime - unixEpoch;
int num5 = 0;
int num6 = 0;
byte[] array2;
ulong num7;
Array.Copy(array2, num6, array, 4, (int)num7);
array[1] = (byte)num5;
if (num2 != 0)
{
num2 += 9;
}
if (num != 0)
{
}
int num8 = this._baseStream._stream.ReadByte();
VariableSizedBufferPool.Release(array);
return array.Length;
}
// Token: 0x040082E9 RID: 33513
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40082E9")]
public DateTime? LastModified;
// Token: 0x040082EA RID: 33514
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40082EA")]
private int _headerByteCount;
// Token: 0x040082EB RID: 33515
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40082EB")]
internal ZlibBaseStream _baseStream;
// Token: 0x040082EC RID: 33516
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40082EC")]
private bool _disposed;
// Token: 0x040082ED RID: 33517
[FieldOffset(Offset = "0x49")]
[Token(Token = "0x40082ED")]
private bool _firstReadDone;
// Token: 0x040082EE RID: 33518
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40082EE")]
private string _FileName;
// Token: 0x040082EF RID: 33519
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40082EF")]
private string _Comment;
// Token: 0x040082F0 RID: 33520
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40082F0")]
private int _Crc32;
// Token: 0x040082F1 RID: 33521
[Token(Token = "0x40082F1")]
internal static readonly DateTime _unixEpoch = 0;
// Token: 0x040082F2 RID: 33522
[Token(Token = "0x40082F2")]
internal static readonly Encoding iso8859dash1 = Encoding.GetEncoding("iso-8859-1");
}
}
@@ -0,0 +1,441 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA7 RID: 8103
[Token(Token = "0x2001FA7")]
internal sealed class InfTree
{
// Token: 0x0600CD8B RID: 52619 RVA: 0x002F20E4 File Offset: 0x002F02E4
[Token(Token = "0x600CD8B")]
[Address(RVA = "0x196E5E0", Offset = "0x196D3E0", VA = "0x18196E5E0")]
private int huft_build(int[] b, int bindex, int n, int s, int[] d, int[] e, int[] t, int[] m, int[] hp, int[] hn, int[] v)
{
int[] array;
do
{
array = this.c;
}
while (b[bindex] != array.Length);
int length = this.c.Length;
if ("{il2cpp array field local14->}" != n)
{
uint num;
if ("{il2cpp array field local14->}" == (ulong)0L)
{
num += (uint)1;
while (num <= (uint)15)
{
}
}
if ("{il2cpp array field local14->}" == (ulong)0L)
{
while ("{il2cpp array field local14->}" != (ulong)0L)
{
}
}
uint num2;
uint num3;
if (num < num2)
{
int[] array2 = this.c;
num += (uint)1;
num3 += num3;
}
this.c[0] = (int)num3;
int num4 = 0;
int[] array3 = this.x;
uint num5 = num2 - 1U;
array3[0] = num4;
if (num5 != (uint)0)
{
int[] array4 = this.c;
int[] array5 = this.x;
int num6;
num6 += num4;
array5[0] = num6;
while (1 != array5.Length)
{
}
}
int num7 = b[bindex];
if (num7 != 0)
{
int[] array6 = this.x;
int num8 = array6[num7] + 1;
array6[0] = num8;
}
int[] array7 = this.x;
int length2 = array7.Length;
int num9 = array7[(int)num2];
int num10 = 0;
int num11 = 0;
array7[0] = num10;
int[] array8 = this.u;
int num12 = 0;
array8[0] = num11;
int num13 = this.c[(int)num];
int num14 = num13 - 1;
if (num13 != 0)
{
int num15 = num14 + 1;
if (num > (uint)num13)
{
uint num16;
num16 += (uint)1;
num13 = num9;
uint num17;
num17 -= (uint)num14;
if (num9 < num15)
{
int num18 = num9 + 1;
num9 = num18;
if (num18 < num15)
{
int[] array9 = this.c;
num17 += num17;
num += (uint)1;
int num19 = array9[(int)num];
if (num17 > (uint)num19)
{
num18++;
num17 -= (uint)num19;
num9 = num18;
}
}
}
this.u[0] = num12;
if (num16 == (uint)0)
{
}
int[] array10 = this.x;
array10[0] = num10;
this.r[0] = array10;
this.r[0] = array10;
int[] array11 = this.u;
num13 -= (int)num;
int[] array12 = this.r;
num12 -= num10;
array12[1] = num12;
int num20 = this.u[(int)num16];
num20 += num10;
int[] array13 = this.r;
}
int[] array14 = this.r;
num -= (uint)num13;
array14[0] = (int)num;
if (num11 < num9)
{
int[] array15 = this.r;
num11++;
int num21;
num21 += 80;
array15[0] = array14;
int num22;
this.r[1] = num22;
int[] array16 = this.r;
num11++;
uint num23;
array16[0] = (int)num23;
this.r[1] = (int)num23;
}
int[] array17 = this.r;
num -= (uint)num13;
uint num24;
if (num10 < (int)num24)
{
int[] array18 = this.r;
uint num25;
num10 += (int)num25;
}
uint num26;
if (num10 != (int)num26)
{
while (num10 != (int)num26)
{
}
}
int[] array19 = this.x;
uint num27;
if (num27 != "{il2cpp array field local79->}")
{
num13 -= (int)num;
}
while (num14 != 0)
{
}
}
num += (uint)1;
while (num <= num2)
{
}
if (num2 != (uint)1)
{
}
}
throw new NullReferenceException();
}
// Token: 0x0600CD8C RID: 52620 RVA: 0x002F2400 File Offset: 0x002F0600
[Token(Token = "0x600CD8C")]
[Address(RVA = "0x196F1C0", Offset = "0x196DFC0", VA = "0x18196F1C0")]
internal int inflate_trees_bits(int[] c, int[] bb, int[] tb, int[] hp, ZlibCodec z)
{
this.initWorkArea(19);
int[] array = this.hn;
int num = 0;
array[0] = num;
int[] array2 = this.v;
int[] array3 = this.hn;
int num2;
if (num2 == -3 || num2 == -5 || "{il2cpp array field bb->}" == (ulong)0L)
{
}
return num2;
}
// Token: 0x0600CD8D RID: 52621 RVA: 0x002F2454 File Offset: 0x002F0654
[Token(Token = "0x600CD8D")]
[Address(RVA = "0x196F310", Offset = "0x196E110", VA = "0x18196F310")]
internal int inflate_trees_dynamic(int nl, int nd, int[] c, int[] bl, int[] bd, int[] tl, int[] td, int[] hp, ZlibCodec z)
{
this.initWorkArea(288);
int[] array = this.hn;
int num = 0;
array[0] = num;
int[] array2 = this.hn;
int[] array3 = InfTree.cplens;
int[] array4 = InfTree.cplext;
int[] array5 = this.v;
int num2;
if (num2 == 0)
{
this.initWorkArea(288);
int[] array6 = this.hn;
int[] array7 = InfTree.cpdist;
int[] array8 = InfTree.cpdext;
int[] array9 = this.v;
int num3;
if (num3 == 0)
{
}
if (num3 == -3 || num3 == -5 || num3 != -4)
{
}
return num3;
}
if (num2 != -3)
{
while (num2 == -4)
{
}
}
throw new NullReferenceException();
}
// Token: 0x0600CD8E RID: 52622 RVA: 0x002F24F4 File Offset: 0x002F06F4
[Token(Token = "0x600CD8E")]
[Address(RVA = "0x196F620", Offset = "0x196E420", VA = "0x18196F620")]
internal static int inflate_trees_fixed(int[] bl, int[] bd, int[][] tl, int[][] td, ZlibCodec z)
{
int[] array = InfTree.fixed_tl;
if (array != 0)
{
}
tl[0] = array;
int[] array2 = InfTree.fixed_td;
if (array2 != 0)
{
}
int num = 0;
td[0] = array2;
return num;
}
// Token: 0x0600CD8F RID: 52623 RVA: 0x002F2530 File Offset: 0x002F0730
[Token(Token = "0x600CD8F")]
[Address(RVA = "0x196F7B0", Offset = "0x196E5B0", VA = "0x18196F7B0")]
private void initWorkArea(int vsize)
{
if (this.cplens != (ulong)0L)
{
int[] array = this.v;
if (array.Length < vsize)
{
int[] array2 = new int[vsize];
this.v = array2;
}
int num = 0;
Array.Clear(array, num, vsize);
int[] array3 = this.c;
int num2 = 0;
Array.Clear(array3, num2, 16);
int[] array4 = this.r;
int num3 = 0;
array4[0] = num3;
this.r[0] = num3;
this.r[1] = num3;
int[] array5 = this.u;
int num4 = 0;
Array.Clear(array5, num4, 15);
int[] array6 = this.x;
int num5 = 0;
Array.Clear(array6, num5, 16);
return;
}
int[] array7 = new int[1];
this.hn = array7;
int[] array8 = new int[vsize];
this.v = array8;
int[] array9 = new int[16];
this.c = array9;
int[] array10 = new int[3];
this.r = array10;
int[] array11 = new int[15];
this.u = array11;
int[] array12 = new int[16];
this.x = array12;
}
// Token: 0x0600CD90 RID: 52624 RVA: 0x002F2650 File Offset: 0x002F0850
[Token(Token = "0x600CD90")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public InfTree()
{
}
// Token: 0x0600CD91 RID: 52625 RVA: 0x002F2664 File Offset: 0x002F0864
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CD91")]
[Address(RVA = "0x196E460", Offset = "0x196D260", VA = "0x18196E460")]
static InfTree()
{
int[] array = new int[1536];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.A474A0BEC4E2CE8491839502AE85F6EA8504C6BD).FieldHandle);
InfTree.fixed_tl = array;
int[] array2 = new int[96];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.1B180C6E41F096D53222F5E8EF558B78182CA401).FieldHandle);
InfTree.fixed_td = array2;
int[] array3 = new int[31];
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.8ED8F61DAA454B49CD5059AE4486C59174324E9E).FieldHandle);
InfTree.cplens = array3;
int[] array4 = new int[31];
RuntimeHelpers.InitializeArray(array4, fieldof(<PrivateImplementationDetails>.DACFCC5E985D9E113ABB74724C5D3CC4FDC4FB8A).FieldHandle);
InfTree.cplext = array4;
int[] array5 = new int[30];
RuntimeHelpers.InitializeArray(array5, fieldof(<PrivateImplementationDetails>.D068832E6B13A623916709C1E0E25ADCBE7B455F).FieldHandle);
InfTree.cpdist = array5;
int[] array6 = new int[30];
RuntimeHelpers.InitializeArray(array6, fieldof(<PrivateImplementationDetails>.79D521E6E3E55103005E9CC3FA43B3174FAF090F).FieldHandle);
InfTree.cpdext = array6;
}
// Token: 0x040082F3 RID: 33523
[Token(Token = "0x40082F3")]
private const int MANY = 1440;
// Token: 0x040082F4 RID: 33524
[Token(Token = "0x40082F4")]
private const int Z_OK = 0;
// Token: 0x040082F5 RID: 33525
[Token(Token = "0x40082F5")]
private const int Z_STREAM_END = 1;
// Token: 0x040082F6 RID: 33526
[Token(Token = "0x40082F6")]
private const int Z_NEED_DICT = 2;
// Token: 0x040082F7 RID: 33527
[Token(Token = "0x40082F7")]
private const int Z_ERRNO = -1;
// Token: 0x040082F8 RID: 33528
[Token(Token = "0x40082F8")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x040082F9 RID: 33529
[Token(Token = "0x40082F9")]
private const int Z_DATA_ERROR = -3;
// Token: 0x040082FA RID: 33530
[Token(Token = "0x40082FA")]
private const int Z_MEM_ERROR = -4;
// Token: 0x040082FB RID: 33531
[Token(Token = "0x40082FB")]
private const int Z_BUF_ERROR = -5;
// Token: 0x040082FC RID: 33532
[Token(Token = "0x40082FC")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x040082FD RID: 33533
[Token(Token = "0x40082FD")]
internal const int fixed_bl = 9;
// Token: 0x040082FE RID: 33534
[Token(Token = "0x40082FE")]
internal const int fixed_bd = 5;
// Token: 0x040082FF RID: 33535
[Token(Token = "0x40082FF")]
internal static readonly int[] fixed_tl;
// Token: 0x04008300 RID: 33536
[Token(Token = "0x4008300")]
internal static readonly int[] fixed_td;
// Token: 0x04008301 RID: 33537
[Token(Token = "0x4008301")]
internal static readonly int[] cplens;
// Token: 0x04008302 RID: 33538
[Token(Token = "0x4008302")]
internal static readonly int[] cplext;
// Token: 0x04008303 RID: 33539
[Token(Token = "0x4008303")]
internal static readonly int[] cpdist;
// Token: 0x04008304 RID: 33540
[Token(Token = "0x4008304")]
internal static readonly int[] cpdext;
// Token: 0x04008305 RID: 33541
[Token(Token = "0x4008305")]
internal const int BMAX = 15;
// Token: 0x04008306 RID: 33542
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008306")]
internal int[] hn;
// Token: 0x04008307 RID: 33543
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008307")]
internal int[] v;
// Token: 0x04008308 RID: 33544
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008308")]
internal int[] c;
// Token: 0x04008309 RID: 33545
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4008309")]
internal int[] r;
// Token: 0x0400830A RID: 33546
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400830A")]
internal int[] u;
// Token: 0x0400830B RID: 33547
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400830B")]
internal int[] x;
}
}
@@ -0,0 +1,352 @@
using System;
using System.Runtime.CompilerServices;
using BestHTTP.Extensions;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FA8 RID: 8104
[Token(Token = "0x2001FA8")]
internal sealed class InflateBlocks
{
// Token: 0x0600CD92 RID: 52626 RVA: 0x002F2710 File Offset: 0x002F0910
[Token(Token = "0x600CD92")]
[Address(RVA = "0x1971390", Offset = "0x1970190", VA = "0x181971390")]
internal InflateBlocks(ZlibCodec codec, object checkfn, int w)
{
int[] array = new int[1];
this.bb = array;
int[] array2 = new int[1];
this.tb = array2;
InflateCodes inflateCodes = new InflateCodes();
this.codes = inflateCodes;
InfTree infTree = new InfTree();
this.inftree = infTree;
base..ctor();
this._codec = codec;
int[] array3 = new int[4320];
this.hufts = array3;
byte[] array4 = VariableSizedBufferPool.Get((long)w, true);
this.window = array4;
this.end = w;
this.checkfn = checkfn;
this.mode = (InflateBlocks.InflateBlockMode)((ulong)0L);
uint num = this.Reset();
}
// Token: 0x0600CD93 RID: 52627 RVA: 0x002F27A4 File Offset: 0x002F09A4
[Token(Token = "0x600CD93")]
[Address(RVA = "0x1971220", Offset = "0x1970020", VA = "0x181971220")]
internal uint Reset()
{
uint num = this.check;
int num2 = 0;
this.mode = (InflateBlocks.InflateBlockMode)num2;
this.bitk = num2;
this.readAt = num2;
if (this.checkfn != num2)
{
ZlibCodec codec = this._codec;
this.check = (uint)((ulong)1L);
codec._Adler32 = (uint)((ulong)1L);
}
return num;
}
// Token: 0x0600CD94 RID: 52628 RVA: 0x002F27F8 File Offset: 0x002F09F8
[Token(Token = "0x600CD94")]
[Address(RVA = "0x196FBA0", Offset = "0x196E9A0", VA = "0x18196FBA0")]
internal int Process(int r)
{
/*
An exception occurred when decompiling this method (0600CD94)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.InflateBlocks::Process(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_B98:
stloc:ZlibCodec(var_179_B9E, ldfld:ZlibCodec(InflateBlocks::_codec, ldloc:InflateBlocks(this)))
stfld:int32(InflateBlocks::bitb, ldloc:InflateBlocks(this), ldc.i4:int32(0))
stfld:int32(InflateBlocks::bitk, ldloc:InflateBlocks(this), ldc.i4:int32(0))
stfld:int32(ZlibCodec::AvailableBytesIn, ldloc:ZlibCodec(var_179_B9E), ldc.i4:int32(0))
}
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 1660
*/;
}
// Token: 0x0600CD95 RID: 52629 RVA: 0x002F33BC File Offset: 0x002F15BC
[Token(Token = "0x600CD95")]
[Address(RVA = "0x196FB20", Offset = "0x196E920", VA = "0x18196FB20")]
internal void Free()
{
uint num = this.Reset();
VariableSizedBufferPool.Release(this.window);
int num2 = 0;
this.window = num2;
this.hufts = num2;
}
// Token: 0x0600CD96 RID: 52630 RVA: 0x002F33EC File Offset: 0x002F15EC
[Token(Token = "0x600CD96")]
[Address(RVA = "0x19712E0", Offset = "0x19700E0", VA = "0x1819712E0")]
internal void SetDictionary(byte[] d, int start, int n)
{
byte[] array = this.window;
int num = 0;
Array.Copy(d, start, array, num, n);
this.writeAt = n;
this.readAt = n;
}
// Token: 0x0600CD97 RID: 52631 RVA: 0x002F341C File Offset: 0x002F161C
[Token(Token = "0x600CD97")]
[Address(RVA = "0x18E13F0", Offset = "0x18E01F0", VA = "0x1818E13F0")]
internal int SyncPoint()
{
/*
An exception occurred when decompiling this method (0600CD97)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.InflateBlocks::SyncPoint()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:bool(var_0_09, ceq:bool(ldfld:InflateBlockMode(InflateBlocks::mode, ldloc:InflateBlocks(this)), ldc.i4:InflateBlockMode(1)))
}
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 1660
*/;
}
// Token: 0x0600CD98 RID: 52632 RVA: 0x002F3434 File Offset: 0x002F1634
[Token(Token = "0x600CD98")]
[Address(RVA = "0x196F970", Offset = "0x196E770", VA = "0x18196F970")]
internal int Flush(int r)
{
int num = this.readAt;
int num2 = 0;
int num3 = this.writeAt;
if (num2 != 0 || num > num3)
{
}
num3 -= num;
if (num3 != 0)
{
ZlibCodec codec = this._codec;
int num4 = codec.AvailableBytesOut;
if (num3 > num4)
{
num3 = num4;
}
if (num3 != 0)
{
}
num4 -= num3;
codec.AvailableBytesOut = num4;
ZlibCodec codec2 = this._codec;
if (this.checkfn != num2)
{
int num5 = this.readAt;
ZlibCodec codec3 = this._codec;
uint num6 = this.check;
byte[] array = this.window;
uint num7 = Adler.Adler32(num6, array, num5, num3);
this.check = num7;
codec3._Adler32 = num7;
}
ZlibCodec codec4 = this._codec;
int nextOut = codec4.NextOut;
byte[] outputBuffer = codec4.OutputBuffer;
int num8 = this.readAt;
Array.Copy(this.window, num8, outputBuffer, nextOut, num3);
ZlibCodec codec5 = this._codec;
int num9 = this.readAt;
int num10 = this.end;
num9 += num3;
this.readAt = num9;
if (num9 == num10 && num2 == 0)
{
this.readAt = num2;
if (this.writeAt != num10)
{
goto IL_11C;
}
this.writeAt = num2;
}
num2++;
IL_11C:
num2++;
}
return num2;
}
// Token: 0x0600CD99 RID: 52633 RVA: 0x002F3568 File Offset: 0x002F1768
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CD99")]
[Address(RVA = "0x1971330", Offset = "0x1970130", VA = "0x181971330")]
static InflateBlocks()
{
int[] array = new int[19];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.1FDC8DB567F5AAA7068D0D2A601CD71657CBDF38).FieldHandle);
InflateBlocks.border = array;
}
// Token: 0x0400830C RID: 33548
[Token(Token = "0x400830C")]
private const int MANY = 1440;
// Token: 0x0400830D RID: 33549
[Token(Token = "0x400830D")]
internal static readonly int[] border;
// Token: 0x0400830E RID: 33550
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400830E")]
private InflateBlocks.InflateBlockMode mode;
// Token: 0x0400830F RID: 33551
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x400830F")]
internal int left;
// Token: 0x04008310 RID: 33552
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008310")]
internal int table;
// Token: 0x04008311 RID: 33553
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4008311")]
internal int index;
// Token: 0x04008312 RID: 33554
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4008312")]
internal int[] blens;
// Token: 0x04008313 RID: 33555
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4008313")]
internal int[] bb;
// Token: 0x04008314 RID: 33556
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4008314")]
internal int[] tb;
// Token: 0x04008315 RID: 33557
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4008315")]
internal InflateCodes codes;
// Token: 0x04008316 RID: 33558
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4008316")]
internal int last;
// Token: 0x04008317 RID: 33559
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4008317")]
internal ZlibCodec _codec;
// Token: 0x04008318 RID: 33560
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4008318")]
internal int bitk;
// Token: 0x04008319 RID: 33561
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x4008319")]
internal int bitb;
// Token: 0x0400831A RID: 33562
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400831A")]
internal int[] hufts;
// Token: 0x0400831B RID: 33563
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400831B")]
internal byte[] window;
// Token: 0x0400831C RID: 33564
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400831C")]
internal int end;
// Token: 0x0400831D RID: 33565
[FieldOffset(Offset = "0x6C")]
[Token(Token = "0x400831D")]
internal int readAt;
// Token: 0x0400831E RID: 33566
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x400831E")]
internal int writeAt;
// Token: 0x0400831F RID: 33567
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x400831F")]
internal object checkfn;
// Token: 0x04008320 RID: 33568
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4008320")]
internal uint check;
// Token: 0x04008321 RID: 33569
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x4008321")]
internal InfTree inftree;
// Token: 0x02001FA9 RID: 8105
[Token(Token = "0x2001FA9")]
private enum InflateBlockMode
{
// Token: 0x04008323 RID: 33571
[Token(Token = "0x4008323")]
TYPE,
// Token: 0x04008324 RID: 33572
[Token(Token = "0x4008324")]
LENS,
// Token: 0x04008325 RID: 33573
[Token(Token = "0x4008325")]
STORED,
// Token: 0x04008326 RID: 33574
[Token(Token = "0x4008326")]
TABLE,
// Token: 0x04008327 RID: 33575
[Token(Token = "0x4008327")]
BTREE,
// Token: 0x04008328 RID: 33576
[Token(Token = "0x4008328")]
DTREE,
// Token: 0x04008329 RID: 33577
[Token(Token = "0x4008329")]
CODES,
// Token: 0x0400832A RID: 33578
[Token(Token = "0x400832A")]
DRY,
// Token: 0x0400832B RID: 33579
[Token(Token = "0x400832B")]
DONE,
// Token: 0x0400832C RID: 33580
[Token(Token = "0x400832C")]
BAD
}
}
}
@@ -0,0 +1,431 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FAB RID: 8107
[Token(Token = "0x2001FAB")]
internal sealed class InflateCodes
{
// Token: 0x0600CD9B RID: 52635 RVA: 0x002F35B0 File Offset: 0x002F17B0
[Token(Token = "0x600CD9B")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
internal InflateCodes()
{
}
// Token: 0x0600CD9C RID: 52636 RVA: 0x002F35C4 File Offset: 0x002F17C4
[Token(Token = "0x600CD9C")]
[Address(RVA = "0x18E2030", Offset = "0x18E0E30", VA = "0x1818E2030")]
internal void Init(int bl, int bd, int[] tl, int tl_index, int[] td, int td_index)
{
int num = 0;
this.ltree_index = 0;
this.dtree = 0;
this.dtree_index = 0;
this.mode = num;
this.lbits = (byte)bl;
this.dbits = (byte)bd;
this.ltree = tl;
this.tree = num;
}
// Token: 0x0600CD9D RID: 52637 RVA: 0x002F360C File Offset: 0x002F180C
[Token(Token = "0x600CD9D")]
[Address(RVA = "0x1972090", Offset = "0x1970E90", VA = "0x181972090")]
internal int Process(InflateBlocks blocks, int r)
{
ZlibCodec codec = blocks._codec;
int writeAt = blocks.writeAt;
int num = blocks.readAt;
int bitb = blocks.bitb;
int nextIn = codec.NextIn;
int availableBytesIn = codec.AvailableBytesIn;
int bitk = blocks.bitk;
if (writeAt < num)
{
num -= writeAt;
}
int num2 = blocks.end;
num2 -= writeAt;
blocks.bitb = bitb;
blocks.bitk = bitk;
codec.AvailableBytesIn = availableBytesIn;
codec.NextIn = nextIn;
blocks.writeAt = writeAt;
int writeAt2 = blocks.writeAt;
int num3 = blocks.readAt;
int bitb2 = blocks.bitb;
int num4 = codec.NextIn;
int availableBytesIn2 = codec.AvailableBytesIn;
int num5 = blocks.bitk;
if (writeAt2 < num3)
{
num3 -= writeAt2;
}
int num6 = blocks.end;
num6 -= writeAt2;
int num7;
if (num7 != 0)
{
}
uint num8;
if (num5 < (int)num8)
{
if (availableBytesIn2 == 0)
{
goto IL_31B;
}
byte[] inputBuffer = codec.InputBuffer;
num4++;
num5 += 8;
}
uint num9;
int num10;
if (num5 < (int)num9)
{
if (availableBytesIn2 == 0)
{
goto IL_31B;
}
num10 = 0;
byte[] inputBuffer2 = codec.InputBuffer;
num4++;
num5 += 8;
}
num5 -= (int)num9;
if (num5 < (int)num9)
{
if (availableBytesIn2 == 0)
{
goto IL_349;
}
byte[] inputBuffer3 = codec.InputBuffer;
num4++;
num5 += 8;
}
num5 -= num10;
uint num11;
int num12;
if (num5 < (int)num11)
{
if (availableBytesIn2 == 0)
{
goto IL_31B;
}
num12 = 0;
byte[] inputBuffer4 = codec.InputBuffer;
num4++;
num5 += 8;
}
num5 -= (int)num11;
int num14;
int num15;
int num16;
if (num6 == 0)
{
int num13 = blocks.end;
if (writeAt2 == num13)
{
int readAt = blocks.readAt;
if (readAt != 0)
{
if (readAt > 0)
{
}
if (num13 != 0)
{
goto IL_203;
}
}
}
blocks.writeAt = writeAt2;
num14 = blocks.Flush(num12);
int writeAt3 = blocks.writeAt;
int end = blocks.end;
int readAt2 = blocks.readAt;
if (writeAt3 < readAt2)
{
num13 = readAt2;
num13 -= writeAt3;
}
num13 -= writeAt3;
if (writeAt3 == end && readAt2 != 0)
{
num15 = 0;
num16 = readAt2 - 1;
if (readAt2 <= 0)
{
}
}
if (num16 == 0)
{
goto IL_358;
}
}
IL_203:
byte[] window = blocks.window;
int num17 = writeAt2 + 1;
num15++;
int length = window.Length;
int end2 = blocks.end;
int i;
if (num16 == 0)
{
int end3 = blocks.end;
int num18;
if (num15 == end3)
{
int readAt3 = blocks.readAt;
if (readAt3 != 0)
{
num18 = 0;
int num19;
if (readAt3 > 0)
{
num19 = readAt3 - 1;
}
if (num19 != 0)
{
goto IL_2D0;
}
}
}
blocks.writeAt = num18;
int num20 = blocks.Flush(num14);
int readAt4 = blocks.readAt;
num14 = num20;
int writeAt4 = blocks.writeAt;
if (writeAt4 < readAt4)
{
int num19 = readAt4;
num19 -= writeAt4;
}
int num21 = blocks.end;
num21 -= writeAt4;
int end4 = blocks.end;
int num22;
if (writeAt4 == end4 && readAt4 != 0)
{
i = 0;
num22 = readAt4 - 1;
num22 = end4;
}
if (num22 == 0)
{
goto IL_36E;
}
}
IL_2D0:
byte[] window2 = blocks.window;
int num23 = 0;
i++;
while (i <= 9)
{
}
blocks.bitb = bitb2;
blocks.bitk = num5;
codec.AvailableBytesIn = availableBytesIn2;
int num24 = 0;
codec.NextIn = num4;
blocks.writeAt = i;
return blocks.Flush(-2);
IL_31B:
blocks.bitb = num24;
blocks.bitk = 0;
blocks.writeAt = 0;
blocks.bitb = 0;
blocks.bitk = 0;
int num25 = 0;
blocks.writeAt = 0;
IL_349:
blocks.bitb = num25;
blocks.bitk = 0;
IL_358:
blocks.bitb = bitb2;
blocks.bitk = 0;
blocks.writeAt = 0;
IL_36E:
blocks.bitb = bitb2;
blocks.bitk = 0;
blocks.writeAt = 0;
blocks.writeAt = 0;
int num26 = blocks.Flush(num23);
int writeAt5 = blocks.writeAt;
while (blocks.readAt != writeAt5)
{
}
blocks.bitb = bitb2;
blocks.bitk = 0;
int num27 = 0;
blocks.writeAt = writeAt5;
blocks.bitb = num27;
throw new NullReferenceException();
}
// Token: 0x0600CD9E RID: 52638 RVA: 0x002F39E8 File Offset: 0x002F1BE8
[Token(Token = "0x600CD9E")]
[Address(RVA = "0x19714C0", Offset = "0x19702C0", VA = "0x1819714C0")]
internal int InflateFast(int bl, int bd, int[] tl, int tl_index, int[] td, int td_index, InflateBlocks s, ZlibCodec z)
{
int num6;
if (bl != 0)
{
int num = bd + 1;
if (bl == 16)
{
if (bl != 64)
{
goto IL_67;
}
while (bl != 0)
{
}
int num2 = bd + 1;
}
int num3 = bd + 1;
if (bl == 16 && bl != 64)
{
goto IL_73;
}
int num4 = bd - 1;
while (num4 != 0)
{
}
int num5 = 0;
num6 = 0;
if (num5 != 1)
{
num6 += 2;
num4 -= num6;
if (num4 > 0)
{
num6++;
while (num4 != 0)
{
}
}
}
Array.Copy(num6, num6, num6, 1, num4);
}
IL_67:
if (num6 == 32)
{
}
uint num7;
num7 -= tl;
IL_73:
throw new NullReferenceException();
}
// Token: 0x0400832E RID: 33582
[Token(Token = "0x400832E")]
private const int START = 0;
// Token: 0x0400832F RID: 33583
[Token(Token = "0x400832F")]
private const int LEN = 1;
// Token: 0x04008330 RID: 33584
[Token(Token = "0x4008330")]
private const int LENEXT = 2;
// Token: 0x04008331 RID: 33585
[Token(Token = "0x4008331")]
private const int DIST = 3;
// Token: 0x04008332 RID: 33586
[Token(Token = "0x4008332")]
private const int DISTEXT = 4;
// Token: 0x04008333 RID: 33587
[Token(Token = "0x4008333")]
private const int COPY = 5;
// Token: 0x04008334 RID: 33588
[Token(Token = "0x4008334")]
private const int LIT = 6;
// Token: 0x04008335 RID: 33589
[Token(Token = "0x4008335")]
private const int WASH = 7;
// Token: 0x04008336 RID: 33590
[Token(Token = "0x4008336")]
private const int END = 8;
// Token: 0x04008337 RID: 33591
[Token(Token = "0x4008337")]
private const int BADCODE = 9;
// Token: 0x04008338 RID: 33592
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008338")]
internal int mode;
// Token: 0x04008339 RID: 33593
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4008339")]
internal int len;
// Token: 0x0400833A RID: 33594
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400833A")]
internal int[] tree;
// Token: 0x0400833B RID: 33595
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400833B")]
internal int tree_index;
// Token: 0x0400833C RID: 33596
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400833C")]
internal int need;
// Token: 0x0400833D RID: 33597
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400833D")]
internal int lit;
// Token: 0x0400833E RID: 33598
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x400833E")]
internal int bitsToGet;
// Token: 0x0400833F RID: 33599
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400833F")]
internal int dist;
// Token: 0x04008340 RID: 33600
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4008340")]
internal byte lbits;
// Token: 0x04008341 RID: 33601
[FieldOffset(Offset = "0x35")]
[Token(Token = "0x4008341")]
internal byte dbits;
// Token: 0x04008342 RID: 33602
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4008342")]
internal int[] ltree;
// Token: 0x04008343 RID: 33603
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4008343")]
internal int ltree_index;
// Token: 0x04008344 RID: 33604
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4008344")]
internal int[] dtree;
// Token: 0x04008345 RID: 33605
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4008345")]
internal int dtree_index;
}
}
@@ -0,0 +1,358 @@
using System;
using BestHTTP.Extensions;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FAC RID: 8108
[Token(Token = "0x2001FAC")]
internal sealed class InflateManager
{
// Token: 0x170020B7 RID: 8375
// (get) Token: 0x0600CD9F RID: 52639 RVA: 0x002F3A70 File Offset: 0x002F1C70
// (set) Token: 0x0600CDA0 RID: 52640 RVA: 0x002F3A84 File Offset: 0x002F1C84
[Token(Token = "0x170020B7")]
internal bool HandleRfc1950HeaderBytes
{
[Token(Token = "0x600CD9F")]
[Address(RVA = "0x4364F0", Offset = "0x4352F0", VA = "0x1804364F0")]
get
{
return this._handleRfc1950HeaderBytes;
}
[Token(Token = "0x600CDA0")]
[Address(RVA = "0x436790", Offset = "0x435590", VA = "0x180436790")]
set
{
this._handleRfc1950HeaderBytes = value;
}
}
// Token: 0x0600CDA1 RID: 52641 RVA: 0x002F3A98 File Offset: 0x002F1C98
[Token(Token = "0x600CDA1")]
[Address(RVA = "0x106D240", Offset = "0x106C040", VA = "0x18106D240")]
public InflateManager()
{
}
// Token: 0x0600CDA2 RID: 52642 RVA: 0x002F3AB4 File Offset: 0x002F1CB4
[Token(Token = "0x600CDA2")]
[Address(RVA = "0x1973E60", Offset = "0x1972C60", VA = "0x181973E60")]
public InflateManager(bool expectRfc1950HeaderBytes)
{
this._handleRfc1950HeaderBytes = expectRfc1950HeaderBytes;
}
// Token: 0x0600CDA3 RID: 52643 RVA: 0x002F3AD8 File Offset: 0x002F1CD8
[Token(Token = "0x600CDA3")]
[Address(RVA = "0x1973950", Offset = "0x1972750", VA = "0x181973950")]
internal int Reset()
{
ZlibCodec codec = this._codec;
int num = 0;
codec.TotalBytesOut = (long)num;
codec.TotalBytesIn = (long)num;
this._codec.Message = num;
this.mode = (InflateManager.InflateManagerMode)((uint)7);
uint num2 = this.blocks.Reset();
return 0;
}
// Token: 0x0600CDA4 RID: 52644 RVA: 0x002F3B24 File Offset: 0x002F1D24
[Token(Token = "0x600CDA4")]
[Address(RVA = "0x1972D60", Offset = "0x1971B60", VA = "0x181972D60")]
internal int End()
{
InflateBlocks inflateBlocks = this.blocks;
if (inflateBlocks != 0)
{
uint num = inflateBlocks.Reset();
VariableSizedBufferPool.Release(inflateBlocks.window);
int num2 = 0;
inflateBlocks.window = num2;
inflateBlocks.hufts = num2;
this.blocks = num2;
return num2;
}
int num3 = 0;
this.blocks = num3;
return num3;
}
// Token: 0x0600CDA5 RID: 52645 RVA: 0x002F3B74 File Offset: 0x002F1D74
[Token(Token = "0x600CDA5")]
[Address(RVA = "0x1973730", Offset = "0x1972530", VA = "0x181973730")]
internal int Initialize(ZlibCodec codec, int w)
{
this._codec = codec;
int num = 0;
codec.Message = num;
this.blocks = num;
this.wbits = w;
int[] array = new int[1];
InflateBlocks inflateBlocks;
inflateBlocks.bb = array;
int[] array2 = new int[1];
inflateBlocks.tb = array2;
InflateCodes inflateCodes = new InflateCodes();
inflateBlocks.codes = inflateCodes;
InfTree infTree = new InfTree();
inflateBlocks.inftree = infTree;
inflateBlocks._codec = codec;
int[] array3 = new int[4320];
inflateBlocks.hufts = array3;
byte[] array4;
inflateBlocks.window = array4;
inflateBlocks.checkfn = num;
inflateBlocks.mode = (InflateBlocks.InflateBlockMode)num;
uint num2 = inflateBlocks.Reset();
this.blocks = inflateBlocks;
ZlibCodec codec2 = this._codec;
codec2.TotalBytesOut = (long)num;
codec2.TotalBytesIn = (long)num;
this._codec.Message = num;
this.mode = (InflateManager.InflateManagerMode)((uint)7);
uint num3 = this.blocks.Reset();
return 0;
}
// Token: 0x0600CDA6 RID: 52646 RVA: 0x002F3C70 File Offset: 0x002F1E70
[Token(Token = "0x600CDA6")]
[Address(RVA = "0x1972E00", Offset = "0x1971C00", VA = "0x181972E00")]
internal int Inflate(FlushType flush)
{
/*
An exception occurred when decompiling this method (0600CDA6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.InflateManager::Inflate(BestHTTP.Decompression.Zlib.FlushType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_5BD:
stloc:ZlibException(var_104_5C7, newobj:ZlibException(ZlibException::.ctor, ldstr:string("Stream error.")))
}
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 1660
*/;
}
// Token: 0x0600CDA7 RID: 52647 RVA: 0x002F4248 File Offset: 0x002F2448
[Token(Token = "0x600CDA7")]
[Address(RVA = "0x19739A0", Offset = "0x19727A0", VA = "0x1819739A0")]
internal int SetDictionary(byte[] dictionary)
{
/*
An exception occurred when decompiling this method (0600CDA7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.InflateManager::SetDictionary(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_9A:
stloc:ZlibException(var_14_A4, newobj:ZlibException(ZlibException::.ctor, ldstr:string("Stream error.")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDA8 RID: 52648 RVA: 0x002F42FC File Offset: 0x002F24FC
[Token(Token = "0x600CDA8")]
[Address(RVA = "0x1973B60", Offset = "0x1972960", VA = "0x181973B60")]
internal int Sync()
{
int num = 0;
if (this.mode != InflateManager.InflateManagerMode.BAD)
{
this.mode = (InflateManager.InflateManagerMode)((ulong)13L);
this.marker = num;
}
ZlibCodec codec = this._codec;
int availableBytesIn = codec.AvailableBytesIn;
if (availableBytesIn != 0)
{
int num2 = codec.NextIn;
int num3 = this.marker;
if (num3 < 4)
{
byte b = this._codec.InputBuffer[num2];
byte[] array = InflateManager.mark;
byte[] inputBuffer = this._codec.InputBuffer;
if ("{il2cpp array field local11->}" == num)
{
uint num4;
num4 -= (uint)num3;
}
num++;
num2++;
while ("{il2cpp array field local11->}" != num)
{
}
}
ZlibCodec codec2 = this._codec;
this._codec.NextIn = num2;
this._codec.AvailableBytesIn = availableBytesIn;
this.marker = num;
if (num == 4)
{
ZlibCodec codec3 = this._codec;
long totalBytesIn = codec3.TotalBytesIn;
long totalBytesOut = codec3.TotalBytesOut;
codec3.TotalBytesOut = (long)num;
codec3.TotalBytesIn = (long)num;
this._codec.Message = num;
uint num5;
this.mode = (InflateManager.InflateManagerMode)num5;
uint num6 = this.blocks.Reset();
this._codec.TotalBytesIn = totalBytesIn;
this._codec.TotalBytesOut = totalBytesOut;
int num7 = 0;
this.mode = (InflateManager.InflateManagerMode)num5;
return num7;
}
}
throw new NullReferenceException();
}
// Token: 0x0600CDA9 RID: 52649 RVA: 0x002F4438 File Offset: 0x002F2638
[Token(Token = "0x600CDA9")]
[Address(RVA = "0x1973B30", Offset = "0x1972930", VA = "0x181973B30")]
internal int SyncPoint(ZlibCodec z)
{
bool flag = this.blocks.mode == InflateBlocks.InflateBlockMode.LENS;
throw new NullReferenceException();
}
// Token: 0x0600CDAA RID: 52650 RVA: 0x002F445C File Offset: 0x002F265C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CDAA")]
[Address(RVA = "0x1973DD0", Offset = "0x1972BD0", VA = "0x181973DD0")]
static InflateManager()
{
byte[] array = new byte[4];
array[0] = (byte)((ulong)255L);
array[0] = (byte)((ulong)255L);
InflateManager.mark = array;
}
// Token: 0x04008346 RID: 33606
[Token(Token = "0x4008346")]
private const int PRESET_DICT = 32;
// Token: 0x04008347 RID: 33607
[Token(Token = "0x4008347")]
private const int Z_DEFLATED = 8;
// Token: 0x04008348 RID: 33608
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008348")]
private InflateManager.InflateManagerMode mode;
// Token: 0x04008349 RID: 33609
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008349")]
internal ZlibCodec _codec;
// Token: 0x0400834A RID: 33610
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400834A")]
internal int method;
// Token: 0x0400834B RID: 33611
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400834B")]
internal uint computedCheck;
// Token: 0x0400834C RID: 33612
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400834C")]
internal uint expectedCheck;
// Token: 0x0400834D RID: 33613
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x400834D")]
internal int marker;
// Token: 0x0400834E RID: 33614
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400834E")]
private bool _handleRfc1950HeaderBytes = true;
// Token: 0x0400834F RID: 33615
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x400834F")]
internal int wbits;
// Token: 0x04008350 RID: 33616
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4008350")]
internal InflateBlocks blocks;
// Token: 0x04008351 RID: 33617
[Token(Token = "0x4008351")]
private static readonly byte[] mark;
// Token: 0x02001FAD RID: 8109
[Token(Token = "0x2001FAD")]
private enum InflateManagerMode
{
// Token: 0x04008353 RID: 33619
[Token(Token = "0x4008353")]
METHOD,
// Token: 0x04008354 RID: 33620
[Token(Token = "0x4008354")]
FLAG,
// Token: 0x04008355 RID: 33621
[Token(Token = "0x4008355")]
DICT4,
// Token: 0x04008356 RID: 33622
[Token(Token = "0x4008356")]
DICT3,
// Token: 0x04008357 RID: 33623
[Token(Token = "0x4008357")]
DICT2,
// Token: 0x04008358 RID: 33624
[Token(Token = "0x4008358")]
DICT1,
// Token: 0x04008359 RID: 33625
[Token(Token = "0x4008359")]
DICT0,
// Token: 0x0400835A RID: 33626
[Token(Token = "0x400835A")]
BLOCKS,
// Token: 0x0400835B RID: 33627
[Token(Token = "0x400835B")]
CHECK4,
// Token: 0x0400835C RID: 33628
[Token(Token = "0x400835C")]
CHECK3,
// Token: 0x0400835D RID: 33629
[Token(Token = "0x400835D")]
CHECK2,
// Token: 0x0400835E RID: 33630
[Token(Token = "0x400835E")]
CHECK1,
// Token: 0x0400835F RID: 33631
[Token(Token = "0x400835F")]
DONE,
// Token: 0x04008360 RID: 33632
[Token(Token = "0x4008360")]
BAD
}
}
}
@@ -0,0 +1,63 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB5 RID: 8117
[Token(Token = "0x2001FB5")]
internal static class InternalConstants
{
// Token: 0x0600CDB9 RID: 52665 RVA: 0x002F4B40 File Offset: 0x002F2D40
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CDB9")]
[Address(RVA = "0x1973E90", Offset = "0x1972C90", VA = "0x181973E90")]
static InternalConstants()
{
int num = InternalConstants.LITERALS;
int num2 = InternalConstants.LENGTH_CODES;
num++;
num2 += num;
InternalConstants.L_CODES = num2;
}
// Token: 0x0400838A RID: 33674
[Token(Token = "0x400838A")]
internal static readonly int MAX_BITS;
// Token: 0x0400838B RID: 33675
[Token(Token = "0x400838B")]
internal static readonly int BL_CODES;
// Token: 0x0400838C RID: 33676
[Token(Token = "0x400838C")]
internal static readonly int D_CODES;
// Token: 0x0400838D RID: 33677
[Token(Token = "0x400838D")]
internal static readonly int LITERALS;
// Token: 0x0400838E RID: 33678
[Token(Token = "0x400838E")]
internal static readonly int LENGTH_CODES;
// Token: 0x0400838F RID: 33679
[Token(Token = "0x400838F")]
internal static readonly int L_CODES;
// Token: 0x04008390 RID: 33680
[Token(Token = "0x4008390")]
internal static readonly int MAX_BL_BITS;
// Token: 0x04008391 RID: 33681
[Token(Token = "0x4008391")]
internal static readonly int REP_3_6;
// Token: 0x04008392 RID: 33682
[Token(Token = "0x4008392")]
internal static readonly int REPZ_3_10;
// Token: 0x04008393 RID: 33683
[Token(Token = "0x4008393")]
internal static readonly int REPZ_11_138;
}
}
@@ -0,0 +1,24 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FAA RID: 8106
[Token(Token = "0x2001FAA")]
internal static class InternalInflateConstants
{
// Token: 0x0600CD9A RID: 52634 RVA: 0x002F3590 File Offset: 0x002F1790
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CD9A")]
[Address(RVA = "0x1973F90", Offset = "0x1972D90", VA = "0x181973F90")]
static InternalInflateConstants()
{
RuntimeHelpers.InitializeArray(new int[17], fieldof(<PrivateImplementationDetails>.F584B6C7CCA3CD4ECC3B9B1E20D2F2EFB73DBBDF).FieldHandle);
}
// Token: 0x0400832D RID: 33581
[Token(Token = "0x400832D")]
internal static readonly int[] InflateMask;
}
}
@@ -0,0 +1,66 @@
using System;
using System.IO;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB4 RID: 8116
[Token(Token = "0x2001FB4")]
internal class SharedUtils
{
// Token: 0x0600CDB4 RID: 52660 RVA: 0x002F4AA8 File Offset: 0x002F2CA8
[Token(Token = "0x600CDB4")]
[Address(RVA = "0x1974140", Offset = "0x1972F40", VA = "0x181974140")]
public static int URShift(int number, int bits)
{
return number;
}
// Token: 0x0600CDB5 RID: 52661 RVA: 0x002F4AB8 File Offset: 0x002F2CB8
[Token(Token = "0x600CDB5")]
[Address(RVA = "0x1973FF0", Offset = "0x1972DF0", VA = "0x181973FF0")]
public static int ReadInput(TextReader sourceTextReader, byte[] target, int start, int count)
{
int length = target.Length;
if (length != 0)
{
char[] array = new char[length];
if (sourceTextReader.Read() != 0)
{
if (start < array)
{
char c = array[start];
}
return start;
}
}
throw new NullReferenceException();
}
// Token: 0x0600CDB6 RID: 52662 RVA: 0x002F4AF4 File Offset: 0x002F2CF4
[Token(Token = "0x600CDB6")]
[Address(RVA = "0x18E7E50", Offset = "0x18E6C50", VA = "0x1818E7E50")]
internal static byte[] ToByteArray(string sourceString)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x0600CDB7 RID: 52663 RVA: 0x002F4B10 File Offset: 0x002F2D10
[Token(Token = "0x600CDB7")]
[Address(RVA = "0x1974100", Offset = "0x1972F00", VA = "0x181974100")]
internal static char[] ToCharArray(byte[] byteArray)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x0600CDB8 RID: 52664 RVA: 0x002F4B2C File Offset: 0x002F2D2C
[Token(Token = "0x600CDB8")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public SharedUtils()
{
}
}
}
@@ -0,0 +1,116 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB6 RID: 8118
[Token(Token = "0x2001FB6")]
internal sealed class StaticTree
{
// Token: 0x0600CDBA RID: 52666 RVA: 0x002F4B68 File Offset: 0x002F2D68
[Token(Token = "0x600CDBA")]
[Address(RVA = "0x1625C10", Offset = "0x1624A10", VA = "0x181625C10")]
private StaticTree(short[] treeCodes, int[] extraBits, int extraBase, int elems, int maxLength)
{
this.elems = 0;
this.treeCodes = treeCodes;
this.extraBase = extraBase;
this.maxLength = 0;
this.extraBits = extraBits;
}
// Token: 0x0600CDBB RID: 52667 RVA: 0x002F4BA0 File Offset: 0x002F2DA0
[Token(Token = "0x600CDBB")]
[Address(RVA = "0x1974150", Offset = "0x1972F50", VA = "0x181974150")]
static StaticTree()
{
short[] array = new short[576];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.EB6F545AEF284339D25594F900E7A395212460EB).FieldHandle);
StaticTree.lengthAndLiteralsTreeCodes = array;
short[] array2 = new short[60];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.850D4DC092689E1F0D8A70B6281848B27DEC0014).FieldHandle);
StaticTree.distTreeCodes = array2;
short[] array3 = StaticTree.lengthAndLiteralsTreeCodes;
int[] extraLengthBits = ZTree.ExtraLengthBits;
int literals = InternalConstants.LITERALS;
int l_CODES = InternalConstants.L_CODES;
int max_BITS = InternalConstants.MAX_BITS;
StaticTree staticTree;
staticTree.treeCodes = array3;
int num = literals + 1;
staticTree.extraBase = num;
staticTree.extraBits = extraLengthBits;
staticTree.elems = l_CODES;
staticTree.maxLength = max_BITS;
StaticTree.Literals = staticTree;
short[] array4 = StaticTree.distTreeCodes;
int[] extraDistanceBits = ZTree.ExtraDistanceBits;
int d_CODES = InternalConstants.D_CODES;
int max_BITS2 = InternalConstants.MAX_BITS;
StaticTree staticTree2;
staticTree2.treeCodes = array4;
int num2 = 0;
staticTree2.extraBase = num2;
staticTree2.extraBits = extraDistanceBits;
staticTree2.elems = d_CODES;
staticTree2.maxLength = max_BITS2;
StaticTree.Distances = staticTree2;
int[] extra_blbits = ZTree.extra_blbits;
int bl_CODES = InternalConstants.BL_CODES;
int max_BL_BITS = InternalConstants.MAX_BL_BITS;
StaticTree staticTree3;
staticTree3.extraBits = extra_blbits;
staticTree3.elems = bl_CODES;
staticTree3.treeCodes = num2;
staticTree3.extraBase = num2;
staticTree3.maxLength = max_BL_BITS;
StaticTree.BitLengths = staticTree3;
}
// Token: 0x04008394 RID: 33684
[Token(Token = "0x4008394")]
internal static readonly short[] lengthAndLiteralsTreeCodes;
// Token: 0x04008395 RID: 33685
[Token(Token = "0x4008395")]
internal static readonly short[] distTreeCodes;
// Token: 0x04008396 RID: 33686
[Token(Token = "0x4008396")]
internal static readonly StaticTree Literals;
// Token: 0x04008397 RID: 33687
[Token(Token = "0x4008397")]
internal static readonly StaticTree Distances;
// Token: 0x04008398 RID: 33688
[Token(Token = "0x4008398")]
internal static readonly StaticTree BitLengths;
// Token: 0x04008399 RID: 33689
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008399")]
internal short[] treeCodes;
// Token: 0x0400839A RID: 33690
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400839A")]
internal int[] extraBits;
// Token: 0x0400839B RID: 33691
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400839B")]
internal int extraBase;
// Token: 0x0400839C RID: 33692
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400839C")]
internal int elems;
// Token: 0x0400839D RID: 33693
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400839D")]
internal int maxLength;
}
}
@@ -0,0 +1,347 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FAE RID: 8110
[Token(Token = "0x2001FAE")]
internal sealed class ZTree
{
// Token: 0x0600CDAB RID: 52651 RVA: 0x002F4498 File Offset: 0x002F2698
[Token(Token = "0x600CDAB")]
[Address(RVA = "0x1974E30", Offset = "0x1973C30", VA = "0x181974E30")]
internal static int DistanceCode(int dist)
{
if (dist < 256)
{
sbyte[] dist_code = ZTree._dist_code;
return dist;
}
sbyte[] dist_code2 = ZTree._dist_code;
throw new NullReferenceException();
}
// Token: 0x0600CDAC RID: 52652 RVA: 0x002F44C0 File Offset: 0x002F26C0
[Token(Token = "0x600CDAC")]
[Address(RVA = "0x1975850", Offset = "0x1974650", VA = "0x181975850")]
internal void gen_bitlen(DeflateManager s)
{
StaticTree staticTree = this.staticTree;
short[] array = this.dyn_tree;
short[] treeCodes = staticTree.treeCodes;
int num = 0;
int[] extraBits = staticTree.extraBits;
int extraBase = staticTree.extraBase;
int num2 = staticTree.maxLength;
int num3 = 0;
short[] bl_count = s.bl_count;
num++;
bl_count[0] = (short)num3;
int[] heap = s.heap;
int num4 = s.heap_max;
num4++;
array[0] = (short)num3;
int num5 = s.heap_max;
num5++;
int[] heap2 = s.heap;
int num6 = array.Length;
int num7 = heap2[num5];
num5 += num5;
num5++;
num5++;
num6 = num2;
if (num5 <= num2)
{
num6 = num5;
}
array[0] = (short)num6;
short[] bl_count2 = s.bl_count;
num5 = num6;
num7 -= extraBase;
int num8 = extraBits[num7];
int num9 = num7 * num7;
while (treeCodes == 0)
{
}
num9 += num8;
if (num != 0)
{
short[] bl_count3 = s.bl_count;
int num10 = num2 - 1;
short num11 = bl_count3[num10];
bl_count3[0] = num11;
short[] bl_count4 = s.bl_count;
num10++;
short[] bl_count5 = s.bl_count;
if (num2 != 0)
{
short[] bl_count6 = s.bl_count;
if (num10 != 0)
{
int[] heap3 = s.heap;
num2 = num5;
int num12 = heap3[num2];
int num13 = array.Length;
num12 += num12;
int num14 = num12 + 1;
if (num6 != num2)
{
num13 = num2;
num13 -= num6;
array[0] = (short)num2;
}
while (num10 != 0)
{
}
}
while (num10 != 0)
{
}
}
}
}
// Token: 0x0600CDAD RID: 52653 RVA: 0x002F4660 File Offset: 0x002F2860
[Token(Token = "0x600CDAD")]
[Address(RVA = "0x1975150", Offset = "0x1973F50", VA = "0x181975150")]
internal void build_tree(DeflateManager s)
{
StaticTree staticTree = this.staticTree;
short[] array = this.dyn_tree;
short[] treeCodes = staticTree.treeCodes;
int num = staticTree.elems;
int num2 = 0;
s.heap_len = num2;
int heap_SIZE = ZTree.HEAP_SIZE;
s.heap_max = heap_SIZE;
if (num > 0)
{
int length = array.Length;
if ("{il2cpp array field local3->}" == num2)
{
num2++;
array[0] = (short)num2;
}
int heap_len = s.heap_len;
int[] heap = s.heap;
int num3 = heap_len + 1;
s.heap_len = num3;
int num4 = heap_len + 1;
heap[0] = num2;
sbyte[] depth = s.depth;
num2++;
num2 += 2;
}
int num5 = s.heap_len;
if (num5 < 2)
{
int[] heap2 = s.heap;
int num6 = num5 + 1;
s.heap_len = num6;
if (num2 < 2)
{
}
num5++;
heap2[0] = num2;
uint num7;
array[0] = (short)num7;
sbyte[] depth2 = s.depth;
while (treeCodes == 0)
{
}
}
this.max_code = 1;
int i = s.heap_len;
i -= 0;
s.pqdownheap(array, i);
while (i >= 1)
{
}
int[] heap3 = s.heap;
int heap_len2 = s.heap_len;
int num8 = heap3[0];
int num9 = heap_len2 - 1;
s.heap_len = num9;
int length2 = heap3.Length;
int num10 = heap3[heap_len2];
heap3[0] = num10;
uint num11;
s.pqdownheap(array, (int)num11);
int[] heap4 = s.heap;
int heap_max = s.heap_max;
int num12 = heap4[0];
int num13 = heap_max - 1;
s.heap_max = num13;
int num14 = heap_max - 1;
heap4[0] = num8;
int heap_max2 = s.heap_max;
int[] heap5 = s.heap;
int num15 = heap_max2 - 1;
s.heap_max = num15;
int num16 = heap_max2 - 1;
heap5[0] = num12;
int length3 = array.Length;
short num17 = array[heap5];
array[0] = num17;
int length4 = s.depth.Length;
sbyte b2;
sbyte b3;
byte b = Math.Max((byte)b2, (byte)b3);
array[0] = (short)num;
int num18 = heap_max2 + 1;
array[0] = (short)num;
i += 2;
int[] heap6 = s.heap;
num++;
heap6[0] = num;
s.pqdownheap(array, 1);
while (s.heap_len >= 2)
{
}
int heap_max3 = s.heap_max;
int[] heap7 = s.heap;
int num19 = heap_max3 - 1;
s.heap_max = num19;
int num20 = s.heap[0];
int num21 = heap_max3 - 1;
heap7[0] = num20;
short[] bl_count = s.bl_count;
int num22;
ZTree.gen_codes(array, num22, bl_count);
}
// Token: 0x0600CDAE RID: 52654 RVA: 0x002F4904 File Offset: 0x002F2B04
[Token(Token = "0x600CDAE")]
[Address(RVA = "0x1975D70", Offset = "0x1974B70", VA = "0x181975D70")]
internal static void gen_codes(short[] tree, int max_code, short[] bl_count)
{
int num = InternalConstants.MAX_BITS;
num++;
short[] array = new short[num];
int i = 0;
short num2;
i += (int)num2;
i += i;
array[0] = (short)i;
if (1 != 0)
{
short num4;
short num3 = num4 + 1;
array[0] = num3;
int num5 = 0;
num5 += num5;
tree[0] = (short)num5;
}
i++;
i += 2;
while (i <= max_code)
{
}
}
// Token: 0x0600CDAF RID: 52655 RVA: 0x002F496C File Offset: 0x002F2B6C
[Token(Token = "0x600CDAF")]
[Address(RVA = "0x1639D80", Offset = "0x1638B80", VA = "0x181639D80")]
internal static int bi_reverse(int code, int len)
{
int num = 0;
int num2 = len - 1;
return num + num;
}
// Token: 0x0600CDB0 RID: 52656 RVA: 0x002F4984 File Offset: 0x002F2B84
[Token(Token = "0x600CDB0")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public ZTree()
{
}
// Token: 0x0600CDB1 RID: 52657 RVA: 0x002F4998 File Offset: 0x002F2B98
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600CDB1")]
[Address(RVA = "0x1974F20", Offset = "0x1973D20", VA = "0x181974F20")]
static ZTree()
{
int[] array = new int[29];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.67C0E784F3654B008A81E2988588CF4956CCF3DA).FieldHandle);
ZTree.ExtraLengthBits = array;
int[] array2 = new int[30];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.79D521E6E3E55103005E9CC3FA43B3174FAF090F).FieldHandle);
ZTree.ExtraDistanceBits = array2;
int[] array3 = new int[19];
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.8457F44B035C9073EE2D1F132D0A8AF5631DCDC8).FieldHandle);
ZTree.extra_blbits = array3;
sbyte[] array4 = new sbyte[19];
RuntimeHelpers.InitializeArray(array4, fieldof(<PrivateImplementationDetails>.9F8365E9D6C62D3B47026EC465B05A7B5526B5CD).FieldHandle);
ZTree.bl_order = array4;
sbyte[] array5 = new sbyte[512];
RuntimeHelpers.InitializeArray(array5, fieldof(<PrivateImplementationDetails>.3544182260B8A15D332367E48C7530FC0E901FD3).FieldHandle);
ZTree._dist_code = array5;
sbyte[] array6 = new sbyte[256];
RuntimeHelpers.InitializeArray(array6, fieldof(<PrivateImplementationDetails>.6A316789EED01119DE92841832701A40AB0CABD6).FieldHandle);
ZTree.LengthCode = array6;
int[] array7 = new int[29];
RuntimeHelpers.InitializeArray(array7, fieldof(<PrivateImplementationDetails>.2E868D9F2085DF93F11F58DE61C05E0D8A8F4A71).FieldHandle);
ZTree.LengthBase = array7;
int[] array8 = new int[30];
RuntimeHelpers.InitializeArray(array8, fieldof(<PrivateImplementationDetails>.5581A70566F03554D8048EDBFC6E6B399AF9BCB1).FieldHandle);
ZTree.DistanceBase = array8;
}
// Token: 0x04008361 RID: 33633
[Token(Token = "0x4008361")]
private static readonly int HEAP_SIZE;
// Token: 0x04008362 RID: 33634
[Token(Token = "0x4008362")]
internal static readonly int[] ExtraLengthBits;
// Token: 0x04008363 RID: 33635
[Token(Token = "0x4008363")]
internal static readonly int[] ExtraDistanceBits;
// Token: 0x04008364 RID: 33636
[Token(Token = "0x4008364")]
internal static readonly int[] extra_blbits;
// Token: 0x04008365 RID: 33637
[Token(Token = "0x4008365")]
internal static readonly sbyte[] bl_order;
// Token: 0x04008366 RID: 33638
[Token(Token = "0x4008366")]
internal const int Buf_size = 16;
// Token: 0x04008367 RID: 33639
[Token(Token = "0x4008367")]
private static readonly sbyte[] _dist_code;
// Token: 0x04008368 RID: 33640
[Token(Token = "0x4008368")]
internal static readonly sbyte[] LengthCode;
// Token: 0x04008369 RID: 33641
[Token(Token = "0x4008369")]
internal static readonly int[] LengthBase;
// Token: 0x0400836A RID: 33642
[Token(Token = "0x400836A")]
internal static readonly int[] DistanceBase;
// Token: 0x0400836B RID: 33643
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400836B")]
internal short[] dyn_tree;
// Token: 0x0400836C RID: 33644
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400836C")]
internal int max_code;
// Token: 0x0400836D RID: 33645
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400836D")]
internal StaticTree staticTree;
}
}
@@ -0,0 +1,723 @@
using System;
using System.Collections.Generic;
using System.IO;
using BestHTTP.Decompression.Crc;
using BestHTTP.Extensions;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB9 RID: 8121
[Token(Token = "0x2001FB9")]
internal class ZlibBaseStream : Stream
{
// Token: 0x170020B8 RID: 8376
// (get) Token: 0x0600CDBF RID: 52671 RVA: 0x002F4D78 File Offset: 0x002F2F78
[Token(Token = "0x170020B8")]
internal int Crc32
{
[Token(Token = "0x600CDBF")]
[Address(RVA = "0x1977D10", Offset = "0x1976B10", VA = "0x181977D10")]
get
{
/*
An exception occurred when decompiling this method (0600CDBF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibBaseStream::get_Crc32()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint32(var_1_11, ldfld:uint32(CRC32::_register, ldloc:CRC32(var_0_06)))
}
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 1660
*/;
}
}
// Token: 0x0600CDC0 RID: 52672 RVA: 0x002F4D98 File Offset: 0x002F2F98
[Token(Token = "0x600CDC0")]
[Address(RVA = "0x1977190", Offset = "0x1975F90", VA = "0x181977190")]
public ZlibBaseStream(Stream stream, CompressionMode compressionMode, CompressionLevel level, ZlibStreamFlavor flavor, bool leaveOpen)
{
}
// Token: 0x0600CDC1 RID: 52673 RVA: 0x002F4DA8 File Offset: 0x002F2FA8
[Token(Token = "0x600CDC1")]
[Address(RVA = "0x19771C0", Offset = "0x1975FC0", VA = "0x1819771C0")]
public ZlibBaseStream(Stream stream, CompressionMode compressionMode, CompressionLevel level, ZlibStreamFlavor flavor, bool leaveOpen, int windowBits)
{
this._streamMode = (ZlibBaseStream.StreamMode)((ulong)2L);
this._bufferSize = (int)((ulong)16384L);
byte[] array = new byte[1];
this._buf1 = array;
base..ctor();
this._leaveOpen = false;
this.windowBitsMax = 0;
this._flushMode = (FlushType)((ulong)0L);
this._stream = stream;
this._compressionMode = compressionMode;
this._flavor = (ZlibStreamFlavor)0;
this._level = level;
int num;
CRC32 crc = new CRC32(-306674912, num != 0);
num = 0;
this.crc = crc;
}
// Token: 0x170020B9 RID: 8377
// (get) Token: 0x0600CDC2 RID: 52674 RVA: 0x002F4E30 File Offset: 0x002F3030
[Token(Token = "0x170020B9")]
protected internal bool _wantCompress
{
[Token(Token = "0x600CDC2")]
[Address(RVA = "0x6DAE90", Offset = "0x6D9C90", VA = "0x1806DAE90")]
get
{
return this._compressionMode == CompressionMode.Compress;
}
}
// Token: 0x170020BA RID: 8378
// (get) Token: 0x0600CDC3 RID: 52675 RVA: 0x002F4E48 File Offset: 0x002F3048
[Token(Token = "0x170020BA")]
private ZlibCodec z
{
[Token(Token = "0x600CDC3")]
[Address(RVA = "0x1977E20", Offset = "0x1976C20", VA = "0x181977E20")]
get
{
if (this._z == (ulong)0L)
{
bool flag = this._flavor == ZlibStreamFlavor.ZLIB;
ZlibCodec zlibCodec = new ZlibCodec();
zlibCodec.CompressLevel = (CompressionLevel)((ulong)6L);
zlibCodec.WindowBits = (int)((ulong)15L);
this._z = zlibCodec;
if (this._compressionMode != CompressionMode.Decompress)
{
CompressionStrategy strategy = this.Strategy;
zlibCodec.Strategy = strategy;
ZlibCodec z = this._z;
int num = this.windowBitsMax;
CompressionLevel level = this._level;
z.WindowBits = num;
z.CompressLevel = level;
int num2 = z._InternalInitializeDeflate(flag);
}
int num3 = this.windowBitsMax;
int num4 = zlibCodec.InitializeInflate(num3, flag);
}
return this._z;
}
}
// Token: 0x170020BB RID: 8379
// (get) Token: 0x0600CDC4 RID: 52676 RVA: 0x002F4EF8 File Offset: 0x002F30F8
[Token(Token = "0x170020BB")]
private byte[] workingBuffer
{
[Token(Token = "0x600CDC4")]
[Address(RVA = "0x1977DA0", Offset = "0x1976BA0", VA = "0x181977DA0")]
get
{
if (this._workingBuffer == (ulong)0L)
{
byte[] array = VariableSizedBufferPool.Get((long)this._bufferSize, true);
this._workingBuffer = array;
}
return this._workingBuffer;
}
}
// Token: 0x0600CDC5 RID: 52677 RVA: 0x002F4F2C File Offset: 0x002F312C
[Token(Token = "0x600CDC5")]
[Address(RVA = "0x1976910", Offset = "0x1975710", VA = "0x181976910", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
int num;
ZlibCodec z3;
do
{
CRC32 crc = this.crc;
num = 0;
if (crc != 0)
{
crc.SlurpBlock(buffer, offset, count);
}
ZlibBaseStream.StreamMode streamMode = this._streamMode;
if (streamMode != ZlibBaseStream.StreamMode.Undefined && streamMode != ZlibBaseStream.StreamMode.Writer)
{
goto IL_14C;
}
this._streamMode = (ZlibBaseStream.StreamMode)num;
if (count == 0)
{
return;
}
this.z.InputBuffer = buffer;
this._z.NextIn = offset;
this._z.AvailableBytesIn = count;
ZlibCodec z = this._z;
if (this._workingBuffer == num)
{
ulong num2;
byte[] array = VariableSizedBufferPool.Get((long)this._bufferSize, num2 != 0UL);
this._workingBuffer = array;
}
byte[] workingBuffer = this._workingBuffer;
z.OutputBuffer = workingBuffer;
this._z.NextOut = num;
byte[] workingBuffer2 = this._workingBuffer;
ZlibCodec z2 = this._z;
int length = workingBuffer2.Length;
z2.AvailableBytesOut = length;
z3 = this._z;
FlushType flushMode = this._flushMode;
if (this._compressionMode == (CompressionMode)num && z3.dstate == 0)
{
goto IL_158;
}
}
while (z3.istate == 0);
int num3;
if (num3 > 1)
{
goto IL_164;
}
byte[] workingBuffer3 = this._workingBuffer;
ZlibCodec z4 = this._z;
int num4 = this._stream.ReadByte();
int availableBytesIn = this._z.AvailableBytesIn;
if (availableBytesIn != 0)
{
}
if (this._flavor != ZlibStreamFlavor.GZIP || this._compressionMode == (CompressionMode)num || availableBytesIn == 8)
{
}
while (num == 0)
{
}
return;
IL_14C:
ZlibException ex = new ZlibException("Cannot Write after Reading.");
IL_158:
ZlibException ex2 = new ZlibException("No Deflate State!");
IL_164:
throw new NullReferenceException();
}
// Token: 0x0600CDC6 RID: 52678 RVA: 0x002F50AC File Offset: 0x002F32AC
[Token(Token = "0x600CDC6")]
[Address(RVA = "0x1977420", Offset = "0x1976220", VA = "0x181977420")]
private void finish()
{
/*
An exception occurred when decompiling this method (0600CDC6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibBaseStream::finish()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_297:
stloc:ZlibException(var_47_2AA, newobj:ZlibException(ZlibException::.ctor, call:string(string::Format, ldstr:string("Bad size in GZIP trailer. (actual({0})!=expected({1}))"), ldloc:ZlibException[exp:object](var_46), ldloc:ZlibException[exp:object](var_46))))
}
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 1660
*/;
}
// Token: 0x0600CDC7 RID: 52679 RVA: 0x002F5364 File Offset: 0x002F3564
[Token(Token = "0x600CDC7")]
[Address(RVA = "0x19772B0", Offset = "0x19760B0", VA = "0x1819772B0")]
private void end()
{
/*
An exception occurred when decompiling this method (0600CDC7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibBaseStream::end()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_7A:
stloc:ZlibException(var_5_84, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDC8 RID: 52680 RVA: 0x002F53F8 File Offset: 0x002F35F8
[Token(Token = "0x600CDC8")]
[Address(RVA = "0x1975FA0", Offset = "0x1974DA0", VA = "0x181975FA0", Slot = "15")]
public override void Close()
{
/*
An exception occurred when decompiling this method (0600CDC8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibBaseStream::Close()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_A0:
stloc:ZlibException(var_6_AA, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDC9 RID: 52681 RVA: 0x002F54B0 File Offset: 0x002F36B0
[Token(Token = "0x600CDC9")]
[Address(RVA = "0x1976190", Offset = "0x1974F90", VA = "0x181976190", Slot = "17")]
public override void Flush()
{
bool canRead = this._stream.CanRead;
}
// Token: 0x0600CDCA RID: 52682 RVA: 0x002F54D0 File Offset: 0x002F36D0
[Token(Token = "0x600CDCA")]
[Address(RVA = "0x1976880", Offset = "0x1975680", VA = "0x181976880", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (0600CDCA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.ZlibBaseStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
// Token: 0x0600CDCB RID: 52683 RVA: 0x002F54E4 File Offset: 0x002F36E4
[Token(Token = "0x600CDCB")]
[Address(RVA = "0x19768D0", Offset = "0x19756D0", VA = "0x1819768D0", Slot = "26")]
public override void SetLength(long value)
{
Stream stream = this._stream;
this.nomoreinput = false;
}
// Token: 0x0600CDCC RID: 52684 RVA: 0x002F5508 File Offset: 0x002F3708
[Token(Token = "0x600CDCC")]
[Address(RVA = "0x19761C0", Offset = "0x1974FC0", VA = "0x1819761C0")]
private string ReadZeroTerminatedString()
{
List<byte> list = new List();
Stream stream = this._stream;
byte b = this._buf1[0];
list.Add(b);
byte[] array = list.ToArray();
return GZipStream.iso8859dash1.GetString(array);
}
// Token: 0x0600CDCD RID: 52685 RVA: 0x002F5550 File Offset: 0x002F3750
[Token(Token = "0x600CDCD")]
[Address(RVA = "0x1976CB0", Offset = "0x1975AB0", VA = "0x181976CB0")]
private int _ReadAndValidateGzipHeader()
{
byte[] array;
do
{
uint num;
ulong num2;
array = VariableSizedBufferPool.Get((long)num, num2 != 0UL);
Stream stream = this._stream;
int length = array.Length;
}
while ("{il2cpp array field local5->}" != (ulong)31L || "{il2cpp array field local5->}" != (ulong)139L || "{il2cpp array field local5->}" != (ulong)8L);
int num3 = BitConverter.ToInt32(array, (int)8.487983164E-314);
DateTime unixEpoch = GZipStream._unixEpoch;
DateTime dateTime;
this._GzipMtime = dateTime;
int length2 = array.Length;
if ("{il2cpp array field local5->}" != (ulong)4L)
{
Stream stream2 = this._stream;
int length3 = array.Length;
byte b = array[0];
byte b2 = array[0];
uint num4;
byte b3 = (byte)((uint)b * num4);
b3 += b2;
Stream stream3 = this._stream;
}
if ("{il2cpp array field local5->}" != (ulong)8L)
{
string text = this.ReadZeroTerminatedString();
this._GzipFileName = text;
int length4 = array.Length;
}
if ("{il2cpp array field local5->}" != (ulong)16L)
{
string text2 = this.ReadZeroTerminatedString();
this._GzipComment = text2;
int length5 = array.Length;
}
if ("{il2cpp array field local5->}" != (ulong)2L)
{
}
VariableSizedBufferPool.Release(array);
VariableSizedBufferPool.Release(array);
throw new NullReferenceException();
}
// Token: 0x0600CDCE RID: 52686 RVA: 0x002F5664 File Offset: 0x002F3864
[Token(Token = "0x600CDCE")]
[Address(RVA = "0x1976350", Offset = "0x1975150", VA = "0x181976350", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
int num;
int num4;
bool flag;
for (;;)
{
num = 0;
if (this._streamMode == ZlibBaseStream.StreamMode.Undefined)
{
this._stream.Dispose();
this._streamMode = (ZlibBaseStream.StreamMode)((ulong)1L);
this.z.AvailableBytesIn = num;
if (this._flavor == ZlibStreamFlavor.GZIP)
{
int num2 = this._ReadAndValidateGzipHeader();
this._gzipHeaderByteCount = num2;
if (num2 == 0)
{
goto IL_1D9;
}
}
}
if (this._streamMode != ZlibBaseStream.StreamMode.Reader || count == 0 || ((this.nomoreinput ? 1 : 0) != num && this._compressionMode == (CompressionMode)num))
{
goto IL_1D9;
}
if (buffer != 0)
{
this._z.OutputBuffer = buffer;
this._z.NextOut = offset;
this._z.AvailableBytesOut = count;
ZlibCodec z = this._z;
byte[] workingBuffer = this.workingBuffer;
z.InputBuffer = workingBuffer;
ZlibCodec z2 = this._z;
ZlibCodec z4;
if (z2.AvailableBytesIn == num && (this.nomoreinput ? 1 : 0) == num)
{
z2.NextIn = num;
byte[] workingBuffer2 = this._workingBuffer;
ZlibCodec z3 = this._z;
Stream stream = this._stream;
int length = workingBuffer2.Length;
z4 = this._z;
if (z4.AvailableBytesIn == num)
{
this.nomoreinput = true;
}
}
FlushType flushMode = this._flushMode;
if (this._compressionMode == (CompressionMode)num)
{
int num3 = z4.Deflate(flushMode);
}
num4 = z4.Inflate(flushMode);
flag = this.nomoreinput;
if (flag && num4 == -5)
{
goto IL_1D9;
}
if (num4 <= 1)
{
break;
}
}
}
ZlibCodec z5;
if ((!flag && num4 != 1) || this._z.AvailableBytesOut != count)
{
z5 = this._z;
if (z5.AvailableBytesOut <= num || flag || num4 == 0)
{
}
}
if (z5.AvailableBytesOut <= num || !flag || this._compressionMode != (CompressionMode)num || z5.Deflate(FlushType.Finish) <= 1)
{
ZlibCodec z6 = this._z;
CRC32 crc = this.crc;
if (crc != 0)
{
crc.SlurpBlock(buffer, offset, count);
}
return count;
}
goto IL_1F1;
IL_1D9:
ZlibException ex = new ZlibException("Cannot Read after Writing.");
ZlibException ex2 = new ZlibException("The stream is not readable.");
IL_1F1:
throw new NullReferenceException();
}
// Token: 0x170020BC RID: 8380
// (get) Token: 0x0600CDCF RID: 52687 RVA: 0x002F587C File Offset: 0x002F3A7C
[Token(Token = "0x170020BC")]
public override bool CanRead
{
[Token(Token = "0x600CDCF")]
[Address(RVA = "0x1977C80", Offset = "0x1976A80", VA = "0x181977C80", Slot = "7")]
get
{
return this._stream.CanRead;
}
}
// Token: 0x170020BD RID: 8381
// (get) Token: 0x0600CDD0 RID: 52688 RVA: 0x002F589C File Offset: 0x002F3A9C
[Token(Token = "0x170020BD")]
public override bool CanSeek
{
[Token(Token = "0x600CDD0")]
[Address(RVA = "0x1977CB0", Offset = "0x1976AB0", VA = "0x181977CB0", Slot = "8")]
get
{
return this._stream.CanRead;
}
}
// Token: 0x170020BE RID: 8382
// (get) Token: 0x0600CDD1 RID: 52689 RVA: 0x002F58BC File Offset: 0x002F3ABC
[Token(Token = "0x170020BE")]
public override bool CanWrite
{
[Token(Token = "0x600CDD1")]
[Address(RVA = "0x1977CE0", Offset = "0x1976AE0", VA = "0x181977CE0", Slot = "9")]
get
{
return this._stream.CanRead;
}
}
// Token: 0x170020BF RID: 8383
// (get) Token: 0x0600CDD2 RID: 52690 RVA: 0x002F58DC File Offset: 0x002F3ADC
[Token(Token = "0x170020BF")]
public override long Length
{
[Token(Token = "0x600CDD2")]
[Address(RVA = "0x1977D20", Offset = "0x1976B20", VA = "0x181977D20", Slot = "10")]
get
{
bool canRead = this._stream.CanRead;
throw new NullReferenceException();
}
}
// Token: 0x170020C0 RID: 8384
// (get) Token: 0x0600CDD3 RID: 52691 RVA: 0x002F58FC File Offset: 0x002F3AFC
// (set) Token: 0x0600CDD4 RID: 52692 RVA: 0x002F5910 File Offset: 0x002F3B10
[Token(Token = "0x170020C0")]
public override long Position
{
[Token(Token = "0x600CDD3")]
[Address(RVA = "0x1977D50", Offset = "0x1976B50", VA = "0x181977D50", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (0600CDD3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.Decompression.Zlib.ZlibBaseStream::get_Position()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
[Token(Token = "0x600CDD4")]
[Address(RVA = "0x1977EF0", Offset = "0x1976CF0", VA = "0x181977EF0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (0600CDD4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibBaseStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.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 1660
*/;
}
}
// Token: 0x040083A4 RID: 33700
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40083A4")]
protected internal ZlibCodec _z;
// Token: 0x040083A5 RID: 33701
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40083A5")]
protected internal ZlibBaseStream.StreamMode _streamMode;
// Token: 0x040083A6 RID: 33702
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40083A6")]
protected internal FlushType _flushMode;
// Token: 0x040083A7 RID: 33703
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40083A7")]
protected internal ZlibStreamFlavor _flavor;
// Token: 0x040083A8 RID: 33704
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40083A8")]
protected internal CompressionMode _compressionMode;
// Token: 0x040083A9 RID: 33705
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40083A9")]
protected internal CompressionLevel _level;
// Token: 0x040083AA RID: 33706
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x40083AA")]
protected internal bool _leaveOpen;
// Token: 0x040083AB RID: 33707
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40083AB")]
protected internal byte[] _workingBuffer;
// Token: 0x040083AC RID: 33708
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40083AC")]
protected internal int _bufferSize;
// Token: 0x040083AD RID: 33709
[FieldOffset(Offset = "0x54")]
[Token(Token = "0x40083AD")]
protected internal int windowBitsMax;
// Token: 0x040083AE RID: 33710
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40083AE")]
protected internal byte[] _buf1;
// Token: 0x040083AF RID: 33711
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40083AF")]
protected internal Stream _stream;
// Token: 0x040083B0 RID: 33712
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40083B0")]
protected internal CompressionStrategy Strategy;
// Token: 0x040083B1 RID: 33713
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40083B1")]
private CRC32 crc;
// Token: 0x040083B2 RID: 33714
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40083B2")]
protected internal string _GzipFileName;
// Token: 0x040083B3 RID: 33715
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40083B3")]
protected internal string _GzipComment;
// Token: 0x040083B4 RID: 33716
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40083B4")]
protected internal DateTime _GzipMtime;
// Token: 0x040083B5 RID: 33717
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40083B5")]
protected internal int _gzipHeaderByteCount;
// Token: 0x040083B6 RID: 33718
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x40083B6")]
private bool nomoreinput;
// Token: 0x02001FBA RID: 8122
[Token(Token = "0x2001FBA")]
internal enum StreamMode
{
// Token: 0x040083B8 RID: 33720
[Token(Token = "0x40083B8")]
Writer,
// Token: 0x040083B9 RID: 33721
[Token(Token = "0x40083B9")]
Reader,
// Token: 0x040083BA RID: 33722
[Token(Token = "0x40083BA")]
Undefined
}
}
}
@@ -0,0 +1,580 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FBB RID: 8123
[Token(Token = "0x2001FBB")]
internal sealed class ZlibCodec
{
// Token: 0x170020C1 RID: 8385
// (get) Token: 0x0600CDD5 RID: 52693 RVA: 0x002F5924 File Offset: 0x002F3B24
[Token(Token = "0x170020C1")]
public int Adler32
{
[Token(Token = "0x600CDD5")]
[Address(RVA = "0x3FA190", Offset = "0x3F8F90", VA = "0x1803FA190")]
get
{
/*
An exception occurred when decompiling this method (0600CDD5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::get_Adler32()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:uint32(var_0_06, ldfld:uint32(ZlibCodec::_Adler32, ldloc:ZlibCodec(this)))
}
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 1660
*/;
}
}
// Token: 0x0600CDD6 RID: 52694 RVA: 0x002F5938 File Offset: 0x002F3B38
[Token(Token = "0x600CDD6")]
[Address(RVA = "0x19789F0", Offset = "0x19777F0", VA = "0x1819789F0")]
public ZlibCodec()
{
this.CompressLevel = (CompressionLevel)((ulong)6L);
this.WindowBits = (int)((ulong)15L);
base..ctor();
}
// Token: 0x0600CDD7 RID: 52695 RVA: 0x002F5960 File Offset: 0x002F3B60
[Token(Token = "0x600CDD7")]
[Address(RVA = "0x1978A10", Offset = "0x1977810", VA = "0x181978A10")]
public ZlibCodec(CompressionMode mode)
{
/*
An exception occurred when decompiling this method (0600CDD7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibCodec::.ctor(BestHTTP.Decompression.Zlib.CompressionMode)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_56:
stloc:ZlibException(var_4_60, newobj:ZlibException(ZlibException::.ctor, ldstr:string("Cannot initialize for deflate.")))
}
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 1660
*/;
}
// Token: 0x0600CDD8 RID: 52696 RVA: 0x002F59D0 File Offset: 0x002F3BD0
[Token(Token = "0x600CDD8")]
[Address(RVA = "0x19781B0", Offset = "0x1976FB0", VA = "0x1819781B0")]
public int InitializeInflate()
{
int windowBits = this.WindowBits;
return this.InitializeInflate(windowBits, true);
}
// Token: 0x0600CDD9 RID: 52697 RVA: 0x002F59EC File Offset: 0x002F3BEC
[Token(Token = "0x600CDD9")]
[Address(RVA = "0x19781C0", Offset = "0x1976FC0", VA = "0x1819781C0")]
public int InitializeInflate(bool expectRfc1950Header)
{
int windowBits = this.WindowBits;
return this.InitializeInflate(windowBits, expectRfc1950Header);
}
// Token: 0x0600CDDA RID: 52698 RVA: 0x002F5A08 File Offset: 0x002F3C08
[Token(Token = "0x600CDDA")]
[Address(RVA = "0x1978290", Offset = "0x1977090", VA = "0x181978290")]
public int InitializeInflate(int windowBits)
{
this.WindowBits = windowBits;
return this.InitializeInflate(windowBits, true);
}
// Token: 0x0600CDDB RID: 52699 RVA: 0x002F5A24 File Offset: 0x002F3C24
[Token(Token = "0x600CDDB")]
[Address(RVA = "0x19781D0", Offset = "0x1976FD0", VA = "0x1819781D0")]
public int InitializeInflate(int windowBits, bool expectRfc1950Header)
{
/*
An exception occurred when decompiling this method (0600CDDB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::InitializeInflate(System.Int32,System.Boolean)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_36:
stloc:ZlibException(var_1_40, newobj:ZlibException(ZlibException::.ctor, ldstr:string("You may not call InitializeInflate() after calling InitializeDeflate().")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDDC RID: 52700 RVA: 0x002F5A74 File Offset: 0x002F3C74
[Token(Token = "0x600CDDC")]
[Address(RVA = "0x19780B0", Offset = "0x1976EB0", VA = "0x1819780B0")]
public int Inflate(FlushType flush)
{
/*
An exception occurred when decompiling this method (0600CDDC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::Inflate(BestHTTP.Decompression.Zlib.FlushType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_0B:
stloc:ZlibException(var_1_15, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Inflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDDD RID: 52701 RVA: 0x002F5A98 File Offset: 0x002F3C98
[Token(Token = "0x600CDDD")]
[Address(RVA = "0x1978030", Offset = "0x1976E30", VA = "0x181978030")]
public int EndInflate()
{
/*
An exception occurred when decompiling this method (0600CDDD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::EndInflate()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1D:
stloc:ZlibException(var_2_27, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Inflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDDE RID: 52702 RVA: 0x002F5ACC File Offset: 0x002F3CCC
[Token(Token = "0x600CDDE")]
[Address(RVA = "0x1978680", Offset = "0x1977480", VA = "0x181978680")]
public int SyncInflate()
{
/*
An exception occurred when decompiling this method (0600CDDE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::SyncInflate()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ZlibException(var_1_1C, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Inflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDDF RID: 52703 RVA: 0x002F5AF8 File Offset: 0x002F3CF8
[Token(Token = "0x600CDDF")]
[Address(RVA = "0x1978160", Offset = "0x1976F60", VA = "0x181978160")]
public int InitializeDeflate()
{
return this._InternalInitializeDeflate(true);
}
// Token: 0x0600CDE0 RID: 52704 RVA: 0x002F5B0C File Offset: 0x002F3D0C
[Token(Token = "0x600CDE0")]
[Address(RVA = "0x1978150", Offset = "0x1976F50", VA = "0x181978150")]
public int InitializeDeflate(CompressionLevel level)
{
this.CompressLevel = level;
return this._InternalInitializeDeflate(true);
}
// Token: 0x0600CDE1 RID: 52705 RVA: 0x002F5B28 File Offset: 0x002F3D28
[Token(Token = "0x600CDE1")]
[Address(RVA = "0x1978190", Offset = "0x1976F90", VA = "0x181978190")]
public int InitializeDeflate(CompressionLevel level, bool wantRfc1950Header)
{
this.CompressLevel = level;
return this._InternalInitializeDeflate(wantRfc1950Header);
}
// Token: 0x0600CDE2 RID: 52706 RVA: 0x002F5B44 File Offset: 0x002F3D44
[Token(Token = "0x600CDE2")]
[Address(RVA = "0x1978130", Offset = "0x1976F30", VA = "0x181978130")]
public int InitializeDeflate(CompressionLevel level, int bits)
{
this.CompressLevel = level;
this.WindowBits = bits;
return this._InternalInitializeDeflate(true);
}
// Token: 0x0600CDE3 RID: 52707 RVA: 0x002F5B68 File Offset: 0x002F3D68
[Token(Token = "0x600CDE3")]
[Address(RVA = "0x1978170", Offset = "0x1976F70", VA = "0x181978170")]
public int InitializeDeflate(CompressionLevel level, int bits, bool wantRfc1950Header)
{
this.CompressLevel = level;
this.WindowBits = bits;
return this._InternalInitializeDeflate(wantRfc1950Header);
}
// Token: 0x0600CDE4 RID: 52708 RVA: 0x002F5B8C File Offset: 0x002F3D8C
[Token(Token = "0x600CDE4")]
[Address(RVA = "0x19786F0", Offset = "0x19774F0", VA = "0x1819786F0")]
private int _InternalInitializeDeflate(bool wantRfc1950Header)
{
/*
An exception occurred when decompiling this method (0600CDE4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::_InternalInitializeDeflate(System.Boolean)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_FF:
stloc:ZlibException(var_18_109, newobj:ZlibException(ZlibException::.ctor, ldstr:string("You may not call InitializeDeflate() after calling InitializeInflate().")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDE5 RID: 52709 RVA: 0x002F5CA4 File Offset: 0x002F3EA4
[Token(Token = "0x600CDE5")]
[Address(RVA = "0x1977F40", Offset = "0x1976D40", VA = "0x181977F40")]
public int Deflate(FlushType flush)
{
/*
An exception occurred when decompiling this method (0600CDE5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::Deflate(BestHTTP.Decompression.Zlib.FlushType)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_0B:
stloc:ZlibException(var_1_15, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDE6 RID: 52710 RVA: 0x002F5CC8 File Offset: 0x002F3EC8
[Token(Token = "0x600CDE6")]
[Address(RVA = "0x1977FC0", Offset = "0x1976DC0", VA = "0x181977FC0")]
public int EndDeflate()
{
/*
An exception occurred when decompiling this method (0600CDE6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::EndDeflate()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_16:
stloc:ZlibException(var_0_20, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDE7 RID: 52711 RVA: 0x002F5CF8 File Offset: 0x002F3EF8
[Token(Token = "0x600CDE7")]
[Address(RVA = "0x19782A0", Offset = "0x19770A0", VA = "0x1819782A0")]
public void ResetDeflate()
{
/*
An exception occurred when decompiling this method (0600CDE7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Decompression.Zlib.ZlibCodec::ResetDeflate()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ZlibException(var_1_1C, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDE8 RID: 52712 RVA: 0x002F5D24 File Offset: 0x002F3F24
[Token(Token = "0x600CDE8")]
[Address(RVA = "0x1978310", Offset = "0x1977110", VA = "0x181978310")]
public int SetDeflateParams(CompressionLevel level, CompressionStrategy strategy)
{
/*
An exception occurred when decompiling this method (0600CDE8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::SetDeflateParams(BestHTTP.Decompression.Zlib.CompressionLevel,BestHTTP.Decompression.Zlib.CompressionStrategy)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_6C:
stloc:ZlibException(var_8_76, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Deflate State!")))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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 1660
*/;
}
// Token: 0x0600CDE9 RID: 52713 RVA: 0x002F5DA8 File Offset: 0x002F3FA8
[Token(Token = "0x600CDE9")]
[Address(RVA = "0x1978470", Offset = "0x1977270", VA = "0x181978470")]
public int SetDictionary(byte[] dictionary)
{
/*
An exception occurred when decompiling this method (0600CDE9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.Decompression.Zlib.ZlibCodec::SetDictionary(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_C6:
stloc:ZlibException(var_16_D0, newobj:ZlibException(ZlibException::.ctor, ldstr:string("Stream error.")))
}
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 1660
*/;
}
// Token: 0x0600CDEA RID: 52714 RVA: 0x002F5E88 File Offset: 0x002F4088
[Token(Token = "0x600CDEA")]
[Address(RVA = "0x1978B30", Offset = "0x1977930", VA = "0x181978B30")]
internal void flush_pending()
{
DeflateManager deflateManager = this.dstate;
int availableBytesOut = this.AvailableBytesOut;
int pendingCount;
if (deflateManager.Z_ASCII <= availableBytesOut)
{
pendingCount = deflateManager.pendingCount;
}
if (pendingCount != 0)
{
byte[] pending = deflateManager.pending;
int length = pending.Length;
int nextPending = deflateManager.nextPending;
if (length > nextPending)
{
byte[] outputBuffer = this.OutputBuffer;
int length2 = outputBuffer.Length;
int nextOut = this.NextOut;
if (length2 > nextOut)
{
int num = 0;
Array.Copy(pending, nextPending, outputBuffer, nextOut, pendingCount);
DeflateManager deflateManager2 = this.dstate;
DeflateManager deflateManager3 = this.dstate;
DeflateManager deflateManager4 = this.dstate;
if (deflateManager4.Z_ASCII == num)
{
deflateManager4.nextPending = num;
return;
}
return;
}
}
throw new NullReferenceException();
}
}
// Token: 0x0600CDEB RID: 52715 RVA: 0x002F5F6C File Offset: 0x002F416C
[Token(Token = "0x600CDEB")]
[Address(RVA = "0x1978D10", Offset = "0x1977B10", VA = "0x181978D10")]
internal int read_buf(byte[] buf, int start, int size)
{
int num = this.AvailableBytesIn;
if (num > size)
{
num = size;
}
if (num != 0)
{
num -= num;
this.AvailableBytesIn = num;
if (this.dstate._WantRfc1950HeaderBytes)
{
uint adler = this._Adler32;
byte[] inputBuffer = this.InputBuffer;
uint num2 = Adler.Adler32(adler, inputBuffer, start, size);
this._Adler32 = num2;
}
int nextIn = this.NextIn;
Array.Copy(this.InputBuffer, nextIn, buf, size, num);
}
return 0;
}
// Token: 0x040083BB RID: 33723
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40083BB")]
public byte[] InputBuffer;
// Token: 0x040083BC RID: 33724
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40083BC")]
public int NextIn;
// Token: 0x040083BD RID: 33725
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40083BD")]
public int AvailableBytesIn;
// Token: 0x040083BE RID: 33726
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40083BE")]
public long TotalBytesIn;
// Token: 0x040083BF RID: 33727
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40083BF")]
public byte[] OutputBuffer;
// Token: 0x040083C0 RID: 33728
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40083C0")]
public int NextOut;
// Token: 0x040083C1 RID: 33729
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40083C1")]
public int AvailableBytesOut;
// Token: 0x040083C2 RID: 33730
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40083C2")]
public long TotalBytesOut;
// Token: 0x040083C3 RID: 33731
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40083C3")]
public string Message;
// Token: 0x040083C4 RID: 33732
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40083C4")]
internal DeflateManager dstate;
// Token: 0x040083C5 RID: 33733
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40083C5")]
internal InflateManager istate;
// Token: 0x040083C6 RID: 33734
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40083C6")]
internal uint _Adler32;
// Token: 0x040083C7 RID: 33735
[FieldOffset(Offset = "0x5C")]
[Token(Token = "0x40083C7")]
public CompressionLevel CompressLevel;
// Token: 0x040083C8 RID: 33736
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40083C8")]
public int WindowBits;
// Token: 0x040083C9 RID: 33737
[FieldOffset(Offset = "0x64")]
[Token(Token = "0x40083C9")]
public CompressionStrategy Strategy;
}
}
@@ -0,0 +1,50 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FBC RID: 8124
[Token(Token = "0x2001FBC")]
public static class ZlibConstants
{
// Token: 0x040083CA RID: 33738
[Token(Token = "0x40083CA")]
public const int WindowBitsMax = 15;
// Token: 0x040083CB RID: 33739
[Token(Token = "0x40083CB")]
public const int WindowBitsDefault = 15;
// Token: 0x040083CC RID: 33740
[Token(Token = "0x40083CC")]
public const int Z_OK = 0;
// Token: 0x040083CD RID: 33741
[Token(Token = "0x40083CD")]
public const int Z_STREAM_END = 1;
// Token: 0x040083CE RID: 33742
[Token(Token = "0x40083CE")]
public const int Z_NEED_DICT = 2;
// Token: 0x040083CF RID: 33743
[Token(Token = "0x40083CF")]
public const int Z_STREAM_ERROR = -2;
// Token: 0x040083D0 RID: 33744
[Token(Token = "0x40083D0")]
public const int Z_DATA_ERROR = -3;
// Token: 0x040083D1 RID: 33745
[Token(Token = "0x40083D1")]
public const int Z_BUF_ERROR = -5;
// Token: 0x040083D2 RID: 33746
[Token(Token = "0x40083D2")]
public const int WorkingBufferSizeDefault = 16384;
// Token: 0x040083D3 RID: 33747
[Token(Token = "0x40083D3")]
public const int WorkingBufferSizeMin = 1024;
}
}
@@ -0,0 +1,27 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB3 RID: 8115
[Token(Token = "0x2001FB3")]
[Guid("ebc25cf6-9120-4283-b972-0e5520d0000E")]
internal class ZlibException : Exception
{
// Token: 0x0600CDB2 RID: 52658 RVA: 0x002F4A80 File Offset: 0x002F2C80
[Token(Token = "0x600CDB2")]
[Address(RVA = "0x1978E20", Offset = "0x1977C20", VA = "0x181978E20")]
public ZlibException()
{
}
// Token: 0x0600CDB3 RID: 52659 RVA: 0x002F4A94 File Offset: 0x002F2C94
[Token(Token = "0x600CDB3")]
[Address(RVA = "0x1978E80", Offset = "0x1977C80", VA = "0x181978E80")]
public ZlibException(string s)
: base(s)
{
}
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Decompression.Zlib
{
// Token: 0x02001FB8 RID: 8120
[Token(Token = "0x2001FB8")]
internal enum ZlibStreamFlavor
{
// Token: 0x040083A1 RID: 33697
[Token(Token = "0x40083A1")]
ZLIB = 1950,
// Token: 0x040083A2 RID: 33698
[Token(Token = "0x40083A2")]
DEFLATE,
// Token: 0x040083A3 RID: 33699
[Token(Token = "0x40083A3")]
GZIP
}
}