m
This commit is contained in:
@@ -0,0 +1,482 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Crc
|
||||
{
|
||||
// Token: 0x0200209D RID: 8349
|
||||
[Token(Token = "0x200209D")]
|
||||
internal class CRC32
|
||||
{
|
||||
// Token: 0x1700215F RID: 8543
|
||||
// (get) Token: 0x0600D1BA RID: 53690 RVA: 0x002FE4F0 File Offset: 0x002FC6F0
|
||||
[Token(Token = "0x1700215F")]
|
||||
public long TotalBytesRead
|
||||
{
|
||||
[Token(Token = "0x600D1BA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._TotalBytesRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002160 RID: 8544
|
||||
// (get) Token: 0x0600D1BB RID: 53691 RVA: 0x002FE504 File Offset: 0x002FC704
|
||||
[Token(Token = "0x17002160")]
|
||||
public int Crc32Result
|
||||
{
|
||||
[Token(Token = "0x600D1BB")]
|
||||
[Address(RVA = "0xF9F390", Offset = "0xF9E390", VA = "0x180F9F390")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1BB)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D1BC RID: 53692 RVA: 0x002FE518 File Offset: 0x002FC718
|
||||
[Token(Token = "0x600D1BC")]
|
||||
[Address(RVA = "0x2404810", Offset = "0x2403810", VA = "0x182404810")]
|
||||
public int GetCrc32(Stream input)
|
||||
{
|
||||
int num = 0;
|
||||
return this.GetCrc32AndCopy(input, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1BD RID: 53693 RVA: 0x002FE530 File Offset: 0x002FC730
|
||||
[Token(Token = "0x600D1BD")]
|
||||
[Address(RVA = "0x2404580", Offset = "0x2403580", VA = "0x182404580")]
|
||||
public int GetCrc32AndCopy(Stream input, Stream output)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1BD)
|
||||
|
||||
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_80:
|
||||
stloc:Exception(var_10_8A, 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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1BE RID: 53694 RVA: 0x002FE5C8 File Offset: 0x002FC7C8
|
||||
[Token(Token = "0x600D1BE")]
|
||||
[Address(RVA = "0xF9EBB0", Offset = "0xF9DBB0", VA = "0x180F9EBB0")]
|
||||
public int ComputeCrc32(int W, byte B)
|
||||
{
|
||||
uint num = this.crc32Table[W];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D1BF RID: 53695 RVA: 0x002FE5E8 File Offset: 0x002FC7E8
|
||||
[Token(Token = "0x600D1BF")]
|
||||
[Address(RVA = "0xF9EBB0", Offset = "0xF9DBB0", VA = "0x180F9EBB0")]
|
||||
internal int _InternalComputeCrc32(uint W, byte B)
|
||||
{
|
||||
uint num = this.crc32Table[(int)W];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D1C0 RID: 53696 RVA: 0x002FE608 File Offset: 0x002FC808
|
||||
[Token(Token = "0x600D1C0")]
|
||||
[Address(RVA = "0x2404830", Offset = "0x2403830", VA = "0x182404830")]
|
||||
public void SlurpBlock(byte[] block, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1C0)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1C1 RID: 53697 RVA: 0x002FE658 File Offset: 0x002FC858
|
||||
[Token(Token = "0x600D1C1")]
|
||||
[Address(RVA = "0x2404A60", Offset = "0x2403A60", VA = "0x182404A60")]
|
||||
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: 0x0600D1C2 RID: 53698 RVA: 0x002FE6A4 File Offset: 0x002FC8A4
|
||||
[Token(Token = "0x600D1C2")]
|
||||
[Address(RVA = "0x2404990", Offset = "0x2403990", VA = "0x182404990")]
|
||||
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: 0x0600D1C3 RID: 53699 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600D1C3")]
|
||||
[Address(RVA = "0xF9F000", Offset = "0xF9E000", VA = "0x180F9F000")]
|
||||
private static uint ReverseBits(uint data)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600D1C4 RID: 53700 RVA: 0x002FE6E8 File Offset: 0x002FC8E8
|
||||
[Token(Token = "0x600D1C4")]
|
||||
[Address(RVA = "0xF9F060", Offset = "0xF9E060", VA = "0x180F9F060")]
|
||||
private static byte ReverseBits(byte data)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1C4)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1C5 RID: 53701 RVA: 0x002FE704 File Offset: 0x002FC904
|
||||
[Token(Token = "0x600D1C5")]
|
||||
[Address(RVA = "0x2404430", Offset = "0x2403430", VA = "0x182404430")]
|
||||
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: 0x0600D1C6 RID: 53702 RVA: 0x002FE78C File Offset: 0x002FC98C
|
||||
[Token(Token = "0x600D1C6")]
|
||||
[Address(RVA = "0xF9F460", Offset = "0xF9E460", VA = "0x180F9F460")]
|
||||
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: 0x0600D1C7 RID: 53703 RVA: 0x002FE7B4 File Offset: 0x002FC9B4
|
||||
[Token(Token = "0x600D1C7")]
|
||||
[Address(RVA = "0xF9F3A0", Offset = "0xF9E3A0", VA = "0x180F9F3A0")]
|
||||
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: 0x0600D1C8 RID: 53704 RVA: 0x002FE7EC File Offset: 0x002FC9EC
|
||||
[Token(Token = "0x600D1C8")]
|
||||
[Address(RVA = "0x2404010", Offset = "0x2403010", VA = "0x182404010")]
|
||||
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: 0x0600D1C9 RID: 53705 RVA: 0x002FE950 File Offset: 0x002FCB50
|
||||
[Token(Token = "0x600D1C9")]
|
||||
[Address(RVA = "0x2404C70", Offset = "0x2403C70", VA = "0x182404C70")]
|
||||
public CRC32()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D1CA RID: 53706 RVA: 0x002FE960 File Offset: 0x002FCB60
|
||||
[Token(Token = "0x600D1CA")]
|
||||
[Address(RVA = "0x2404C80", Offset = "0x2403C80", VA = "0x182404C80")]
|
||||
public CRC32(bool reverseBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D1CB RID: 53707 RVA: 0x002FE970 File Offset: 0x002FCB70
|
||||
[Token(Token = "0x600D1CB")]
|
||||
[Address(RVA = "0x2404B00", Offset = "0x2403B00", VA = "0x182404B00")]
|
||||
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: 0x0600D1CC RID: 53708 RVA: 0x002FEA10 File Offset: 0x002FCC10
|
||||
[Token(Token = "0x600D1CC")]
|
||||
[Address(RVA = "0x2404820", Offset = "0x2403820", VA = "0x182404820")]
|
||||
public void Reset()
|
||||
{
|
||||
this._register = (uint)((ulong)4294967295L);
|
||||
}
|
||||
|
||||
// Token: 0x0400858D RID: 34189
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400858D")]
|
||||
private uint dwPolynomial;
|
||||
|
||||
// Token: 0x0400858E RID: 34190
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400858E")]
|
||||
private long _TotalBytesRead;
|
||||
|
||||
// Token: 0x0400858F RID: 34191
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400858F")]
|
||||
private bool reverseBits;
|
||||
|
||||
// Token: 0x04008590 RID: 34192
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008590")]
|
||||
private uint[] crc32Table;
|
||||
|
||||
// Token: 0x04008591 RID: 34193
|
||||
[Token(Token = "0x4008591")]
|
||||
private const int BUFFER_SIZE = 8192;
|
||||
|
||||
// Token: 0x04008592 RID: 34194
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008592")]
|
||||
private uint _register;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002097 RID: 8343
|
||||
[Token(Token = "0x2002097")]
|
||||
public sealed class Adler
|
||||
{
|
||||
// Token: 0x0600D18A RID: 53642 RVA: 0x002FD348 File Offset: 0x002FB548
|
||||
[Token(Token = "0x600D18A")]
|
||||
[Address(RVA = "0x2403B50", Offset = "0x2402B50", VA = "0x182403B50")]
|
||||
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: 0x0600D18B RID: 53643 RVA: 0x002FD3C4 File Offset: 0x002FB5C4
|
||||
[Token(Token = "0x600D18B")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public Adler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008557 RID: 34135
|
||||
[Token(Token = "0x4008557")]
|
||||
private static readonly uint BASE;
|
||||
|
||||
// Token: 0x04008558 RID: 34136
|
||||
[Token(Token = "0x4008558")]
|
||||
private static readonly int NMAX;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002080 RID: 8320
|
||||
[Token(Token = "0x2002080")]
|
||||
internal enum BlockState
|
||||
{
|
||||
// Token: 0x04008447 RID: 33863
|
||||
[Token(Token = "0x4008447")]
|
||||
NeedMore,
|
||||
// Token: 0x04008448 RID: 33864
|
||||
[Token(Token = "0x4008448")]
|
||||
BlockDone,
|
||||
// Token: 0x04008449 RID: 33865
|
||||
[Token(Token = "0x4008449")]
|
||||
FinishStarted,
|
||||
// Token: 0x0400844A RID: 33866
|
||||
[Token(Token = "0x400844A")]
|
||||
FinishDone
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002090 RID: 8336
|
||||
[Token(Token = "0x2002090")]
|
||||
public enum CompressionLevel
|
||||
{
|
||||
// Token: 0x0400852E RID: 34094
|
||||
[Token(Token = "0x400852E")]
|
||||
None,
|
||||
// Token: 0x0400852F RID: 34095
|
||||
[Token(Token = "0x400852F")]
|
||||
Level0 = 0,
|
||||
// Token: 0x04008530 RID: 34096
|
||||
[Token(Token = "0x4008530")]
|
||||
BestSpeed,
|
||||
// Token: 0x04008531 RID: 34097
|
||||
[Token(Token = "0x4008531")]
|
||||
Level1 = 1,
|
||||
// Token: 0x04008532 RID: 34098
|
||||
[Token(Token = "0x4008532")]
|
||||
Level2,
|
||||
// Token: 0x04008533 RID: 34099
|
||||
[Token(Token = "0x4008533")]
|
||||
Level3,
|
||||
// Token: 0x04008534 RID: 34100
|
||||
[Token(Token = "0x4008534")]
|
||||
Level4,
|
||||
// Token: 0x04008535 RID: 34101
|
||||
[Token(Token = "0x4008535")]
|
||||
Level5,
|
||||
// Token: 0x04008536 RID: 34102
|
||||
[Token(Token = "0x4008536")]
|
||||
Default,
|
||||
// Token: 0x04008537 RID: 34103
|
||||
[Token(Token = "0x4008537")]
|
||||
Level6 = 6,
|
||||
// Token: 0x04008538 RID: 34104
|
||||
[Token(Token = "0x4008538")]
|
||||
Level7,
|
||||
// Token: 0x04008539 RID: 34105
|
||||
[Token(Token = "0x4008539")]
|
||||
Level8,
|
||||
// Token: 0x0400853A RID: 34106
|
||||
[Token(Token = "0x400853A")]
|
||||
BestCompression,
|
||||
// Token: 0x0400853B RID: 34107
|
||||
[Token(Token = "0x400853B")]
|
||||
Level9 = 9
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002092 RID: 8338
|
||||
[Token(Token = "0x2002092")]
|
||||
public enum CompressionMode
|
||||
{
|
||||
// Token: 0x04008541 RID: 34113
|
||||
[Token(Token = "0x4008541")]
|
||||
Compress,
|
||||
// Token: 0x04008542 RID: 34114
|
||||
[Token(Token = "0x4008542")]
|
||||
Decompress
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002091 RID: 8337
|
||||
[Token(Token = "0x2002091")]
|
||||
public enum CompressionStrategy
|
||||
{
|
||||
// Token: 0x0400853D RID: 34109
|
||||
[Token(Token = "0x400853D")]
|
||||
Default,
|
||||
// Token: 0x0400853E RID: 34110
|
||||
[Token(Token = "0x400853E")]
|
||||
Filtered,
|
||||
// Token: 0x0400853F RID: 34111
|
||||
[Token(Token = "0x400853F")]
|
||||
HuffmanOnly
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002081 RID: 8321
|
||||
[Token(Token = "0x2002081")]
|
||||
internal enum DeflateFlavor
|
||||
{
|
||||
// Token: 0x0400844C RID: 33868
|
||||
[Token(Token = "0x400844C")]
|
||||
Store,
|
||||
// Token: 0x0400844D RID: 33869
|
||||
[Token(Token = "0x400844D")]
|
||||
Fast,
|
||||
// Token: 0x0400844E RID: 33870
|
||||
[Token(Token = "0x400844E")]
|
||||
Slow
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2182 @@
|
||||
using System;
|
||||
using BestHTTP.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002082 RID: 8322
|
||||
[Token(Token = "0x2002082")]
|
||||
internal sealed class DeflateManager
|
||||
{
|
||||
// Token: 0x0600D0F3 RID: 53491 RVA: 0x002F7600 File Offset: 0x002F5800
|
||||
[Token(Token = "0x600D0F3")]
|
||||
[Address(RVA = "0x240D290", Offset = "0x240C290", VA = "0x18240D290")]
|
||||
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: 0x0600D0F4 RID: 53492 RVA: 0x002F76CC File Offset: 0x002F58CC
|
||||
[Token(Token = "0x600D0F4")]
|
||||
[Address(RVA = "0x240CA00", Offset = "0x240BA00", VA = "0x18240CA00")]
|
||||
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: 0x0600D0F5 RID: 53493 RVA: 0x002F775C File Offset: 0x002F595C
|
||||
[Token(Token = "0x600D0F5")]
|
||||
[Address(RVA = "0x240CAF0", Offset = "0x240BAF0", VA = "0x18240CAF0")]
|
||||
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: 0x0600D0F6 RID: 53494 RVA: 0x002F781C File Offset: 0x002F5A1C
|
||||
[Token(Token = "0x600D0F6")]
|
||||
[Address(RVA = "0x240C7E0", Offset = "0x240B7E0", VA = "0x18240C7E0")]
|
||||
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: 0x0600D0F7 RID: 53495 RVA: 0x002F78C0 File Offset: 0x002F5AC0
|
||||
[Token(Token = "0x600D0F7")]
|
||||
[Address(RVA = "0x240EDB0", Offset = "0x240DDB0", VA = "0x18240EDB0")]
|
||||
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: 0x0600D0F8 RID: 53496 RVA: 0x002F7964 File Offset: 0x002F5B64
|
||||
[Token(Token = "0x600D0F8")]
|
||||
[Address(RVA = "0x240CC30", Offset = "0x240BC30", VA = "0x18240CC30")]
|
||||
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: 0x0600D0F9 RID: 53497 RVA: 0x002F7994 File Offset: 0x002F5B94
|
||||
[Token(Token = "0x600D0F9")]
|
||||
[Address(RVA = "0x240F010", Offset = "0x240E010", VA = "0x18240F010")]
|
||||
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: 0x0600D0FA RID: 53498 RVA: 0x002F7A28 File Offset: 0x002F5C28
|
||||
[Token(Token = "0x600D0FA")]
|
||||
[Address(RVA = "0x240E460", Offset = "0x240D460", VA = "0x18240E460")]
|
||||
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: 0x0600D0FB RID: 53499 RVA: 0x002F7AB4 File Offset: 0x002F5CB4
|
||||
[Token(Token = "0x600D0FB")]
|
||||
[Address(RVA = "0x240F350", Offset = "0x240E350", VA = "0x18240F350")]
|
||||
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: 0x0600D0FC RID: 53500 RVA: 0x002F7B24 File Offset: 0x002F5D24
|
||||
[Token(Token = "0x600D0FC")]
|
||||
[Address(RVA = "0x240FC10", Offset = "0x240EC10", VA = "0x18240FC10")]
|
||||
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: 0x0600D0FD RID: 53501 RVA: 0x002F7BE4 File Offset: 0x002F5DE4
|
||||
[Token(Token = "0x600D0FD")]
|
||||
[Address(RVA = "0x10A7EA0", Offset = "0x10A6EA0", VA = "0x1810A7EA0")]
|
||||
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: 0x0600D0FE RID: 53502 RVA: 0x002F7C0C File Offset: 0x002F5E0C
|
||||
[Token(Token = "0x600D0FE")]
|
||||
[Address(RVA = "0x240F670", Offset = "0x240E670", VA = "0x18240F670")]
|
||||
internal void send_code(int c, short[] tree)
|
||||
{
|
||||
int length = tree.Length;
|
||||
short num;
|
||||
short num2;
|
||||
this.send_bits((int)num, (int)num2);
|
||||
}
|
||||
|
||||
// Token: 0x0600D0FF RID: 53503 RVA: 0x002F7C30 File Offset: 0x002F5E30
|
||||
[Token(Token = "0x600D0FF")]
|
||||
[Address(RVA = "0x240F4D0", Offset = "0x240E4D0", VA = "0x18240F4D0")]
|
||||
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: 0x0600D100 RID: 53504 RVA: 0x002F7C78 File Offset: 0x002F5E78
|
||||
[Token(Token = "0x600D100")]
|
||||
[Address(RVA = "0x240D790", Offset = "0x240C790", VA = "0x18240D790")]
|
||||
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: 0x0600D101 RID: 53505 RVA: 0x002F7D08 File Offset: 0x002F5F08
|
||||
[Token(Token = "0x600D101")]
|
||||
[Address(RVA = "0x240E090", Offset = "0x240D090", VA = "0x18240E090")]
|
||||
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: 0x0600D102 RID: 53506 RVA: 0x002F7E24 File Offset: 0x002F6024
|
||||
[Token(Token = "0x600D102")]
|
||||
[Address(RVA = "0x240F6E0", Offset = "0x240E6E0", VA = "0x18240F6E0")]
|
||||
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: 0x0600D103 RID: 53507 RVA: 0x002F7F8C File Offset: 0x002F618C
|
||||
[Token(Token = "0x600D103")]
|
||||
[Address(RVA = "0x240FED0", Offset = "0x240EED0", VA = "0x18240FED0")]
|
||||
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: 0x0600D104 RID: 53508 RVA: 0x002F7FE8 File Offset: 0x002F61E8
|
||||
[Token(Token = "0x600D104")]
|
||||
[Address(RVA = "0x10A6F70", Offset = "0x10A5F70", VA = "0x1810A6F70")]
|
||||
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: 0x0600D105 RID: 53509 RVA: 0x002F808C File Offset: 0x002F628C
|
||||
[Token(Token = "0x600D105")]
|
||||
[Address(RVA = "0x10A7070", Offset = "0x10A6070", VA = "0x1810A7070")]
|
||||
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: 0x0600D106 RID: 53510 RVA: 0x002F8140 File Offset: 0x002F6340
|
||||
[Token(Token = "0x600D106")]
|
||||
[Address(RVA = "0x10A7300", Offset = "0x10A6300", VA = "0x1810A7300")]
|
||||
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: 0x0600D107 RID: 53511 RVA: 0x002F81F8 File Offset: 0x002F63F8
|
||||
[Token(Token = "0x600D107")]
|
||||
[Address(RVA = "0x240E5F0", Offset = "0x240D5F0", VA = "0x18240E5F0")]
|
||||
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: 0x0600D108 RID: 53512 RVA: 0x002F8244 File Offset: 0x002F6444
|
||||
[Token(Token = "0x600D108")]
|
||||
[Address(RVA = "0x240A5C0", Offset = "0x24095C0", VA = "0x18240A5C0")]
|
||||
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: 0x0600D109 RID: 53513 RVA: 0x002F8398 File Offset: 0x002F6598
|
||||
[Token(Token = "0x600D109")]
|
||||
[Address(RVA = "0x240DED0", Offset = "0x240CED0", VA = "0x18240DED0")]
|
||||
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: 0x0600D10A RID: 53514 RVA: 0x002F8454 File Offset: 0x002F6654
|
||||
[Token(Token = "0x600D10A")]
|
||||
[Address(RVA = "0x240D9C0", Offset = "0x240C9C0", VA = "0x18240D9C0")]
|
||||
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: 0x0600D10B RID: 53515 RVA: 0x002F85F4 File Offset: 0x002F67F4
|
||||
[Token(Token = "0x600D10B")]
|
||||
[Address(RVA = "0x240D470", Offset = "0x240C470", VA = "0x18240D470")]
|
||||
private void _fillWindow()
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
int num2 = this.window_size;
|
||||
int num3 = this.strstart;
|
||||
num2 -= num3;
|
||||
int num4 = this.lookahead;
|
||||
num2 -= num4;
|
||||
if (num3 != 0 || num4 != 0 || this.w_size != -1)
|
||||
{
|
||||
int num5 = this.w_size;
|
||||
num5 += num5;
|
||||
byte[] array = this.window;
|
||||
int num6 = 0;
|
||||
int 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 == num)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int num16 = this.lookahead;
|
||||
byte[] array4 = this.window;
|
||||
uint num18;
|
||||
int num17 = codec.read_buf(array4, num16, (int)num18);
|
||||
int num19 = this.lookahead;
|
||||
byte[] array5 = this.window;
|
||||
int num20 = this.strstart;
|
||||
byte b;
|
||||
this.ins_h = (int)b;
|
||||
int num21 = num20 + 1;
|
||||
this.ins_h = (int)b;
|
||||
int num22 = this.lookahead;
|
||||
}
|
||||
while (this._codec.AvailableBytesIn != num);
|
||||
}
|
||||
|
||||
// Token: 0x0600D10C RID: 53516 RVA: 0x002F8770 File Offset: 0x002F6970
|
||||
[Token(Token = "0x600D10C")]
|
||||
[Address(RVA = "0x2409EF0", Offset = "0x2408EF0", VA = "0x182409EF0")]
|
||||
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: 0x0600D10D RID: 53517 RVA: 0x002F8A60 File Offset: 0x002F6C60
|
||||
[Token(Token = "0x600D10D")]
|
||||
[Address(RVA = "0x240A800", Offset = "0x2409800", VA = "0x18240A800")]
|
||||
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: 0x0600D10E RID: 53518 RVA: 0x002F8E08 File Offset: 0x002F7008
|
||||
[Token(Token = "0x600D10E")]
|
||||
[Address(RVA = "0x240E650", Offset = "0x240D650", VA = "0x18240E650")]
|
||||
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: 0x1700213D RID: 8509
|
||||
// (get) Token: 0x0600D10F RID: 53519 RVA: 0x002F8FD0 File Offset: 0x002F71D0
|
||||
// (set) Token: 0x0600D110 RID: 53520 RVA: 0x002F8FE4 File Offset: 0x002F71E4
|
||||
[Token(Token = "0x1700213D")]
|
||||
internal bool WantRfc1950HeaderBytes
|
||||
{
|
||||
[Token(Token = "0x600D10F")]
|
||||
[Address(RVA = "0x10A74D0", Offset = "0x10A64D0", VA = "0x1810A74D0")]
|
||||
get
|
||||
{
|
||||
return this._WantRfc1950HeaderBytes;
|
||||
}
|
||||
[Token(Token = "0x600D110")]
|
||||
[Address(RVA = "0x10A8DB0", Offset = "0x10A7DB0", VA = "0x1810A8DB0")]
|
||||
set
|
||||
{
|
||||
this._WantRfc1950HeaderBytes = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D111 RID: 53521 RVA: 0x002F8FF8 File Offset: 0x002F71F8
|
||||
[Token(Token = "0x600D111")]
|
||||
[Address(RVA = "0x240BB80", Offset = "0x240AB80", VA = "0x18240BB80")]
|
||||
internal int Initialize(ZlibCodec codec, CompressionLevel level)
|
||||
{
|
||||
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D112 RID: 53522 RVA: 0x002F9010 File Offset: 0x002F7210
|
||||
[Token(Token = "0x600D112")]
|
||||
[Address(RVA = "0x240BAD0", Offset = "0x240AAD0", VA = "0x18240BAD0")]
|
||||
internal int Initialize(ZlibCodec codec, CompressionLevel level, int bits)
|
||||
{
|
||||
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D113 RID: 53523 RVA: 0x002F9028 File Offset: 0x002F7228
|
||||
[Token(Token = "0x600D113")]
|
||||
[Address(RVA = "0x240BED0", Offset = "0x240AED0", VA = "0x18240BED0")]
|
||||
internal int Initialize(ZlibCodec codec, CompressionLevel level, int bits, CompressionStrategy compressionStrategy)
|
||||
{
|
||||
int mem_LEVEL_DEFAULT = DeflateManager.MEM_LEVEL_DEFAULT;
|
||||
int num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D114 RID: 53524 RVA: 0x002F903C File Offset: 0x002F723C
|
||||
[Token(Token = "0x600D114")]
|
||||
[Address(RVA = "0x240BC20", Offset = "0x240AC20", VA = "0x18240BC20")]
|
||||
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: 0x0600D115 RID: 53525 RVA: 0x002F9140 File Offset: 0x002F7340
|
||||
[Token(Token = "0x600D115")]
|
||||
[Address(RVA = "0x240BF80", Offset = "0x240AF80", VA = "0x18240BF80")]
|
||||
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: 0x0600D116 RID: 53526 RVA: 0x002F92E4 File Offset: 0x002F74E4
|
||||
[Token(Token = "0x600D116")]
|
||||
[Address(RVA = "0x240B970", Offset = "0x240A970", VA = "0x18240B970")]
|
||||
internal int End()
|
||||
{
|
||||
int num = this.status;
|
||||
int num2 = this.status;
|
||||
int num3 = this.status;
|
||||
return -2;
|
||||
}
|
||||
|
||||
// Token: 0x0600D117 RID: 53527 RVA: 0x002F9310 File Offset: 0x002F7510
|
||||
[Token(Token = "0x600D117")]
|
||||
[Address(RVA = "0x240C2A0", Offset = "0x240B2A0", VA = "0x18240C2A0")]
|
||||
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: 0x0600D118 RID: 53528 RVA: 0x002F9364 File Offset: 0x002F7564
|
||||
[Token(Token = "0x600D118")]
|
||||
[Address(RVA = "0x240C6F0", Offset = "0x240B6F0", VA = "0x18240C6F0")]
|
||||
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: 0x0600D119 RID: 53529 RVA: 0x002F93D8 File Offset: 0x002F75D8
|
||||
[Token(Token = "0x600D119")]
|
||||
[Address(RVA = "0x240C340", Offset = "0x240B340", VA = "0x18240C340")]
|
||||
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: 0x0600D11A RID: 53530 RVA: 0x002F9508 File Offset: 0x002F7708
|
||||
[Token(Token = "0x600D11A")]
|
||||
[Address(RVA = "0x240B020", Offset = "0x240A020", VA = "0x18240B020")]
|
||||
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: 0x0600D11B RID: 53531 RVA: 0x002F98A8 File Offset: 0x002F7AA8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D11B")]
|
||||
[Address(RVA = "0x240CCF0", Offset = "0x240BCF0", VA = "0x18240CCF0")]
|
||||
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: 0x0400844F RID: 33871
|
||||
[Token(Token = "0x400844F")]
|
||||
private static readonly int MEM_LEVEL_MAX;
|
||||
|
||||
// Token: 0x04008450 RID: 33872
|
||||
[Token(Token = "0x4008450")]
|
||||
private static readonly int MEM_LEVEL_DEFAULT;
|
||||
|
||||
// Token: 0x04008451 RID: 33873
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008451")]
|
||||
private DeflateManager.CompressFunc DeflateFunction;
|
||||
|
||||
// Token: 0x04008452 RID: 33874
|
||||
[Token(Token = "0x4008452")]
|
||||
private static readonly string[] _ErrorMessage;
|
||||
|
||||
// Token: 0x04008453 RID: 33875
|
||||
[Token(Token = "0x4008453")]
|
||||
private static readonly int PRESET_DICT;
|
||||
|
||||
// Token: 0x04008454 RID: 33876
|
||||
[Token(Token = "0x4008454")]
|
||||
private static readonly int INIT_STATE;
|
||||
|
||||
// Token: 0x04008455 RID: 33877
|
||||
[Token(Token = "0x4008455")]
|
||||
private static readonly int BUSY_STATE;
|
||||
|
||||
// Token: 0x04008456 RID: 33878
|
||||
[Token(Token = "0x4008456")]
|
||||
private static readonly int FINISH_STATE;
|
||||
|
||||
// Token: 0x04008457 RID: 33879
|
||||
[Token(Token = "0x4008457")]
|
||||
private static readonly int Z_DEFLATED;
|
||||
|
||||
// Token: 0x04008458 RID: 33880
|
||||
[Token(Token = "0x4008458")]
|
||||
private static readonly int STORED_BLOCK;
|
||||
|
||||
// Token: 0x04008459 RID: 33881
|
||||
[Token(Token = "0x4008459")]
|
||||
private static readonly int STATIC_TREES;
|
||||
|
||||
// Token: 0x0400845A RID: 33882
|
||||
[Token(Token = "0x400845A")]
|
||||
private static readonly int DYN_TREES;
|
||||
|
||||
// Token: 0x0400845B RID: 33883
|
||||
[Token(Token = "0x400845B")]
|
||||
private static readonly int Z_BINARY;
|
||||
|
||||
// Token: 0x0400845C RID: 33884
|
||||
[Token(Token = "0x400845C")]
|
||||
private static readonly int Z_ASCII;
|
||||
|
||||
// Token: 0x0400845D RID: 33885
|
||||
[Token(Token = "0x400845D")]
|
||||
private static readonly int Z_UNKNOWN;
|
||||
|
||||
// Token: 0x0400845E RID: 33886
|
||||
[Token(Token = "0x400845E")]
|
||||
private static readonly int Buf_size;
|
||||
|
||||
// Token: 0x0400845F RID: 33887
|
||||
[Token(Token = "0x400845F")]
|
||||
private static readonly int MIN_MATCH;
|
||||
|
||||
// Token: 0x04008460 RID: 33888
|
||||
[Token(Token = "0x4008460")]
|
||||
private static readonly int MAX_MATCH;
|
||||
|
||||
// Token: 0x04008461 RID: 33889
|
||||
[Token(Token = "0x4008461")]
|
||||
private static readonly int MIN_LOOKAHEAD;
|
||||
|
||||
// Token: 0x04008462 RID: 33890
|
||||
[Token(Token = "0x4008462")]
|
||||
private static readonly int HEAP_SIZE;
|
||||
|
||||
// Token: 0x04008463 RID: 33891
|
||||
[Token(Token = "0x4008463")]
|
||||
private static readonly int END_BLOCK;
|
||||
|
||||
// Token: 0x04008464 RID: 33892
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008464")]
|
||||
internal ZlibCodec _codec;
|
||||
|
||||
// Token: 0x04008465 RID: 33893
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008465")]
|
||||
internal int status;
|
||||
|
||||
// Token: 0x04008466 RID: 33894
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008466")]
|
||||
internal byte[] pending;
|
||||
|
||||
// Token: 0x04008467 RID: 33895
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008467")]
|
||||
internal int nextPending;
|
||||
|
||||
// Token: 0x04008468 RID: 33896
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4008468")]
|
||||
internal int pendingCount;
|
||||
|
||||
// Token: 0x04008469 RID: 33897
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008469")]
|
||||
internal sbyte data_type;
|
||||
|
||||
// Token: 0x0400846A RID: 33898
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400846A")]
|
||||
internal int last_flush;
|
||||
|
||||
// Token: 0x0400846B RID: 33899
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400846B")]
|
||||
internal int w_size;
|
||||
|
||||
// Token: 0x0400846C RID: 33900
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x400846C")]
|
||||
internal int w_bits;
|
||||
|
||||
// Token: 0x0400846D RID: 33901
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400846D")]
|
||||
internal int w_mask;
|
||||
|
||||
// Token: 0x0400846E RID: 33902
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400846E")]
|
||||
internal byte[] window;
|
||||
|
||||
// Token: 0x0400846F RID: 33903
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400846F")]
|
||||
internal int window_size;
|
||||
|
||||
// Token: 0x04008470 RID: 33904
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008470")]
|
||||
internal short[] prev;
|
||||
|
||||
// Token: 0x04008471 RID: 33905
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4008471")]
|
||||
internal short[] head;
|
||||
|
||||
// Token: 0x04008472 RID: 33906
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4008472")]
|
||||
internal int ins_h;
|
||||
|
||||
// Token: 0x04008473 RID: 33907
|
||||
[FieldOffset(Offset = "0x74")]
|
||||
[Token(Token = "0x4008473")]
|
||||
internal int hash_size;
|
||||
|
||||
// Token: 0x04008474 RID: 33908
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4008474")]
|
||||
internal int hash_bits;
|
||||
|
||||
// Token: 0x04008475 RID: 33909
|
||||
[FieldOffset(Offset = "0x7C")]
|
||||
[Token(Token = "0x4008475")]
|
||||
internal int hash_mask;
|
||||
|
||||
// Token: 0x04008476 RID: 33910
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4008476")]
|
||||
internal int hash_shift;
|
||||
|
||||
// Token: 0x04008477 RID: 33911
|
||||
[FieldOffset(Offset = "0x84")]
|
||||
[Token(Token = "0x4008477")]
|
||||
internal int block_start;
|
||||
|
||||
// Token: 0x04008478 RID: 33912
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4008478")]
|
||||
private DeflateManager.Config config;
|
||||
|
||||
// Token: 0x04008479 RID: 33913
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4008479")]
|
||||
internal int match_length;
|
||||
|
||||
// Token: 0x0400847A RID: 33914
|
||||
[FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x400847A")]
|
||||
internal int prev_match;
|
||||
|
||||
// Token: 0x0400847B RID: 33915
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x400847B")]
|
||||
internal int match_available;
|
||||
|
||||
// Token: 0x0400847C RID: 33916
|
||||
[FieldOffset(Offset = "0x9C")]
|
||||
[Token(Token = "0x400847C")]
|
||||
internal int strstart;
|
||||
|
||||
// Token: 0x0400847D RID: 33917
|
||||
[FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x400847D")]
|
||||
internal int match_start;
|
||||
|
||||
// Token: 0x0400847E RID: 33918
|
||||
[FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x400847E")]
|
||||
internal int lookahead;
|
||||
|
||||
// Token: 0x0400847F RID: 33919
|
||||
[FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x400847F")]
|
||||
internal int prev_length;
|
||||
|
||||
// Token: 0x04008480 RID: 33920
|
||||
[FieldOffset(Offset = "0xAC")]
|
||||
[Token(Token = "0x4008480")]
|
||||
internal CompressionLevel compressionLevel;
|
||||
|
||||
// Token: 0x04008481 RID: 33921
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x4008481")]
|
||||
internal CompressionStrategy compressionStrategy;
|
||||
|
||||
// Token: 0x04008482 RID: 33922
|
||||
[FieldOffset(Offset = "0xB8")]
|
||||
[Token(Token = "0x4008482")]
|
||||
internal short[] dyn_ltree;
|
||||
|
||||
// Token: 0x04008483 RID: 33923
|
||||
[FieldOffset(Offset = "0xC0")]
|
||||
[Token(Token = "0x4008483")]
|
||||
internal short[] dyn_dtree;
|
||||
|
||||
// Token: 0x04008484 RID: 33924
|
||||
[FieldOffset(Offset = "0xC8")]
|
||||
[Token(Token = "0x4008484")]
|
||||
internal short[] bl_tree;
|
||||
|
||||
// Token: 0x04008485 RID: 33925
|
||||
[FieldOffset(Offset = "0xD0")]
|
||||
[Token(Token = "0x4008485")]
|
||||
internal ZTree treeLiterals;
|
||||
|
||||
// Token: 0x04008486 RID: 33926
|
||||
[FieldOffset(Offset = "0xD8")]
|
||||
[Token(Token = "0x4008486")]
|
||||
internal ZTree treeDistances;
|
||||
|
||||
// Token: 0x04008487 RID: 33927
|
||||
[FieldOffset(Offset = "0xE0")]
|
||||
[Token(Token = "0x4008487")]
|
||||
internal ZTree treeBitLengths;
|
||||
|
||||
// Token: 0x04008488 RID: 33928
|
||||
[FieldOffset(Offset = "0xE8")]
|
||||
[Token(Token = "0x4008488")]
|
||||
internal short[] bl_count;
|
||||
|
||||
// Token: 0x04008489 RID: 33929
|
||||
[FieldOffset(Offset = "0xF0")]
|
||||
[Token(Token = "0x4008489")]
|
||||
internal int[] heap;
|
||||
|
||||
// Token: 0x0400848A RID: 33930
|
||||
[FieldOffset(Offset = "0xF8")]
|
||||
[Token(Token = "0x400848A")]
|
||||
internal int heap_len;
|
||||
|
||||
// Token: 0x0400848B RID: 33931
|
||||
[FieldOffset(Offset = "0xFC")]
|
||||
[Token(Token = "0x400848B")]
|
||||
internal int heap_max;
|
||||
|
||||
// Token: 0x0400848C RID: 33932
|
||||
[FieldOffset(Offset = "0x100")]
|
||||
[Token(Token = "0x400848C")]
|
||||
internal sbyte[] depth;
|
||||
|
||||
// Token: 0x0400848D RID: 33933
|
||||
[FieldOffset(Offset = "0x108")]
|
||||
[Token(Token = "0x400848D")]
|
||||
internal int _lengthOffset;
|
||||
|
||||
// Token: 0x0400848E RID: 33934
|
||||
[FieldOffset(Offset = "0x10C")]
|
||||
[Token(Token = "0x400848E")]
|
||||
internal int lit_bufsize;
|
||||
|
||||
// Token: 0x0400848F RID: 33935
|
||||
[FieldOffset(Offset = "0x110")]
|
||||
[Token(Token = "0x400848F")]
|
||||
internal int last_lit;
|
||||
|
||||
// Token: 0x04008490 RID: 33936
|
||||
[FieldOffset(Offset = "0x114")]
|
||||
[Token(Token = "0x4008490")]
|
||||
internal int _distanceOffset;
|
||||
|
||||
// Token: 0x04008491 RID: 33937
|
||||
[FieldOffset(Offset = "0x118")]
|
||||
[Token(Token = "0x4008491")]
|
||||
internal int opt_len;
|
||||
|
||||
// Token: 0x04008492 RID: 33938
|
||||
[FieldOffset(Offset = "0x11C")]
|
||||
[Token(Token = "0x4008492")]
|
||||
internal int static_len;
|
||||
|
||||
// Token: 0x04008493 RID: 33939
|
||||
[FieldOffset(Offset = "0x120")]
|
||||
[Token(Token = "0x4008493")]
|
||||
internal int matches;
|
||||
|
||||
// Token: 0x04008494 RID: 33940
|
||||
[FieldOffset(Offset = "0x124")]
|
||||
[Token(Token = "0x4008494")]
|
||||
internal int last_eob_len;
|
||||
|
||||
// Token: 0x04008495 RID: 33941
|
||||
[FieldOffset(Offset = "0x128")]
|
||||
[Token(Token = "0x4008495")]
|
||||
internal short bi_buf;
|
||||
|
||||
// Token: 0x04008496 RID: 33942
|
||||
[FieldOffset(Offset = "0x12C")]
|
||||
[Token(Token = "0x4008496")]
|
||||
internal int bi_valid;
|
||||
|
||||
// Token: 0x04008497 RID: 33943
|
||||
[FieldOffset(Offset = "0x130")]
|
||||
[Token(Token = "0x4008497")]
|
||||
private bool Rfc1950BytesEmitted;
|
||||
|
||||
// Token: 0x04008498 RID: 33944
|
||||
[FieldOffset(Offset = "0x131")]
|
||||
[Token(Token = "0x4008498")]
|
||||
private bool _WantRfc1950HeaderBytes;
|
||||
|
||||
// Token: 0x02002083 RID: 8323
|
||||
[Token(Token = "0x2002083")]
|
||||
internal sealed class CompressFunc : MulticastDelegate
|
||||
{
|
||||
// Token: 0x0600D11C RID: 53532 RVA: 0x002F99C0 File Offset: 0x002F7BC0
|
||||
[Token(Token = "0x600D11C")]
|
||||
[Address(RVA = "0x4AF020", Offset = "0x4AE020", VA = "0x1804AF020")]
|
||||
public CompressFunc(object @object, IntPtr method)
|
||||
{
|
||||
this.method = method;
|
||||
this.m_target = @object;
|
||||
}
|
||||
|
||||
// Token: 0x0600D11D RID: 53533 RVA: 0x002F99DC File Offset: 0x002F7BDC
|
||||
[Token(Token = "0x600D11D")]
|
||||
[Address(RVA = "0x569240", Offset = "0x568240", VA = "0x180569240", 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: 0x0600D11E RID: 53534 RVA: 0x002F9A60 File Offset: 0x002F7C60
|
||||
[Token(Token = "0x600D11E")]
|
||||
[Address(RVA = "0x2404CA0", Offset = "0x2403CA0", VA = "0x182404CA0", Slot = "14")]
|
||||
public IAsyncResult BeginInvoke(FlushType flush, AsyncCallback callback, object @object)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D11F RID: 53535 RVA: 0x002F9A70 File Offset: 0x002F7C70
|
||||
[Token(Token = "0x600D11F")]
|
||||
[Address(RVA = "0x4AEA90", Offset = "0x4ADA90", VA = "0x1804AEA90", Slot = "15")]
|
||||
public BlockState EndInvoke(IAsyncResult result)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x02002084 RID: 8324
|
||||
[Token(Token = "0x2002084")]
|
||||
internal class Config
|
||||
{
|
||||
// Token: 0x0600D120 RID: 53536 RVA: 0x002F9A84 File Offset: 0x002F7C84
|
||||
[Token(Token = "0x600D120")]
|
||||
[Address(RVA = "0x4E0F80", Offset = "0x4DFF80", VA = "0x1804E0F80")]
|
||||
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: 0x0600D121 RID: 53537 RVA: 0x002F9ABC File Offset: 0x002F7CBC
|
||||
[Token(Token = "0x600D121")]
|
||||
[Address(RVA = "0x2404D20", Offset = "0x2403D20", VA = "0x182404D20")]
|
||||
public static DeflateManager.Config Lookup(CompressionLevel level)
|
||||
{
|
||||
return DeflateManager.Config.Table[(int)level];
|
||||
}
|
||||
|
||||
// Token: 0x0600D122 RID: 53538 RVA: 0x002F9ADC File Offset: 0x002F7CDC
|
||||
[Token(Token = "0x600D122")]
|
||||
[Address(RVA = "0x2404DB0", Offset = "0x2403DB0", VA = "0x182404DB0")]
|
||||
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: 0x04008499 RID: 33945
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008499")]
|
||||
internal int GoodLength;
|
||||
|
||||
// Token: 0x0400849A RID: 33946
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x400849A")]
|
||||
internal int MaxLazy;
|
||||
|
||||
// Token: 0x0400849B RID: 33947
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400849B")]
|
||||
internal int NiceLength;
|
||||
|
||||
// Token: 0x0400849C RID: 33948
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x400849C")]
|
||||
internal int MaxChainLength;
|
||||
|
||||
// Token: 0x0400849D RID: 33949
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400849D")]
|
||||
internal DeflateFlavor Flavor;
|
||||
|
||||
// Token: 0x0400849E RID: 33950
|
||||
[Token(Token = "0x400849E")]
|
||||
private static readonly DeflateManager.Config[] Table;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,518 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002085 RID: 8325
|
||||
[Token(Token = "0x2002085")]
|
||||
public class DeflateStream : Stream
|
||||
{
|
||||
// Token: 0x0600D123 RID: 53539 RVA: 0x002F9D60 File Offset: 0x002F7F60
|
||||
[Token(Token = "0x600D123")]
|
||||
[Address(RVA = "0x24103A0", Offset = "0x240F3A0", VA = "0x1824103A0")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D124 RID: 53540 RVA: 0x002F9D70 File Offset: 0x002F7F70
|
||||
[Token(Token = "0x600D124")]
|
||||
[Address(RVA = "0x24103D0", Offset = "0x240F3D0", VA = "0x1824103D0")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D125 RID: 53541 RVA: 0x002F9D80 File Offset: 0x002F7F80
|
||||
[Token(Token = "0x600D125")]
|
||||
[Address(RVA = "0x24103F0", Offset = "0x240F3F0", VA = "0x1824103F0")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D126 RID: 53542 RVA: 0x002F9D90 File Offset: 0x002F7F90
|
||||
[Token(Token = "0x600D126")]
|
||||
[Address(RVA = "0x24104F0", Offset = "0x240F4F0", VA = "0x1824104F0")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
|
||||
{
|
||||
this._innerStream = stream;
|
||||
ZlibBaseStream zlibBaseStream;
|
||||
this._baseStream = zlibBaseStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600D127 RID: 53543 RVA: 0x002F9DB4 File Offset: 0x002F7FB4
|
||||
[Token(Token = "0x600D127")]
|
||||
[Address(RVA = "0x2410420", Offset = "0x240F420", VA = "0x182410420")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen, int windowBits)
|
||||
{
|
||||
this._innerStream = stream;
|
||||
ZlibBaseStream zlibBaseStream;
|
||||
this._baseStream = zlibBaseStream;
|
||||
}
|
||||
|
||||
// Token: 0x1700213E RID: 8510
|
||||
// (get) Token: 0x0600D128 RID: 53544 RVA: 0x002F9DD8 File Offset: 0x002F7FD8
|
||||
// (set) Token: 0x0600D129 RID: 53545 RVA: 0x002F9DF8 File Offset: 0x002F7FF8
|
||||
[Token(Token = "0x1700213E")]
|
||||
public virtual FlushType FlushMode
|
||||
{
|
||||
[Token(Token = "0x600D128")]
|
||||
[Address(RVA = "0x2410700", Offset = "0x240F700", VA = "0x182410700", Slot = "31")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._flushMode;
|
||||
}
|
||||
[Token(Token = "0x600D129")]
|
||||
[Address(RVA = "0x2410940", Offset = "0x240F940", VA = "0x182410940", Slot = "32")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D129)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700213F RID: 8511
|
||||
// (get) Token: 0x0600D12A RID: 53546 RVA: 0x002F9E28 File Offset: 0x002F8028
|
||||
// (set) Token: 0x0600D12B RID: 53547 RVA: 0x002F9E48 File Offset: 0x002F8048
|
||||
[Token(Token = "0x1700213F")]
|
||||
public int BufferSize
|
||||
{
|
||||
[Token(Token = "0x600D12A")]
|
||||
[Address(RVA = "0x24105C0", Offset = "0x240F5C0", VA = "0x1824105C0")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._bufferSize;
|
||||
}
|
||||
[Token(Token = "0x600D12B")]
|
||||
[Address(RVA = "0x24107F0", Offset = "0x240F7F0", VA = "0x1824107F0")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D12B)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002140 RID: 8512
|
||||
// (get) Token: 0x0600D12C RID: 53548 RVA: 0x002F9E84 File Offset: 0x002F8084
|
||||
// (set) Token: 0x0600D12D RID: 53549 RVA: 0x002F9EA4 File Offset: 0x002F80A4
|
||||
[Token(Token = "0x17002140")]
|
||||
public CompressionStrategy Strategy
|
||||
{
|
||||
[Token(Token = "0x600D12C")]
|
||||
[Address(RVA = "0x2410770", Offset = "0x240F770", VA = "0x182410770")]
|
||||
get
|
||||
{
|
||||
return this._baseStream.Strategy;
|
||||
}
|
||||
[Token(Token = "0x600D12D")]
|
||||
[Address(RVA = "0x2410A10", Offset = "0x240FA10", VA = "0x182410A10")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D12D)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002141 RID: 8513
|
||||
// (get) Token: 0x0600D12E RID: 53550 RVA: 0x002F9ED4 File Offset: 0x002F80D4
|
||||
[Token(Token = "0x17002141")]
|
||||
public virtual long TotalIn
|
||||
{
|
||||
[Token(Token = "0x600D12E")]
|
||||
[Address(RVA = "0x2410790", Offset = "0x240F790", VA = "0x182410790", Slot = "33")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._z.TotalBytesIn;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002142 RID: 8514
|
||||
// (get) Token: 0x0600D12F RID: 53551 RVA: 0x002F9EF8 File Offset: 0x002F80F8
|
||||
[Token(Token = "0x17002142")]
|
||||
public virtual long TotalOut
|
||||
{
|
||||
[Token(Token = "0x600D12F")]
|
||||
[Address(RVA = "0x24107C0", Offset = "0x240F7C0", VA = "0x1824107C0", Slot = "34")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._z.TotalBytesOut;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D130 RID: 53552 RVA: 0x002F9F1C File Offset: 0x002F811C
|
||||
[Token(Token = "0x600D130")]
|
||||
[Address(RVA = "0x24100B0", Offset = "0x240F0B0", VA = "0x1824100B0", 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: 0x17002143 RID: 8515
|
||||
// (get) Token: 0x0600D131 RID: 53553 RVA: 0x002F9F5C File Offset: 0x002F815C
|
||||
[Token(Token = "0x17002143")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D131")]
|
||||
[Address(RVA = "0x24105E0", Offset = "0x240F5E0", VA = "0x1824105E0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D131)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002144 RID: 8516
|
||||
// (get) Token: 0x0600D132 RID: 53554 RVA: 0x002F9F90 File Offset: 0x002F8190
|
||||
[Token(Token = "0x17002144")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D132")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002145 RID: 8517
|
||||
// (get) Token: 0x0600D133 RID: 53555 RVA: 0x002F9FA0 File Offset: 0x002F81A0
|
||||
[Token(Token = "0x17002145")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D133")]
|
||||
[Address(RVA = "0x2410670", Offset = "0x240F670", VA = "0x182410670", Slot = "9")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D133)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D134 RID: 53556 RVA: 0x002F9FD4 File Offset: 0x002F81D4
|
||||
[Token(Token = "0x600D134")]
|
||||
[Address(RVA = "0x2410150", Offset = "0x240F150", VA = "0x182410150", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D134)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002146 RID: 8518
|
||||
// (get) Token: 0x0600D135 RID: 53557 RVA: 0x002FA000 File Offset: 0x002F8200
|
||||
[Token(Token = "0x17002146")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D135")]
|
||||
[Address(RVA = "0x2410720", Offset = "0x240F720", VA = "0x182410720", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D135)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002147 RID: 8519
|
||||
// (get) Token: 0x0600D136 RID: 53558 RVA: 0x002FA014 File Offset: 0x002F8214
|
||||
// (set) Token: 0x0600D137 RID: 53559 RVA: 0x002FA058 File Offset: 0x002F8258
|
||||
[Token(Token = "0x17002147")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D136")]
|
||||
[Address(RVA = "0x10A96B0", Offset = "0x10A86B0", VA = "0x1810A96B0", 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 = "0x600D137")]
|
||||
[Address(RVA = "0x24109C0", Offset = "0x240F9C0", VA = "0x1824109C0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D137)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D138 RID: 53560 RVA: 0x002FA06C File Offset: 0x002F826C
|
||||
[Token(Token = "0x600D138")]
|
||||
[Address(RVA = "0x24101D0", Offset = "0x240F1D0", VA = "0x1824101D0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D138)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D139 RID: 53561 RVA: 0x002FA09C File Offset: 0x002F829C
|
||||
[Token(Token = "0x600D139")]
|
||||
[Address(RVA = "0x2410290", Offset = "0x240F290", VA = "0x182410290", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D139)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D13A RID: 53562 RVA: 0x002FA0B0 File Offset: 0x002F82B0
|
||||
[Token(Token = "0x600D13A")]
|
||||
[Address(RVA = "0x4B7CF0", Offset = "0x4B6CF0", VA = "0x1804B7CF0", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
((IDisposable)this._baseStream).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600D13B RID: 53563 RVA: 0x002FA0D0 File Offset: 0x002F82D0
|
||||
[Token(Token = "0x600D13B")]
|
||||
[Address(RVA = "0x24102E0", Offset = "0x240F2E0", VA = "0x1824102E0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D13B)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400849F RID: 33951
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400849F")]
|
||||
internal ZlibBaseStream _baseStream;
|
||||
|
||||
// Token: 0x040084A0 RID: 33952
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40084A0")]
|
||||
internal Stream _innerStream;
|
||||
|
||||
// Token: 0x040084A1 RID: 33953
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40084A1")]
|
||||
private bool _disposed;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200208F RID: 8335
|
||||
[Token(Token = "0x200208F")]
|
||||
public enum FlushType
|
||||
{
|
||||
// Token: 0x04008528 RID: 34088
|
||||
[Token(Token = "0x4008528")]
|
||||
None,
|
||||
// Token: 0x04008529 RID: 34089
|
||||
[Token(Token = "0x4008529")]
|
||||
Partial,
|
||||
// Token: 0x0400852A RID: 34090
|
||||
[Token(Token = "0x400852A")]
|
||||
Sync,
|
||||
// Token: 0x0400852B RID: 34091
|
||||
[Token(Token = "0x400852B")]
|
||||
Full,
|
||||
// Token: 0x0400852C RID: 34092
|
||||
[Token(Token = "0x400852C")]
|
||||
Finish
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,655 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using BestHTTP.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002086 RID: 8326
|
||||
[Token(Token = "0x2002086")]
|
||||
public class GZipStream : Stream
|
||||
{
|
||||
// Token: 0x17002148 RID: 8520
|
||||
// (get) Token: 0x0600D13C RID: 53564 RVA: 0x002FA100 File Offset: 0x002F8300
|
||||
// (set) Token: 0x0600D13D RID: 53565 RVA: 0x002FA114 File Offset: 0x002F8314
|
||||
[Token(Token = "0x17002148")]
|
||||
public string Comment
|
||||
{
|
||||
[Token(Token = "0x600D13C")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710")]
|
||||
get
|
||||
{
|
||||
return this._Comment;
|
||||
}
|
||||
[Token(Token = "0x600D13D")]
|
||||
[Address(RVA = "0x2411A30", Offset = "0x2410A30", VA = "0x182411A30")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D13D)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002149 RID: 8521
|
||||
// (get) Token: 0x0600D13E RID: 53566 RVA: 0x002FA13C File Offset: 0x002F833C
|
||||
// (set) Token: 0x0600D13F RID: 53567 RVA: 0x002FA150 File Offset: 0x002F8350
|
||||
[Token(Token = "0x17002149")]
|
||||
public string FileName
|
||||
{
|
||||
[Token(Token = "0x600D13E")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
|
||||
get
|
||||
{
|
||||
return this._FileName;
|
||||
}
|
||||
[Token(Token = "0x600D13F")]
|
||||
[Address(RVA = "0x2411AB0", Offset = "0x2410AB0", VA = "0x182411AB0")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D13F)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700214A RID: 8522
|
||||
// (get) Token: 0x0600D140 RID: 53568 RVA: 0x002FA1EC File Offset: 0x002F83EC
|
||||
[Token(Token = "0x1700214A")]
|
||||
public int Crc32
|
||||
{
|
||||
[Token(Token = "0x600D140")]
|
||||
[Address(RVA = "0x66A4F0", Offset = "0x6694F0", VA = "0x18066A4F0")]
|
||||
get
|
||||
{
|
||||
return this._Crc32;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D141 RID: 53569 RVA: 0x002FA200 File Offset: 0x002F8400
|
||||
[Token(Token = "0x600D141")]
|
||||
[Address(RVA = "0x2411580", Offset = "0x2410580", VA = "0x182411580")]
|
||||
public GZipStream(Stream stream, CompressionMode mode)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D142 RID: 53570 RVA: 0x002FA210 File Offset: 0x002F8410
|
||||
[Token(Token = "0x600D142")]
|
||||
[Address(RVA = "0x2411680", Offset = "0x2410680", VA = "0x182411680")]
|
||||
public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D143 RID: 53571 RVA: 0x002FA220 File Offset: 0x002F8420
|
||||
[Token(Token = "0x600D143")]
|
||||
[Address(RVA = "0x24116A0", Offset = "0x24106A0", VA = "0x1824116A0")]
|
||||
public GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D144 RID: 53572 RVA: 0x002FA230 File Offset: 0x002F8430
|
||||
[Token(Token = "0x600D144")]
|
||||
[Address(RVA = "0x24115B0", Offset = "0x24105B0", VA = "0x1824115B0")]
|
||||
public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
|
||||
{
|
||||
ZlibBaseStream zlibBaseStream;
|
||||
this._baseStream = zlibBaseStream;
|
||||
}
|
||||
|
||||
// Token: 0x1700214B RID: 8523
|
||||
// (get) Token: 0x0600D145 RID: 53573 RVA: 0x002FA24C File Offset: 0x002F844C
|
||||
// (set) Token: 0x0600D146 RID: 53574 RVA: 0x002FA26C File Offset: 0x002F846C
|
||||
[Token(Token = "0x1700214B")]
|
||||
public virtual FlushType FlushMode
|
||||
{
|
||||
[Token(Token = "0x600D145")]
|
||||
[Address(RVA = "0x2411810", Offset = "0x2410810", VA = "0x182411810", Slot = "31")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._flushMode;
|
||||
}
|
||||
[Token(Token = "0x600D146")]
|
||||
[Address(RVA = "0x2411C20", Offset = "0x2410C20", VA = "0x182411C20", Slot = "32")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D146)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700214C RID: 8524
|
||||
// (get) Token: 0x0600D147 RID: 53575 RVA: 0x002FA29C File Offset: 0x002F849C
|
||||
// (set) Token: 0x0600D148 RID: 53576 RVA: 0x002FA2BC File Offset: 0x002F84BC
|
||||
[Token(Token = "0x1700214C")]
|
||||
public int BufferSize
|
||||
{
|
||||
[Token(Token = "0x600D147")]
|
||||
[Address(RVA = "0x24116D0", Offset = "0x24106D0", VA = "0x1824116D0")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._bufferSize;
|
||||
}
|
||||
[Token(Token = "0x600D148")]
|
||||
[Address(RVA = "0x24118E0", Offset = "0x24108E0", VA = "0x1824118E0")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D148)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700214D RID: 8525
|
||||
// (get) Token: 0x0600D149 RID: 53577 RVA: 0x002FA2F8 File Offset: 0x002F84F8
|
||||
[Token(Token = "0x1700214D")]
|
||||
public virtual long TotalIn
|
||||
{
|
||||
[Token(Token = "0x600D149")]
|
||||
[Address(RVA = "0x2411880", Offset = "0x2410880", VA = "0x182411880", Slot = "33")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._z.TotalBytesIn;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700214E RID: 8526
|
||||
// (get) Token: 0x0600D14A RID: 53578 RVA: 0x002FA31C File Offset: 0x002F851C
|
||||
[Token(Token = "0x1700214E")]
|
||||
public virtual long TotalOut
|
||||
{
|
||||
[Token(Token = "0x600D14A")]
|
||||
[Address(RVA = "0x24118B0", Offset = "0x24108B0", VA = "0x1824118B0", Slot = "34")]
|
||||
get
|
||||
{
|
||||
return this._baseStream._z.TotalBytesOut;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D14B RID: 53579 RVA: 0x002FA340 File Offset: 0x002F8540
|
||||
[Token(Token = "0x600D14B")]
|
||||
[Address(RVA = "0x2410A90", Offset = "0x240FA90", VA = "0x182410A90", 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;
|
||||
int crc = this._baseStream.Crc32;
|
||||
this._Crc32 = crc;
|
||||
}
|
||||
}
|
||||
this._disposed = true;
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
if (num == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700214F RID: 8527
|
||||
// (get) Token: 0x0600D14C RID: 53580 RVA: 0x002FA39C File Offset: 0x002F859C
|
||||
[Token(Token = "0x1700214F")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D14C")]
|
||||
[Address(RVA = "0x24116F0", Offset = "0x24106F0", VA = "0x1824116F0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D14C)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002150 RID: 8528
|
||||
// (get) Token: 0x0600D14D RID: 53581 RVA: 0x002FA3D0 File Offset: 0x002F85D0
|
||||
[Token(Token = "0x17002150")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D14D")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002151 RID: 8529
|
||||
// (get) Token: 0x0600D14E RID: 53582 RVA: 0x002FA3E0 File Offset: 0x002F85E0
|
||||
[Token(Token = "0x17002151")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D14E")]
|
||||
[Address(RVA = "0x2411780", Offset = "0x2410780", VA = "0x182411780", Slot = "9")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D14E)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D14F RID: 53583 RVA: 0x002FA414 File Offset: 0x002F8614
|
||||
[Token(Token = "0x600D14F")]
|
||||
[Address(RVA = "0x2411020", Offset = "0x2410020", VA = "0x182411020", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D14F)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002152 RID: 8530
|
||||
// (get) Token: 0x0600D150 RID: 53584 RVA: 0x002FA440 File Offset: 0x002F8640
|
||||
[Token(Token = "0x17002152")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D150")]
|
||||
[Address(RVA = "0x2411830", Offset = "0x2410830", VA = "0x182411830", Slot = "10")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D150)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002153 RID: 8531
|
||||
// (get) Token: 0x0600D151 RID: 53585 RVA: 0x002FA454 File Offset: 0x002F8654
|
||||
// (set) Token: 0x0600D152 RID: 53586 RVA: 0x002FA4A0 File Offset: 0x002F86A0
|
||||
[Token(Token = "0x17002153")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D151")]
|
||||
[Address(RVA = "0x10AA480", Offset = "0x10A9480", VA = "0x1810AA480", 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 = "0x600D152")]
|
||||
[Address(RVA = "0x2411CA0", Offset = "0x2410CA0", VA = "0x182411CA0", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D152)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D153 RID: 53587 RVA: 0x002FA4B4 File Offset: 0x002F86B4
|
||||
[Token(Token = "0x600D153")]
|
||||
[Address(RVA = "0x24110A0", Offset = "0x24100A0", VA = "0x1824110A0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D153)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D154 RID: 53588 RVA: 0x002FA5B0 File Offset: 0x002F87B0
|
||||
[Token(Token = "0x600D154")]
|
||||
[Address(RVA = "0x2411340", Offset = "0x2410340", VA = "0x182411340", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D154)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D155 RID: 53589 RVA: 0x002FA5C4 File Offset: 0x002F87C4
|
||||
[Token(Token = "0x600D155")]
|
||||
[Address(RVA = "0x2411390", Offset = "0x2410390", VA = "0x182411390", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
((IDisposable)this._baseStream).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600D156 RID: 53590 RVA: 0x002FA5E4 File Offset: 0x002F87E4
|
||||
[Token(Token = "0x600D156")]
|
||||
[Address(RVA = "0x24113C0", Offset = "0x24103C0", VA = "0x1824113C0", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D156)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D157 RID: 53591 RVA: 0x002FA640 File Offset: 0x002F8840
|
||||
[Token(Token = "0x600D157")]
|
||||
[Address(RVA = "0x2410B50", Offset = "0x240FB50", VA = "0x182410B50")]
|
||||
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: 0x040084A2 RID: 33954
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40084A2")]
|
||||
public DateTime? LastModified;
|
||||
|
||||
// Token: 0x040084A3 RID: 33955
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40084A3")]
|
||||
private int _headerByteCount;
|
||||
|
||||
// Token: 0x040084A4 RID: 33956
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40084A4")]
|
||||
internal ZlibBaseStream _baseStream;
|
||||
|
||||
// Token: 0x040084A5 RID: 33957
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40084A5")]
|
||||
private bool _disposed;
|
||||
|
||||
// Token: 0x040084A6 RID: 33958
|
||||
[FieldOffset(Offset = "0x49")]
|
||||
[Token(Token = "0x40084A6")]
|
||||
private bool _firstReadDone;
|
||||
|
||||
// Token: 0x040084A7 RID: 33959
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40084A7")]
|
||||
private string _FileName;
|
||||
|
||||
// Token: 0x040084A8 RID: 33960
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40084A8")]
|
||||
private string _Comment;
|
||||
|
||||
// Token: 0x040084A9 RID: 33961
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x40084A9")]
|
||||
private int _Crc32;
|
||||
|
||||
// Token: 0x040084AA RID: 33962
|
||||
[Token(Token = "0x40084AA")]
|
||||
internal static readonly DateTime _unixEpoch = 0;
|
||||
|
||||
// Token: 0x040084AB RID: 33963
|
||||
[Token(Token = "0x40084AB")]
|
||||
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: 0x02002087 RID: 8327
|
||||
[Token(Token = "0x2002087")]
|
||||
internal sealed class InfTree
|
||||
{
|
||||
// Token: 0x0600D159 RID: 53593 RVA: 0x002FA754 File Offset: 0x002F8954
|
||||
[Token(Token = "0x600D159")]
|
||||
[Address(RVA = "0x2416610", Offset = "0x2415610", VA = "0x182416610")]
|
||||
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: 0x0600D15A RID: 53594 RVA: 0x002FAA70 File Offset: 0x002F8C70
|
||||
[Token(Token = "0x600D15A")]
|
||||
[Address(RVA = "0x24171F0", Offset = "0x24161F0", VA = "0x1824171F0")]
|
||||
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: 0x0600D15B RID: 53595 RVA: 0x002FAAC4 File Offset: 0x002F8CC4
|
||||
[Token(Token = "0x600D15B")]
|
||||
[Address(RVA = "0x2417340", Offset = "0x2416340", VA = "0x182417340")]
|
||||
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: 0x0600D15C RID: 53596 RVA: 0x002FAB64 File Offset: 0x002F8D64
|
||||
[Token(Token = "0x600D15C")]
|
||||
[Address(RVA = "0x2417650", Offset = "0x2416650", VA = "0x182417650")]
|
||||
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: 0x0600D15D RID: 53597 RVA: 0x002FABA0 File Offset: 0x002F8DA0
|
||||
[Token(Token = "0x600D15D")]
|
||||
[Address(RVA = "0x24177E0", Offset = "0x24167E0", VA = "0x1824177E0")]
|
||||
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: 0x0600D15E RID: 53598 RVA: 0x002FACC0 File Offset: 0x002F8EC0
|
||||
[Token(Token = "0x600D15E")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public InfTree()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D15F RID: 53599 RVA: 0x002FACD4 File Offset: 0x002F8ED4
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D15F")]
|
||||
[Address(RVA = "0x2416490", Offset = "0x2415490", VA = "0x182416490")]
|
||||
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: 0x040084AC RID: 33964
|
||||
[Token(Token = "0x40084AC")]
|
||||
private const int MANY = 1440;
|
||||
|
||||
// Token: 0x040084AD RID: 33965
|
||||
[Token(Token = "0x40084AD")]
|
||||
private const int Z_OK = 0;
|
||||
|
||||
// Token: 0x040084AE RID: 33966
|
||||
[Token(Token = "0x40084AE")]
|
||||
private const int Z_STREAM_END = 1;
|
||||
|
||||
// Token: 0x040084AF RID: 33967
|
||||
[Token(Token = "0x40084AF")]
|
||||
private const int Z_NEED_DICT = 2;
|
||||
|
||||
// Token: 0x040084B0 RID: 33968
|
||||
[Token(Token = "0x40084B0")]
|
||||
private const int Z_ERRNO = -1;
|
||||
|
||||
// Token: 0x040084B1 RID: 33969
|
||||
[Token(Token = "0x40084B1")]
|
||||
private const int Z_STREAM_ERROR = -2;
|
||||
|
||||
// Token: 0x040084B2 RID: 33970
|
||||
[Token(Token = "0x40084B2")]
|
||||
private const int Z_DATA_ERROR = -3;
|
||||
|
||||
// Token: 0x040084B3 RID: 33971
|
||||
[Token(Token = "0x40084B3")]
|
||||
private const int Z_MEM_ERROR = -4;
|
||||
|
||||
// Token: 0x040084B4 RID: 33972
|
||||
[Token(Token = "0x40084B4")]
|
||||
private const int Z_BUF_ERROR = -5;
|
||||
|
||||
// Token: 0x040084B5 RID: 33973
|
||||
[Token(Token = "0x40084B5")]
|
||||
private const int Z_VERSION_ERROR = -6;
|
||||
|
||||
// Token: 0x040084B6 RID: 33974
|
||||
[Token(Token = "0x40084B6")]
|
||||
internal const int fixed_bl = 9;
|
||||
|
||||
// Token: 0x040084B7 RID: 33975
|
||||
[Token(Token = "0x40084B7")]
|
||||
internal const int fixed_bd = 5;
|
||||
|
||||
// Token: 0x040084B8 RID: 33976
|
||||
[Token(Token = "0x40084B8")]
|
||||
internal static readonly int[] fixed_tl;
|
||||
|
||||
// Token: 0x040084B9 RID: 33977
|
||||
[Token(Token = "0x40084B9")]
|
||||
internal static readonly int[] fixed_td;
|
||||
|
||||
// Token: 0x040084BA RID: 33978
|
||||
[Token(Token = "0x40084BA")]
|
||||
internal static readonly int[] cplens;
|
||||
|
||||
// Token: 0x040084BB RID: 33979
|
||||
[Token(Token = "0x40084BB")]
|
||||
internal static readonly int[] cplext;
|
||||
|
||||
// Token: 0x040084BC RID: 33980
|
||||
[Token(Token = "0x40084BC")]
|
||||
internal static readonly int[] cpdist;
|
||||
|
||||
// Token: 0x040084BD RID: 33981
|
||||
[Token(Token = "0x40084BD")]
|
||||
internal static readonly int[] cpdext;
|
||||
|
||||
// Token: 0x040084BE RID: 33982
|
||||
[Token(Token = "0x40084BE")]
|
||||
internal const int BMAX = 15;
|
||||
|
||||
// Token: 0x040084BF RID: 33983
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40084BF")]
|
||||
internal int[] hn;
|
||||
|
||||
// Token: 0x040084C0 RID: 33984
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40084C0")]
|
||||
internal int[] v;
|
||||
|
||||
// Token: 0x040084C1 RID: 33985
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40084C1")]
|
||||
internal int[] c;
|
||||
|
||||
// Token: 0x040084C2 RID: 33986
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40084C2")]
|
||||
internal int[] r;
|
||||
|
||||
// Token: 0x040084C3 RID: 33987
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40084C3")]
|
||||
internal int[] u;
|
||||
|
||||
// Token: 0x040084C4 RID: 33988
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40084C4")]
|
||||
internal int[] x;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,352 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using BestHTTP.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002088 RID: 8328
|
||||
[Token(Token = "0x2002088")]
|
||||
internal sealed class InflateBlocks
|
||||
{
|
||||
// Token: 0x0600D160 RID: 53600 RVA: 0x002FAD80 File Offset: 0x002F8F80
|
||||
[Token(Token = "0x600D160")]
|
||||
[Address(RVA = "0x24193C0", Offset = "0x24183C0", VA = "0x1824193C0")]
|
||||
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: 0x0600D161 RID: 53601 RVA: 0x002FAE14 File Offset: 0x002F9014
|
||||
[Token(Token = "0x600D161")]
|
||||
[Address(RVA = "0x2419250", Offset = "0x2418250", VA = "0x182419250")]
|
||||
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: 0x0600D162 RID: 53602 RVA: 0x002FAE68 File Offset: 0x002F9068
|
||||
[Token(Token = "0x600D162")]
|
||||
[Address(RVA = "0x2417BD0", Offset = "0x2416BD0", VA = "0x182417BD0")]
|
||||
internal int Process(int r)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D162)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D163 RID: 53603 RVA: 0x002FBA2C File Offset: 0x002F9C2C
|
||||
[Token(Token = "0x600D163")]
|
||||
[Address(RVA = "0x2417B50", Offset = "0x2416B50", VA = "0x182417B50")]
|
||||
internal void Free()
|
||||
{
|
||||
uint num = this.Reset();
|
||||
VariableSizedBufferPool.Release(this.window);
|
||||
int num2 = 0;
|
||||
this.window = num2;
|
||||
this.hufts = num2;
|
||||
}
|
||||
|
||||
// Token: 0x0600D164 RID: 53604 RVA: 0x002FBA5C File Offset: 0x002F9C5C
|
||||
[Token(Token = "0x600D164")]
|
||||
[Address(RVA = "0x2419310", Offset = "0x2418310", VA = "0x182419310")]
|
||||
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: 0x0600D165 RID: 53605 RVA: 0x002FBA8C File Offset: 0x002F9C8C
|
||||
[Token(Token = "0x600D165")]
|
||||
[Address(RVA = "0x4EAF20", Offset = "0x4E9F20", VA = "0x1804EAF20")]
|
||||
internal int SyncPoint()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D165)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D166 RID: 53606 RVA: 0x002FBAA4 File Offset: 0x002F9CA4
|
||||
[Token(Token = "0x600D166")]
|
||||
[Address(RVA = "0x24179A0", Offset = "0x24169A0", VA = "0x1824179A0")]
|
||||
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: 0x0600D167 RID: 53607 RVA: 0x002FBBD8 File Offset: 0x002F9DD8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D167")]
|
||||
[Address(RVA = "0x2419360", Offset = "0x2418360", VA = "0x182419360")]
|
||||
static InflateBlocks()
|
||||
{
|
||||
int[] array = new int[19];
|
||||
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.1FDC8DB567F5AAA7068D0D2A601CD71657CBDF38).FieldHandle);
|
||||
InflateBlocks.border = array;
|
||||
}
|
||||
|
||||
// Token: 0x040084C5 RID: 33989
|
||||
[Token(Token = "0x40084C5")]
|
||||
private const int MANY = 1440;
|
||||
|
||||
// Token: 0x040084C6 RID: 33990
|
||||
[Token(Token = "0x40084C6")]
|
||||
internal static readonly int[] border;
|
||||
|
||||
// Token: 0x040084C7 RID: 33991
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40084C7")]
|
||||
private InflateBlocks.InflateBlockMode mode;
|
||||
|
||||
// Token: 0x040084C8 RID: 33992
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40084C8")]
|
||||
internal int left;
|
||||
|
||||
// Token: 0x040084C9 RID: 33993
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40084C9")]
|
||||
internal int table;
|
||||
|
||||
// Token: 0x040084CA RID: 33994
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x40084CA")]
|
||||
internal int index;
|
||||
|
||||
// Token: 0x040084CB RID: 33995
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40084CB")]
|
||||
internal int[] blens;
|
||||
|
||||
// Token: 0x040084CC RID: 33996
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40084CC")]
|
||||
internal int[] bb;
|
||||
|
||||
// Token: 0x040084CD RID: 33997
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40084CD")]
|
||||
internal int[] tb;
|
||||
|
||||
// Token: 0x040084CE RID: 33998
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40084CE")]
|
||||
internal InflateCodes codes;
|
||||
|
||||
// Token: 0x040084CF RID: 33999
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40084CF")]
|
||||
internal int last;
|
||||
|
||||
// Token: 0x040084D0 RID: 34000
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40084D0")]
|
||||
internal ZlibCodec _codec;
|
||||
|
||||
// Token: 0x040084D1 RID: 34001
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40084D1")]
|
||||
internal int bitk;
|
||||
|
||||
// Token: 0x040084D2 RID: 34002
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x40084D2")]
|
||||
internal int bitb;
|
||||
|
||||
// Token: 0x040084D3 RID: 34003
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40084D3")]
|
||||
internal int[] hufts;
|
||||
|
||||
// Token: 0x040084D4 RID: 34004
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x40084D4")]
|
||||
internal byte[] window;
|
||||
|
||||
// Token: 0x040084D5 RID: 34005
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x40084D5")]
|
||||
internal int end;
|
||||
|
||||
// Token: 0x040084D6 RID: 34006
|
||||
[FieldOffset(Offset = "0x6C")]
|
||||
[Token(Token = "0x40084D6")]
|
||||
internal int readAt;
|
||||
|
||||
// Token: 0x040084D7 RID: 34007
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x40084D7")]
|
||||
internal int writeAt;
|
||||
|
||||
// Token: 0x040084D8 RID: 34008
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x40084D8")]
|
||||
internal object checkfn;
|
||||
|
||||
// Token: 0x040084D9 RID: 34009
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x40084D9")]
|
||||
internal uint check;
|
||||
|
||||
// Token: 0x040084DA RID: 34010
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x40084DA")]
|
||||
internal InfTree inftree;
|
||||
|
||||
// Token: 0x02002089 RID: 8329
|
||||
[Token(Token = "0x2002089")]
|
||||
private enum InflateBlockMode
|
||||
{
|
||||
// Token: 0x040084DC RID: 34012
|
||||
[Token(Token = "0x40084DC")]
|
||||
TYPE,
|
||||
// Token: 0x040084DD RID: 34013
|
||||
[Token(Token = "0x40084DD")]
|
||||
LENS,
|
||||
// Token: 0x040084DE RID: 34014
|
||||
[Token(Token = "0x40084DE")]
|
||||
STORED,
|
||||
// Token: 0x040084DF RID: 34015
|
||||
[Token(Token = "0x40084DF")]
|
||||
TABLE,
|
||||
// Token: 0x040084E0 RID: 34016
|
||||
[Token(Token = "0x40084E0")]
|
||||
BTREE,
|
||||
// Token: 0x040084E1 RID: 34017
|
||||
[Token(Token = "0x40084E1")]
|
||||
DTREE,
|
||||
// Token: 0x040084E2 RID: 34018
|
||||
[Token(Token = "0x40084E2")]
|
||||
CODES,
|
||||
// Token: 0x040084E3 RID: 34019
|
||||
[Token(Token = "0x40084E3")]
|
||||
DRY,
|
||||
// Token: 0x040084E4 RID: 34020
|
||||
[Token(Token = "0x40084E4")]
|
||||
DONE,
|
||||
// Token: 0x040084E5 RID: 34021
|
||||
[Token(Token = "0x40084E5")]
|
||||
BAD
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,431 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200208B RID: 8331
|
||||
[Token(Token = "0x200208B")]
|
||||
internal sealed class InflateCodes
|
||||
{
|
||||
// Token: 0x0600D169 RID: 53609 RVA: 0x002FBC20 File Offset: 0x002F9E20
|
||||
[Token(Token = "0x600D169")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
internal InflateCodes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D16A RID: 53610 RVA: 0x002FBC34 File Offset: 0x002F9E34
|
||||
[Token(Token = "0x600D16A")]
|
||||
[Address(RVA = "0x4EBB60", Offset = "0x4EAB60", VA = "0x1804EBB60")]
|
||||
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: 0x0600D16B RID: 53611 RVA: 0x002FBC7C File Offset: 0x002F9E7C
|
||||
[Token(Token = "0x600D16B")]
|
||||
[Address(RVA = "0x241A0C0", Offset = "0x24190C0", VA = "0x18241A0C0")]
|
||||
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: 0x0600D16C RID: 53612 RVA: 0x002FC058 File Offset: 0x002FA258
|
||||
[Token(Token = "0x600D16C")]
|
||||
[Address(RVA = "0x24194F0", Offset = "0x24184F0", VA = "0x1824194F0")]
|
||||
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: 0x040084E7 RID: 34023
|
||||
[Token(Token = "0x40084E7")]
|
||||
private const int START = 0;
|
||||
|
||||
// Token: 0x040084E8 RID: 34024
|
||||
[Token(Token = "0x40084E8")]
|
||||
private const int LEN = 1;
|
||||
|
||||
// Token: 0x040084E9 RID: 34025
|
||||
[Token(Token = "0x40084E9")]
|
||||
private const int LENEXT = 2;
|
||||
|
||||
// Token: 0x040084EA RID: 34026
|
||||
[Token(Token = "0x40084EA")]
|
||||
private const int DIST = 3;
|
||||
|
||||
// Token: 0x040084EB RID: 34027
|
||||
[Token(Token = "0x40084EB")]
|
||||
private const int DISTEXT = 4;
|
||||
|
||||
// Token: 0x040084EC RID: 34028
|
||||
[Token(Token = "0x40084EC")]
|
||||
private const int COPY = 5;
|
||||
|
||||
// Token: 0x040084ED RID: 34029
|
||||
[Token(Token = "0x40084ED")]
|
||||
private const int LIT = 6;
|
||||
|
||||
// Token: 0x040084EE RID: 34030
|
||||
[Token(Token = "0x40084EE")]
|
||||
private const int WASH = 7;
|
||||
|
||||
// Token: 0x040084EF RID: 34031
|
||||
[Token(Token = "0x40084EF")]
|
||||
private const int END = 8;
|
||||
|
||||
// Token: 0x040084F0 RID: 34032
|
||||
[Token(Token = "0x40084F0")]
|
||||
private const int BADCODE = 9;
|
||||
|
||||
// Token: 0x040084F1 RID: 34033
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40084F1")]
|
||||
internal int mode;
|
||||
|
||||
// Token: 0x040084F2 RID: 34034
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40084F2")]
|
||||
internal int len;
|
||||
|
||||
// Token: 0x040084F3 RID: 34035
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40084F3")]
|
||||
internal int[] tree;
|
||||
|
||||
// Token: 0x040084F4 RID: 34036
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40084F4")]
|
||||
internal int tree_index;
|
||||
|
||||
// Token: 0x040084F5 RID: 34037
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x40084F5")]
|
||||
internal int need;
|
||||
|
||||
// Token: 0x040084F6 RID: 34038
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40084F6")]
|
||||
internal int lit;
|
||||
|
||||
// Token: 0x040084F7 RID: 34039
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x40084F7")]
|
||||
internal int bitsToGet;
|
||||
|
||||
// Token: 0x040084F8 RID: 34040
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40084F8")]
|
||||
internal int dist;
|
||||
|
||||
// Token: 0x040084F9 RID: 34041
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x40084F9")]
|
||||
internal byte lbits;
|
||||
|
||||
// Token: 0x040084FA RID: 34042
|
||||
[FieldOffset(Offset = "0x35")]
|
||||
[Token(Token = "0x40084FA")]
|
||||
internal byte dbits;
|
||||
|
||||
// Token: 0x040084FB RID: 34043
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40084FB")]
|
||||
internal int[] ltree;
|
||||
|
||||
// Token: 0x040084FC RID: 34044
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40084FC")]
|
||||
internal int ltree_index;
|
||||
|
||||
// Token: 0x040084FD RID: 34045
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40084FD")]
|
||||
internal int[] dtree;
|
||||
|
||||
// Token: 0x040084FE RID: 34046
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40084FE")]
|
||||
internal int dtree_index;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,358 @@
|
||||
using System;
|
||||
using BestHTTP.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200208C RID: 8332
|
||||
[Token(Token = "0x200208C")]
|
||||
internal sealed class InflateManager
|
||||
{
|
||||
// Token: 0x17002154 RID: 8532
|
||||
// (get) Token: 0x0600D16D RID: 53613 RVA: 0x002FC0E0 File Offset: 0x002FA2E0
|
||||
// (set) Token: 0x0600D16E RID: 53614 RVA: 0x002FC0F4 File Offset: 0x002FA2F4
|
||||
[Token(Token = "0x17002154")]
|
||||
internal bool HandleRfc1950HeaderBytes
|
||||
{
|
||||
[Token(Token = "0x600D16D")]
|
||||
[Address(RVA = "0x5AB2E0", Offset = "0x5AA2E0", VA = "0x1805AB2E0")]
|
||||
get
|
||||
{
|
||||
return this._handleRfc1950HeaderBytes;
|
||||
}
|
||||
[Token(Token = "0x600D16E")]
|
||||
[Address(RVA = "0x5AB400", Offset = "0x5AA400", VA = "0x1805AB400")]
|
||||
set
|
||||
{
|
||||
this._handleRfc1950HeaderBytes = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D16F RID: 53615 RVA: 0x002FC108 File Offset: 0x002FA308
|
||||
[Token(Token = "0x600D16F")]
|
||||
[Address(RVA = "0x1BCA0F0", Offset = "0x1BC90F0", VA = "0x181BCA0F0")]
|
||||
public InflateManager()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D170 RID: 53616 RVA: 0x002FC124 File Offset: 0x002FA324
|
||||
[Token(Token = "0x600D170")]
|
||||
[Address(RVA = "0x10AFB40", Offset = "0x10AEB40", VA = "0x1810AFB40")]
|
||||
public InflateManager(bool expectRfc1950HeaderBytes)
|
||||
{
|
||||
this._handleRfc1950HeaderBytes = expectRfc1950HeaderBytes;
|
||||
}
|
||||
|
||||
// Token: 0x0600D171 RID: 53617 RVA: 0x002FC148 File Offset: 0x002FA348
|
||||
[Token(Token = "0x600D171")]
|
||||
[Address(RVA = "0x241B980", Offset = "0x241A980", VA = "0x18241B980")]
|
||||
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: 0x0600D172 RID: 53618 RVA: 0x002FC194 File Offset: 0x002FA394
|
||||
[Token(Token = "0x600D172")]
|
||||
[Address(RVA = "0x241AD90", Offset = "0x2419D90", VA = "0x18241AD90")]
|
||||
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: 0x0600D173 RID: 53619 RVA: 0x002FC1E4 File Offset: 0x002FA3E4
|
||||
[Token(Token = "0x600D173")]
|
||||
[Address(RVA = "0x241B760", Offset = "0x241A760", VA = "0x18241B760")]
|
||||
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: 0x0600D174 RID: 53620 RVA: 0x002FC2E0 File Offset: 0x002FA4E0
|
||||
[Token(Token = "0x600D174")]
|
||||
[Address(RVA = "0x241AE30", Offset = "0x2419E30", VA = "0x18241AE30")]
|
||||
internal int Inflate(FlushType flush)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D174)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D175 RID: 53621 RVA: 0x002FC8B8 File Offset: 0x002FAAB8
|
||||
[Token(Token = "0x600D175")]
|
||||
[Address(RVA = "0x241B9D0", Offset = "0x241A9D0", VA = "0x18241B9D0")]
|
||||
internal int SetDictionary(byte[] dictionary)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D175)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D176 RID: 53622 RVA: 0x002FC96C File Offset: 0x002FAB6C
|
||||
[Token(Token = "0x600D176")]
|
||||
[Address(RVA = "0x241BB90", Offset = "0x241AB90", VA = "0x18241BB90")]
|
||||
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: 0x0600D177 RID: 53623 RVA: 0x002FCAA8 File Offset: 0x002FACA8
|
||||
[Token(Token = "0x600D177")]
|
||||
[Address(RVA = "0x241BB60", Offset = "0x241AB60", VA = "0x18241BB60")]
|
||||
internal int SyncPoint(ZlibCodec z)
|
||||
{
|
||||
bool flag = this.blocks.mode == InflateBlocks.InflateBlockMode.LENS;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D178 RID: 53624 RVA: 0x002FCACC File Offset: 0x002FACCC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D178")]
|
||||
[Address(RVA = "0x241BE00", Offset = "0x241AE00", VA = "0x18241BE00")]
|
||||
static InflateManager()
|
||||
{
|
||||
byte[] array = new byte[4];
|
||||
array[0] = (byte)((ulong)255L);
|
||||
array[0] = (byte)((ulong)255L);
|
||||
InflateManager.mark = array;
|
||||
}
|
||||
|
||||
// Token: 0x040084FF RID: 34047
|
||||
[Token(Token = "0x40084FF")]
|
||||
private const int PRESET_DICT = 32;
|
||||
|
||||
// Token: 0x04008500 RID: 34048
|
||||
[Token(Token = "0x4008500")]
|
||||
private const int Z_DEFLATED = 8;
|
||||
|
||||
// Token: 0x04008501 RID: 34049
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008501")]
|
||||
private InflateManager.InflateManagerMode mode;
|
||||
|
||||
// Token: 0x04008502 RID: 34050
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008502")]
|
||||
internal ZlibCodec _codec;
|
||||
|
||||
// Token: 0x04008503 RID: 34051
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008503")]
|
||||
internal int method;
|
||||
|
||||
// Token: 0x04008504 RID: 34052
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4008504")]
|
||||
internal uint computedCheck;
|
||||
|
||||
// Token: 0x04008505 RID: 34053
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008505")]
|
||||
internal uint expectedCheck;
|
||||
|
||||
// Token: 0x04008506 RID: 34054
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4008506")]
|
||||
internal int marker;
|
||||
|
||||
// Token: 0x04008507 RID: 34055
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008507")]
|
||||
private bool _handleRfc1950HeaderBytes = true;
|
||||
|
||||
// Token: 0x04008508 RID: 34056
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4008508")]
|
||||
internal int wbits;
|
||||
|
||||
// Token: 0x04008509 RID: 34057
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008509")]
|
||||
internal InflateBlocks blocks;
|
||||
|
||||
// Token: 0x0400850A RID: 34058
|
||||
[Token(Token = "0x400850A")]
|
||||
private static readonly byte[] mark;
|
||||
|
||||
// Token: 0x0200208D RID: 8333
|
||||
[Token(Token = "0x200208D")]
|
||||
private enum InflateManagerMode
|
||||
{
|
||||
// Token: 0x0400850C RID: 34060
|
||||
[Token(Token = "0x400850C")]
|
||||
METHOD,
|
||||
// Token: 0x0400850D RID: 34061
|
||||
[Token(Token = "0x400850D")]
|
||||
FLAG,
|
||||
// Token: 0x0400850E RID: 34062
|
||||
[Token(Token = "0x400850E")]
|
||||
DICT4,
|
||||
// Token: 0x0400850F RID: 34063
|
||||
[Token(Token = "0x400850F")]
|
||||
DICT3,
|
||||
// Token: 0x04008510 RID: 34064
|
||||
[Token(Token = "0x4008510")]
|
||||
DICT2,
|
||||
// Token: 0x04008511 RID: 34065
|
||||
[Token(Token = "0x4008511")]
|
||||
DICT1,
|
||||
// Token: 0x04008512 RID: 34066
|
||||
[Token(Token = "0x4008512")]
|
||||
DICT0,
|
||||
// Token: 0x04008513 RID: 34067
|
||||
[Token(Token = "0x4008513")]
|
||||
BLOCKS,
|
||||
// Token: 0x04008514 RID: 34068
|
||||
[Token(Token = "0x4008514")]
|
||||
CHECK4,
|
||||
// Token: 0x04008515 RID: 34069
|
||||
[Token(Token = "0x4008515")]
|
||||
CHECK3,
|
||||
// Token: 0x04008516 RID: 34070
|
||||
[Token(Token = "0x4008516")]
|
||||
CHECK2,
|
||||
// Token: 0x04008517 RID: 34071
|
||||
[Token(Token = "0x4008517")]
|
||||
CHECK1,
|
||||
// Token: 0x04008518 RID: 34072
|
||||
[Token(Token = "0x4008518")]
|
||||
DONE,
|
||||
// Token: 0x04008519 RID: 34073
|
||||
[Token(Token = "0x4008519")]
|
||||
BAD
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002095 RID: 8341
|
||||
[Token(Token = "0x2002095")]
|
||||
internal static class InternalConstants
|
||||
{
|
||||
// Token: 0x0600D187 RID: 53639 RVA: 0x002FD1B0 File Offset: 0x002FB3B0
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D187")]
|
||||
[Address(RVA = "0x241BE90", Offset = "0x241AE90", VA = "0x18241BE90")]
|
||||
static InternalConstants()
|
||||
{
|
||||
int num = InternalConstants.LITERALS;
|
||||
int num2 = InternalConstants.LENGTH_CODES;
|
||||
num++;
|
||||
num2 += num;
|
||||
InternalConstants.L_CODES = num2;
|
||||
}
|
||||
|
||||
// Token: 0x04008543 RID: 34115
|
||||
[Token(Token = "0x4008543")]
|
||||
internal static readonly int MAX_BITS;
|
||||
|
||||
// Token: 0x04008544 RID: 34116
|
||||
[Token(Token = "0x4008544")]
|
||||
internal static readonly int BL_CODES;
|
||||
|
||||
// Token: 0x04008545 RID: 34117
|
||||
[Token(Token = "0x4008545")]
|
||||
internal static readonly int D_CODES;
|
||||
|
||||
// Token: 0x04008546 RID: 34118
|
||||
[Token(Token = "0x4008546")]
|
||||
internal static readonly int LITERALS;
|
||||
|
||||
// Token: 0x04008547 RID: 34119
|
||||
[Token(Token = "0x4008547")]
|
||||
internal static readonly int LENGTH_CODES;
|
||||
|
||||
// Token: 0x04008548 RID: 34120
|
||||
[Token(Token = "0x4008548")]
|
||||
internal static readonly int L_CODES;
|
||||
|
||||
// Token: 0x04008549 RID: 34121
|
||||
[Token(Token = "0x4008549")]
|
||||
internal static readonly int MAX_BL_BITS;
|
||||
|
||||
// Token: 0x0400854A RID: 34122
|
||||
[Token(Token = "0x400854A")]
|
||||
internal static readonly int REP_3_6;
|
||||
|
||||
// Token: 0x0400854B RID: 34123
|
||||
[Token(Token = "0x400854B")]
|
||||
internal static readonly int REPZ_3_10;
|
||||
|
||||
// Token: 0x0400854C RID: 34124
|
||||
[Token(Token = "0x400854C")]
|
||||
internal static readonly int REPZ_11_138;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200208A RID: 8330
|
||||
[Token(Token = "0x200208A")]
|
||||
internal static class InternalInflateConstants
|
||||
{
|
||||
// Token: 0x0600D168 RID: 53608 RVA: 0x002FBC00 File Offset: 0x002F9E00
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D168")]
|
||||
[Address(RVA = "0x241BF90", Offset = "0x241AF90", VA = "0x18241BF90")]
|
||||
static InternalInflateConstants()
|
||||
{
|
||||
RuntimeHelpers.InitializeArray(new int[17], fieldof(<PrivateImplementationDetails>.F584B6C7CCA3CD4ECC3B9B1E20D2F2EFB73DBBDF).FieldHandle);
|
||||
}
|
||||
|
||||
// Token: 0x040084E6 RID: 34022
|
||||
[Token(Token = "0x40084E6")]
|
||||
internal static readonly int[] InflateMask;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002094 RID: 8340
|
||||
[Token(Token = "0x2002094")]
|
||||
internal class SharedUtils
|
||||
{
|
||||
// Token: 0x0600D182 RID: 53634 RVA: 0x002FD118 File Offset: 0x002FB318
|
||||
[Token(Token = "0x600D182")]
|
||||
[Address(RVA = "0x10B1650", Offset = "0x10B0650", VA = "0x1810B1650")]
|
||||
public static int URShift(int number, int bits)
|
||||
{
|
||||
return number;
|
||||
}
|
||||
|
||||
// Token: 0x0600D183 RID: 53635 RVA: 0x002FD128 File Offset: 0x002FB328
|
||||
[Token(Token = "0x600D183")]
|
||||
[Address(RVA = "0x241BFF0", Offset = "0x241AFF0", VA = "0x18241BFF0")]
|
||||
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: 0x0600D184 RID: 53636 RVA: 0x002FD164 File Offset: 0x002FB364
|
||||
[Token(Token = "0x600D184")]
|
||||
[Address(RVA = "0x4F19E0", Offset = "0x4F09E0", VA = "0x1804F19E0")]
|
||||
internal static byte[] ToByteArray(string sourceString)
|
||||
{
|
||||
Encoding utf = Encoding.UTF8;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D185 RID: 53637 RVA: 0x002FD180 File Offset: 0x002FB380
|
||||
[Token(Token = "0x600D185")]
|
||||
[Address(RVA = "0x241C100", Offset = "0x241B100", VA = "0x18241C100")]
|
||||
internal static char[] ToCharArray(byte[] byteArray)
|
||||
{
|
||||
Encoding utf = Encoding.UTF8;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600D186 RID: 53638 RVA: 0x002FD19C File Offset: 0x002FB39C
|
||||
[Token(Token = "0x600D186")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public SharedUtils()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002096 RID: 8342
|
||||
[Token(Token = "0x2002096")]
|
||||
internal sealed class StaticTree
|
||||
{
|
||||
// Token: 0x0600D188 RID: 53640 RVA: 0x002FD1D8 File Offset: 0x002FB3D8
|
||||
[Token(Token = "0x600D188")]
|
||||
[Address(RVA = "0x412D50", Offset = "0x411D50", VA = "0x180412D50")]
|
||||
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: 0x0600D189 RID: 53641 RVA: 0x002FD210 File Offset: 0x002FB410
|
||||
[Token(Token = "0x600D189")]
|
||||
[Address(RVA = "0x241C140", Offset = "0x241B140", VA = "0x18241C140")]
|
||||
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: 0x0400854D RID: 34125
|
||||
[Token(Token = "0x400854D")]
|
||||
internal static readonly short[] lengthAndLiteralsTreeCodes;
|
||||
|
||||
// Token: 0x0400854E RID: 34126
|
||||
[Token(Token = "0x400854E")]
|
||||
internal static readonly short[] distTreeCodes;
|
||||
|
||||
// Token: 0x0400854F RID: 34127
|
||||
[Token(Token = "0x400854F")]
|
||||
internal static readonly StaticTree Literals;
|
||||
|
||||
// Token: 0x04008550 RID: 34128
|
||||
[Token(Token = "0x4008550")]
|
||||
internal static readonly StaticTree Distances;
|
||||
|
||||
// Token: 0x04008551 RID: 34129
|
||||
[Token(Token = "0x4008551")]
|
||||
internal static readonly StaticTree BitLengths;
|
||||
|
||||
// Token: 0x04008552 RID: 34130
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008552")]
|
||||
internal short[] treeCodes;
|
||||
|
||||
// Token: 0x04008553 RID: 34131
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008553")]
|
||||
internal int[] extraBits;
|
||||
|
||||
// Token: 0x04008554 RID: 34132
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008554")]
|
||||
internal int extraBase;
|
||||
|
||||
// Token: 0x04008555 RID: 34133
|
||||
[FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4008555")]
|
||||
internal int elems;
|
||||
|
||||
// Token: 0x04008556 RID: 34134
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008556")]
|
||||
internal int maxLength;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,347 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200208E RID: 8334
|
||||
[Token(Token = "0x200208E")]
|
||||
internal sealed class ZTree
|
||||
{
|
||||
// Token: 0x0600D179 RID: 53625 RVA: 0x002FCB08 File Offset: 0x002FAD08
|
||||
[Token(Token = "0x600D179")]
|
||||
[Address(RVA = "0x241CEC0", Offset = "0x241BEC0", VA = "0x18241CEC0")]
|
||||
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: 0x0600D17A RID: 53626 RVA: 0x002FCB30 File Offset: 0x002FAD30
|
||||
[Token(Token = "0x600D17A")]
|
||||
[Address(RVA = "0x241D8E0", Offset = "0x241C8E0", VA = "0x18241D8E0")]
|
||||
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: 0x0600D17B RID: 53627 RVA: 0x002FCCD0 File Offset: 0x002FAED0
|
||||
[Token(Token = "0x600D17B")]
|
||||
[Address(RVA = "0x241D1E0", Offset = "0x241C1E0", VA = "0x18241D1E0")]
|
||||
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: 0x0600D17C RID: 53628 RVA: 0x002FCF74 File Offset: 0x002FB174
|
||||
[Token(Token = "0x600D17C")]
|
||||
[Address(RVA = "0x241DE00", Offset = "0x241CE00", VA = "0x18241DE00")]
|
||||
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: 0x0600D17D RID: 53629 RVA: 0x002FCFDC File Offset: 0x002FB1DC
|
||||
[Token(Token = "0x600D17D")]
|
||||
[Address(RVA = "0x427250", Offset = "0x426250", VA = "0x180427250")]
|
||||
internal static int bi_reverse(int code, int len)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = len - 1;
|
||||
return num + num;
|
||||
}
|
||||
|
||||
// Token: 0x0600D17E RID: 53630 RVA: 0x002FCFF4 File Offset: 0x002FB1F4
|
||||
[Token(Token = "0x600D17E")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public ZTree()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D17F RID: 53631 RVA: 0x002FD008 File Offset: 0x002FB208
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600D17F")]
|
||||
[Address(RVA = "0x241CFB0", Offset = "0x241BFB0", VA = "0x18241CFB0")]
|
||||
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: 0x0400851A RID: 34074
|
||||
[Token(Token = "0x400851A")]
|
||||
private static readonly int HEAP_SIZE;
|
||||
|
||||
// Token: 0x0400851B RID: 34075
|
||||
[Token(Token = "0x400851B")]
|
||||
internal static readonly int[] ExtraLengthBits;
|
||||
|
||||
// Token: 0x0400851C RID: 34076
|
||||
[Token(Token = "0x400851C")]
|
||||
internal static readonly int[] ExtraDistanceBits;
|
||||
|
||||
// Token: 0x0400851D RID: 34077
|
||||
[Token(Token = "0x400851D")]
|
||||
internal static readonly int[] extra_blbits;
|
||||
|
||||
// Token: 0x0400851E RID: 34078
|
||||
[Token(Token = "0x400851E")]
|
||||
internal static readonly sbyte[] bl_order;
|
||||
|
||||
// Token: 0x0400851F RID: 34079
|
||||
[Token(Token = "0x400851F")]
|
||||
internal const int Buf_size = 16;
|
||||
|
||||
// Token: 0x04008520 RID: 34080
|
||||
[Token(Token = "0x4008520")]
|
||||
private static readonly sbyte[] _dist_code;
|
||||
|
||||
// Token: 0x04008521 RID: 34081
|
||||
[Token(Token = "0x4008521")]
|
||||
internal static readonly sbyte[] LengthCode;
|
||||
|
||||
// Token: 0x04008522 RID: 34082
|
||||
[Token(Token = "0x4008522")]
|
||||
internal static readonly int[] LengthBase;
|
||||
|
||||
// Token: 0x04008523 RID: 34083
|
||||
[Token(Token = "0x4008523")]
|
||||
internal static readonly int[] DistanceBase;
|
||||
|
||||
// Token: 0x04008524 RID: 34084
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008524")]
|
||||
internal short[] dyn_tree;
|
||||
|
||||
// Token: 0x04008525 RID: 34085
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008525")]
|
||||
internal int max_code;
|
||||
|
||||
// Token: 0x04008526 RID: 34086
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008526")]
|
||||
internal StaticTree staticTree;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,718 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BestHTTP.Decompression.Crc;
|
||||
using BestHTTP.Extensions;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002099 RID: 8345
|
||||
[Token(Token = "0x2002099")]
|
||||
internal class ZlibBaseStream : Stream
|
||||
{
|
||||
// Token: 0x17002155 RID: 8533
|
||||
// (get) Token: 0x0600D18D RID: 53645 RVA: 0x002FD3E8 File Offset: 0x002FB5E8
|
||||
[Token(Token = "0x17002155")]
|
||||
internal int Crc32
|
||||
{
|
||||
[Token(Token = "0x600D18D")]
|
||||
[Address(RVA = "0x2A85580", Offset = "0x2A84580", VA = "0x182A85580")]
|
||||
get
|
||||
{
|
||||
CRC32 crc = this.crc;
|
||||
if (crc != 0)
|
||||
{
|
||||
return crc.Crc32Result;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D18E RID: 53646 RVA: 0x002FD408 File Offset: 0x002FB608
|
||||
[Token(Token = "0x600D18E")]
|
||||
[Address(RVA = "0x2A849C0", Offset = "0x2A839C0", VA = "0x182A849C0")]
|
||||
public ZlibBaseStream(Stream stream, CompressionMode compressionMode, CompressionLevel level, ZlibStreamFlavor flavor, bool leaveOpen)
|
||||
{
|
||||
byte[] array = new byte[1];
|
||||
this._buf1 = array;
|
||||
base..ctor();
|
||||
this._leaveOpen = false;
|
||||
this._flushMode = (FlushType)((ulong)0L);
|
||||
this._stream = stream;
|
||||
this._compressionMode = compressionMode;
|
||||
this._flavor = (ZlibStreamFlavor)0;
|
||||
this._level = level;
|
||||
this.windowBitsMax = (int)((ulong)15L);
|
||||
CRC32 crc = new CRC32();
|
||||
this.crc = crc;
|
||||
}
|
||||
|
||||
// Token: 0x0600D18F RID: 53647 RVA: 0x002FD488 File Offset: 0x002FB688
|
||||
[Token(Token = "0x600D18F")]
|
||||
[Address(RVA = "0x2A84AB0", Offset = "0x2A83AB0", VA = "0x182A84AB0")]
|
||||
public ZlibBaseStream(Stream stream, CompressionMode compressionMode, CompressionLevel level, ZlibStreamFlavor flavor, bool leaveOpen, int windowBits)
|
||||
{
|
||||
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;
|
||||
CRC32 crc = new CRC32();
|
||||
this.crc = crc;
|
||||
}
|
||||
|
||||
// Token: 0x17002156 RID: 8534
|
||||
// (get) Token: 0x0600D190 RID: 53648 RVA: 0x002FD504 File Offset: 0x002FB704
|
||||
[Token(Token = "0x17002156")]
|
||||
protected internal bool _wantCompress
|
||||
{
|
||||
[Token(Token = "0x600D190")]
|
||||
[Address(RVA = "0x10B5ED0", Offset = "0x10B4ED0", VA = "0x1810B5ED0")]
|
||||
get
|
||||
{
|
||||
return this._compressionMode == CompressionMode.Compress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002157 RID: 8535
|
||||
// (get) Token: 0x0600D191 RID: 53649 RVA: 0x002FD51C File Offset: 0x002FB71C
|
||||
[Token(Token = "0x17002157")]
|
||||
private ZlibCodec z
|
||||
{
|
||||
[Token(Token = "0x600D191")]
|
||||
[Address(RVA = "0x2A85670", Offset = "0x2A84670", VA = "0x182A85670")]
|
||||
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: 0x17002158 RID: 8536
|
||||
// (get) Token: 0x0600D192 RID: 53650 RVA: 0x002FD5CC File Offset: 0x002FB7CC
|
||||
[Token(Token = "0x17002158")]
|
||||
private byte[] workingBuffer
|
||||
{
|
||||
[Token(Token = "0x600D192")]
|
||||
[Address(RVA = "0x2A855F0", Offset = "0x2A845F0", VA = "0x182A855F0")]
|
||||
get
|
||||
{
|
||||
if (this._workingBuffer == (ulong)0L)
|
||||
{
|
||||
byte[] array = VariableSizedBufferPool.Get((long)this._bufferSize, true);
|
||||
this._workingBuffer = array;
|
||||
}
|
||||
return this._workingBuffer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D193 RID: 53651 RVA: 0x002FD600 File Offset: 0x002FB800
|
||||
[Token(Token = "0x600D193")]
|
||||
[Address(RVA = "0x2A84140", Offset = "0x2A83140", VA = "0x182A84140", 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: 0x0600D194 RID: 53652 RVA: 0x002FD780 File Offset: 0x002FB980
|
||||
[Token(Token = "0x600D194")]
|
||||
[Address(RVA = "0x2A84D10", Offset = "0x2A83D10", VA = "0x182A84D10")]
|
||||
private void finish()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D194)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D195 RID: 53653 RVA: 0x002FDA38 File Offset: 0x002FBC38
|
||||
[Token(Token = "0x600D195")]
|
||||
[Address(RVA = "0x2A84BA0", Offset = "0x2A83BA0", VA = "0x182A84BA0")]
|
||||
private void end()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D195)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D196 RID: 53654 RVA: 0x002FDACC File Offset: 0x002FBCCC
|
||||
[Token(Token = "0x600D196")]
|
||||
[Address(RVA = "0x2A83800", Offset = "0x2A82800", VA = "0x182A83800", Slot = "15")]
|
||||
public override void Close()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D196)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D197 RID: 53655 RVA: 0x002FDB84 File Offset: 0x002FBD84
|
||||
[Token(Token = "0x600D197")]
|
||||
[Address(RVA = "0x10B3330", Offset = "0x10B2330", VA = "0x1810B3330", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
bool canRead = this._stream.CanRead;
|
||||
}
|
||||
|
||||
// Token: 0x0600D198 RID: 53656 RVA: 0x002FDBA4 File Offset: 0x002FBDA4
|
||||
[Token(Token = "0x600D198")]
|
||||
[Address(RVA = "0x2A840B0", Offset = "0x2A830B0", VA = "0x182A840B0", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D198)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D199 RID: 53657 RVA: 0x002FDBB8 File Offset: 0x002FBDB8
|
||||
[Token(Token = "0x600D199")]
|
||||
[Address(RVA = "0x2A84100", Offset = "0x2A83100", VA = "0x182A84100", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
Stream stream = this._stream;
|
||||
this.nomoreinput = false;
|
||||
}
|
||||
|
||||
// Token: 0x0600D19A RID: 53658 RVA: 0x002FDBDC File Offset: 0x002FBDDC
|
||||
[Token(Token = "0x600D19A")]
|
||||
[Address(RVA = "0x2A839F0", Offset = "0x2A829F0", VA = "0x182A839F0")]
|
||||
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: 0x0600D19B RID: 53659 RVA: 0x002FDC24 File Offset: 0x002FBE24
|
||||
[Token(Token = "0x600D19B")]
|
||||
[Address(RVA = "0x2A844E0", Offset = "0x2A834E0", VA = "0x182A844E0")]
|
||||
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: 0x0600D19C RID: 53660 RVA: 0x002FDD38 File Offset: 0x002FBF38
|
||||
[Token(Token = "0x600D19C")]
|
||||
[Address(RVA = "0x2A83B80", Offset = "0x2A82B80", VA = "0x182A83B80", 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: 0x17002159 RID: 8537
|
||||
// (get) Token: 0x0600D19D RID: 53661 RVA: 0x002FDF50 File Offset: 0x002FC150
|
||||
[Token(Token = "0x17002159")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600D19D")]
|
||||
[Address(RVA = "0x10B5DF0", Offset = "0x10B4DF0", VA = "0x1810B5DF0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this._stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700215A RID: 8538
|
||||
// (get) Token: 0x0600D19E RID: 53662 RVA: 0x002FDF70 File Offset: 0x002FC170
|
||||
[Token(Token = "0x1700215A")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600D19E")]
|
||||
[Address(RVA = "0x10B5E20", Offset = "0x10B4E20", VA = "0x1810B5E20", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this._stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700215B RID: 8539
|
||||
// (get) Token: 0x0600D19F RID: 53663 RVA: 0x002FDF90 File Offset: 0x002FC190
|
||||
[Token(Token = "0x1700215B")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600D19F")]
|
||||
[Address(RVA = "0x10B5E50", Offset = "0x10B4E50", VA = "0x1810B5E50", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this._stream.CanRead;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700215C RID: 8540
|
||||
// (get) Token: 0x0600D1A0 RID: 53664 RVA: 0x002FDFB0 File Offset: 0x002FC1B0
|
||||
[Token(Token = "0x1700215C")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600D1A0")]
|
||||
[Address(RVA = "0x10B4400", Offset = "0x10B3400", VA = "0x1810B4400", Slot = "10")]
|
||||
get
|
||||
{
|
||||
bool canRead = this._stream.CanRead;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700215D RID: 8541
|
||||
// (get) Token: 0x0600D1A1 RID: 53665 RVA: 0x002FDFD0 File Offset: 0x002FC1D0
|
||||
// (set) Token: 0x0600D1A2 RID: 53666 RVA: 0x002FDFE4 File Offset: 0x002FC1E4
|
||||
[Token(Token = "0x1700215D")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600D1A1")]
|
||||
[Address(RVA = "0x2A855A0", Offset = "0x2A845A0", VA = "0x182A855A0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1A1)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
[Token(Token = "0x600D1A2")]
|
||||
[Address(RVA = "0x2A85740", Offset = "0x2A84740", VA = "0x182A85740", Slot = "12")]
|
||||
set
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1A2)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400855D RID: 34141
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400855D")]
|
||||
protected internal ZlibCodec _z;
|
||||
|
||||
// Token: 0x0400855E RID: 34142
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400855E")]
|
||||
protected internal ZlibBaseStream.StreamMode _streamMode = (ZlibBaseStream.StreamMode)((ulong)2L);
|
||||
|
||||
// Token: 0x0400855F RID: 34143
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400855F")]
|
||||
protected internal FlushType _flushMode;
|
||||
|
||||
// Token: 0x04008560 RID: 34144
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008560")]
|
||||
protected internal ZlibStreamFlavor _flavor;
|
||||
|
||||
// Token: 0x04008561 RID: 34145
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4008561")]
|
||||
protected internal CompressionMode _compressionMode;
|
||||
|
||||
// Token: 0x04008562 RID: 34146
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008562")]
|
||||
protected internal CompressionLevel _level;
|
||||
|
||||
// Token: 0x04008563 RID: 34147
|
||||
[FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4008563")]
|
||||
protected internal bool _leaveOpen;
|
||||
|
||||
// Token: 0x04008564 RID: 34148
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008564")]
|
||||
protected internal byte[] _workingBuffer;
|
||||
|
||||
// Token: 0x04008565 RID: 34149
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008565")]
|
||||
protected internal int _bufferSize = (int)((ulong)16384L);
|
||||
|
||||
// Token: 0x04008566 RID: 34150
|
||||
[FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x4008566")]
|
||||
protected internal int windowBitsMax;
|
||||
|
||||
// Token: 0x04008567 RID: 34151
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008567")]
|
||||
protected internal byte[] _buf1;
|
||||
|
||||
// Token: 0x04008568 RID: 34152
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008568")]
|
||||
protected internal Stream _stream;
|
||||
|
||||
// Token: 0x04008569 RID: 34153
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4008569")]
|
||||
protected internal CompressionStrategy Strategy;
|
||||
|
||||
// Token: 0x0400856A RID: 34154
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x400856A")]
|
||||
private CRC32 crc;
|
||||
|
||||
// Token: 0x0400856B RID: 34155
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x400856B")]
|
||||
protected internal string _GzipFileName;
|
||||
|
||||
// Token: 0x0400856C RID: 34156
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x400856C")]
|
||||
protected internal string _GzipComment;
|
||||
|
||||
// Token: 0x0400856D RID: 34157
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x400856D")]
|
||||
protected internal DateTime _GzipMtime;
|
||||
|
||||
// Token: 0x0400856E RID: 34158
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x400856E")]
|
||||
protected internal int _gzipHeaderByteCount;
|
||||
|
||||
// Token: 0x0400856F RID: 34159
|
||||
[FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x400856F")]
|
||||
private bool nomoreinput;
|
||||
|
||||
// Token: 0x0200209A RID: 8346
|
||||
[Token(Token = "0x200209A")]
|
||||
internal enum StreamMode
|
||||
{
|
||||
// Token: 0x04008571 RID: 34161
|
||||
[Token(Token = "0x4008571")]
|
||||
Writer,
|
||||
// Token: 0x04008572 RID: 34162
|
||||
[Token(Token = "0x4008572")]
|
||||
Reader,
|
||||
// Token: 0x04008573 RID: 34163
|
||||
[Token(Token = "0x4008573")]
|
||||
Undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,586 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200209B RID: 8347
|
||||
[Token(Token = "0x200209B")]
|
||||
internal sealed class ZlibCodec
|
||||
{
|
||||
// Token: 0x1700215E RID: 8542
|
||||
// (get) Token: 0x0600D1A3 RID: 53667 RVA: 0x002FDFF8 File Offset: 0x002FC1F8
|
||||
[Token(Token = "0x1700215E")]
|
||||
public int Adler32
|
||||
{
|
||||
[Token(Token = "0x600D1A3")]
|
||||
[Address(RVA = "0x56DD20", Offset = "0x56CD20", VA = "0x18056DD20")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1A3)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A4 RID: 53668 RVA: 0x002FE00C File Offset: 0x002FC20C
|
||||
[Token(Token = "0x600D1A4")]
|
||||
[Address(RVA = "0x10B6810", Offset = "0x10B5810", VA = "0x1810B6810")]
|
||||
public ZlibCodec()
|
||||
{
|
||||
this.CompressLevel = (CompressionLevel)((ulong)6L);
|
||||
this.WindowBits = (int)((ulong)15L);
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A5 RID: 53669 RVA: 0x002FE034 File Offset: 0x002FC234
|
||||
[Token(Token = "0x600D1A5")]
|
||||
[Address(RVA = "0x2A85DE0", Offset = "0x2A84DE0", VA = "0x182A85DE0")]
|
||||
public ZlibCodec(CompressionMode mode)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1A5)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A6 RID: 53670 RVA: 0x002FE0A4 File Offset: 0x002FC2A4
|
||||
[Token(Token = "0x600D1A6")]
|
||||
[Address(RVA = "0x2A85A00", Offset = "0x2A84A00", VA = "0x182A85A00")]
|
||||
public int InitializeInflate()
|
||||
{
|
||||
int windowBits = this.WindowBits;
|
||||
return this.InitializeInflate(windowBits, true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A7 RID: 53671 RVA: 0x002FE0C0 File Offset: 0x002FC2C0
|
||||
[Token(Token = "0x600D1A7")]
|
||||
[Address(RVA = "0x2A85A10", Offset = "0x2A84A10", VA = "0x182A85A10")]
|
||||
public int InitializeInflate(bool expectRfc1950Header)
|
||||
{
|
||||
int windowBits = this.WindowBits;
|
||||
return this.InitializeInflate(windowBits, expectRfc1950Header);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A8 RID: 53672 RVA: 0x002FE0DC File Offset: 0x002FC2DC
|
||||
[Token(Token = "0x600D1A8")]
|
||||
[Address(RVA = "0x2A85AF0", Offset = "0x2A84AF0", VA = "0x182A85AF0")]
|
||||
public int InitializeInflate(int windowBits)
|
||||
{
|
||||
this.WindowBits = windowBits;
|
||||
return this.InitializeInflate(windowBits, true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1A9 RID: 53673 RVA: 0x002FE0F8 File Offset: 0x002FC2F8
|
||||
[Token(Token = "0x600D1A9")]
|
||||
[Address(RVA = "0x2A85A20", Offset = "0x2A84A20", VA = "0x182A85A20")]
|
||||
public int InitializeInflate(int windowBits, bool expectRfc1950Header)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1A9)
|
||||
|
||||
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_29:
|
||||
stloc:ZlibException(var_1_33, 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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AA RID: 53674 RVA: 0x002FE138 File Offset: 0x002FC338
|
||||
[Token(Token = "0x600D1AA")]
|
||||
[Address(RVA = "0x2A85900", Offset = "0x2A84900", VA = "0x182A85900")]
|
||||
public int Inflate(FlushType flush)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1AA)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AB RID: 53675 RVA: 0x002FE15C File Offset: 0x002FC35C
|
||||
[Token(Token = "0x600D1AB")]
|
||||
[Address(RVA = "0x2A85880", Offset = "0x2A84880", VA = "0x182A85880")]
|
||||
public int EndInflate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1AB)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AC RID: 53676 RVA: 0x002FE190 File Offset: 0x002FC390
|
||||
[Token(Token = "0x600D1AC")]
|
||||
[Address(RVA = "0x2A85CA0", Offset = "0x2A84CA0", VA = "0x182A85CA0")]
|
||||
public int SyncInflate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1AC)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AD RID: 53677 RVA: 0x002FE1BC File Offset: 0x002FC3BC
|
||||
[Token(Token = "0x600D1AD")]
|
||||
[Address(RVA = "0x2A859B0", Offset = "0x2A849B0", VA = "0x182A859B0")]
|
||||
public int InitializeDeflate()
|
||||
{
|
||||
return this._InternalInitializeDeflate(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AE RID: 53678 RVA: 0x002FE1D0 File Offset: 0x002FC3D0
|
||||
[Token(Token = "0x600D1AE")]
|
||||
[Address(RVA = "0x2A859A0", Offset = "0x2A849A0", VA = "0x182A859A0")]
|
||||
public int InitializeDeflate(CompressionLevel level)
|
||||
{
|
||||
this.CompressLevel = level;
|
||||
return this._InternalInitializeDeflate(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1AF RID: 53679 RVA: 0x002FE1EC File Offset: 0x002FC3EC
|
||||
[Token(Token = "0x600D1AF")]
|
||||
[Address(RVA = "0x2A859E0", Offset = "0x2A849E0", VA = "0x182A859E0")]
|
||||
public int InitializeDeflate(CompressionLevel level, bool wantRfc1950Header)
|
||||
{
|
||||
this.CompressLevel = level;
|
||||
return this._InternalInitializeDeflate(wantRfc1950Header);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B0 RID: 53680 RVA: 0x002FE208 File Offset: 0x002FC408
|
||||
[Token(Token = "0x600D1B0")]
|
||||
[Address(RVA = "0x2A85980", Offset = "0x2A84980", VA = "0x182A85980")]
|
||||
public int InitializeDeflate(CompressionLevel level, int bits)
|
||||
{
|
||||
this.CompressLevel = level;
|
||||
this.WindowBits = bits;
|
||||
return this._InternalInitializeDeflate(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B1 RID: 53681 RVA: 0x002FE22C File Offset: 0x002FC42C
|
||||
[Token(Token = "0x600D1B1")]
|
||||
[Address(RVA = "0x2A859C0", Offset = "0x2A849C0", VA = "0x182A859C0")]
|
||||
public int InitializeDeflate(CompressionLevel level, int bits, bool wantRfc1950Header)
|
||||
{
|
||||
this.CompressLevel = level;
|
||||
this.WindowBits = bits;
|
||||
return this._InternalInitializeDeflate(wantRfc1950Header);
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B2 RID: 53682 RVA: 0x002FE250 File Offset: 0x002FC450
|
||||
[Token(Token = "0x600D1B2")]
|
||||
[Address(RVA = "0x2A85D10", Offset = "0x2A84D10", VA = "0x182A85D10")]
|
||||
private int _InternalInitializeDeflate(bool wantRfc1950Header)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B2)
|
||||
|
||||
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_48:
|
||||
stloc:ZlibException(var_6_52, 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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B3 RID: 53683 RVA: 0x002FE2B0 File Offset: 0x002FC4B0
|
||||
[Token(Token = "0x600D1B3")]
|
||||
[Address(RVA = "0x2A85790", Offset = "0x2A84790", VA = "0x182A85790")]
|
||||
public int Deflate(FlushType flush)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B3)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B4 RID: 53684 RVA: 0x002FE2D4 File Offset: 0x002FC4D4
|
||||
[Token(Token = "0x600D1B4")]
|
||||
[Address(RVA = "0x2A85810", Offset = "0x2A84810", VA = "0x182A85810")]
|
||||
public int EndDeflate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B4)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B5 RID: 53685 RVA: 0x002FE304 File Offset: 0x002FC504
|
||||
[Token(Token = "0x600D1B5")]
|
||||
[Address(RVA = "0x2A85B00", Offset = "0x2A84B00", VA = "0x182A85B00")]
|
||||
public void ResetDeflate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B5)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B6 RID: 53686 RVA: 0x002FE330 File Offset: 0x002FC530
|
||||
[Token(Token = "0x600D1B6")]
|
||||
[Address(RVA = "0x2A85B70", Offset = "0x2A84B70", VA = "0x182A85B70")]
|
||||
public int SetDeflateParams(CompressionLevel level, CompressionStrategy strategy)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B6)
|
||||
|
||||
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_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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B7 RID: 53687 RVA: 0x002FE354 File Offset: 0x002FC554
|
||||
[Token(Token = "0x600D1B7")]
|
||||
[Address(RVA = "0x2A85C00", Offset = "0x2A84C00", VA = "0x182A85C00")]
|
||||
public int SetDictionary(byte[] dictionary)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600D1B7)
|
||||
|
||||
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_26:
|
||||
stloc:ZlibException(var_2_30, newobj:ZlibException(ZlibException::.ctor, ldstr:string("No Inflate or 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.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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600D1B8 RID: 53688 RVA: 0x002FE394 File Offset: 0x002FC594
|
||||
[Token(Token = "0x600D1B8")]
|
||||
[Address(RVA = "0x2A85F00", Offset = "0x2A84F00", VA = "0x182A85F00")]
|
||||
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: 0x0600D1B9 RID: 53689 RVA: 0x002FE478 File Offset: 0x002FC678
|
||||
[Token(Token = "0x600D1B9")]
|
||||
[Address(RVA = "0x2A860E0", Offset = "0x2A850E0", VA = "0x182A860E0")]
|
||||
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: 0x04008574 RID: 34164
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008574")]
|
||||
public byte[] InputBuffer;
|
||||
|
||||
// Token: 0x04008575 RID: 34165
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008575")]
|
||||
public int NextIn;
|
||||
|
||||
// Token: 0x04008576 RID: 34166
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4008576")]
|
||||
public int AvailableBytesIn;
|
||||
|
||||
// Token: 0x04008577 RID: 34167
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008577")]
|
||||
public long TotalBytesIn;
|
||||
|
||||
// Token: 0x04008578 RID: 34168
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008578")]
|
||||
public byte[] OutputBuffer;
|
||||
|
||||
// Token: 0x04008579 RID: 34169
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008579")]
|
||||
public int NextOut;
|
||||
|
||||
// Token: 0x0400857A RID: 34170
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400857A")]
|
||||
public int AvailableBytesOut;
|
||||
|
||||
// Token: 0x0400857B RID: 34171
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400857B")]
|
||||
public long TotalBytesOut;
|
||||
|
||||
// Token: 0x0400857C RID: 34172
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400857C")]
|
||||
public string Message;
|
||||
|
||||
// Token: 0x0400857D RID: 34173
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400857D")]
|
||||
internal DeflateManager dstate;
|
||||
|
||||
// Token: 0x0400857E RID: 34174
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400857E")]
|
||||
internal InflateManager istate;
|
||||
|
||||
// Token: 0x0400857F RID: 34175
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400857F")]
|
||||
internal uint _Adler32;
|
||||
|
||||
// Token: 0x04008580 RID: 34176
|
||||
[FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4008580")]
|
||||
public CompressionLevel CompressLevel;
|
||||
|
||||
// Token: 0x04008581 RID: 34177
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008581")]
|
||||
public int WindowBits;
|
||||
|
||||
// Token: 0x04008582 RID: 34178
|
||||
[FieldOffset(Offset = "0x64")]
|
||||
[Token(Token = "0x4008582")]
|
||||
public CompressionStrategy Strategy;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x0200209C RID: 8348
|
||||
[Token(Token = "0x200209C")]
|
||||
public static class ZlibConstants
|
||||
{
|
||||
// Token: 0x04008583 RID: 34179
|
||||
[Token(Token = "0x4008583")]
|
||||
public const int WindowBitsMax = 15;
|
||||
|
||||
// Token: 0x04008584 RID: 34180
|
||||
[Token(Token = "0x4008584")]
|
||||
public const int WindowBitsDefault = 15;
|
||||
|
||||
// Token: 0x04008585 RID: 34181
|
||||
[Token(Token = "0x4008585")]
|
||||
public const int Z_OK = 0;
|
||||
|
||||
// Token: 0x04008586 RID: 34182
|
||||
[Token(Token = "0x4008586")]
|
||||
public const int Z_STREAM_END = 1;
|
||||
|
||||
// Token: 0x04008587 RID: 34183
|
||||
[Token(Token = "0x4008587")]
|
||||
public const int Z_NEED_DICT = 2;
|
||||
|
||||
// Token: 0x04008588 RID: 34184
|
||||
[Token(Token = "0x4008588")]
|
||||
public const int Z_STREAM_ERROR = -2;
|
||||
|
||||
// Token: 0x04008589 RID: 34185
|
||||
[Token(Token = "0x4008589")]
|
||||
public const int Z_DATA_ERROR = -3;
|
||||
|
||||
// Token: 0x0400858A RID: 34186
|
||||
[Token(Token = "0x400858A")]
|
||||
public const int Z_BUF_ERROR = -5;
|
||||
|
||||
// Token: 0x0400858B RID: 34187
|
||||
[Token(Token = "0x400858B")]
|
||||
public const int WorkingBufferSizeDefault = 16384;
|
||||
|
||||
// Token: 0x0400858C RID: 34188
|
||||
[Token(Token = "0x400858C")]
|
||||
public const int WorkingBufferSizeMin = 1024;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002093 RID: 8339
|
||||
[Token(Token = "0x2002093")]
|
||||
[Guid("ebc25cf6-9120-4283-b972-0e5520d0000E")]
|
||||
internal class ZlibException : Exception
|
||||
{
|
||||
// Token: 0x0600D180 RID: 53632 RVA: 0x002FD0F0 File Offset: 0x002FB2F0
|
||||
[Token(Token = "0x600D180")]
|
||||
[Address(RVA = "0x2A861F0", Offset = "0x2A851F0", VA = "0x182A861F0")]
|
||||
public ZlibException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600D181 RID: 53633 RVA: 0x002FD104 File Offset: 0x002FB304
|
||||
[Token(Token = "0x600D181")]
|
||||
[Address(RVA = "0x2A86250", Offset = "0x2A85250", VA = "0x182A86250")]
|
||||
public ZlibException(string s)
|
||||
: base(s)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Decompression.Zlib
|
||||
{
|
||||
// Token: 0x02002098 RID: 8344
|
||||
[Token(Token = "0x2002098")]
|
||||
internal enum ZlibStreamFlavor
|
||||
{
|
||||
// Token: 0x0400855A RID: 34138
|
||||
[Token(Token = "0x400855A")]
|
||||
ZLIB = 1950,
|
||||
// Token: 0x0400855B RID: 34139
|
||||
[Token(Token = "0x400855B")]
|
||||
DEFLATE,
|
||||
// Token: 0x0400855C RID: 34140
|
||||
[Token(Token = "0x400855C")]
|
||||
GZIP
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user