This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,952 @@
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A00 RID: 6656
[Token(Token = "0x2001A00")]
public abstract class Arrays
{
// Token: 0x06009BD7 RID: 39895 RVA: 0x001FE204 File Offset: 0x001FC404
[Token(Token = "0x6009BD7")]
[Address(RVA = "0x4DBE40", Offset = "0x4DAE40", VA = "0x1804DBE40")]
public static bool AreAllZeroes(byte[] buf, int off, int len)
{
int num = 0;
if (len > 0)
{
}
return num == 0;
}
// Token: 0x06009BD8 RID: 39896 RVA: 0x001FE224 File Offset: 0x001FC424
[Token(Token = "0x6009BD8")]
[Address(RVA = "0x4DC030", Offset = "0x4DB030", VA = "0x1804DC030")]
public static bool AreEqual(bool[] a, bool[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length != length2 || length != 0)
{
}
}
}
return true;
}
// Token: 0x06009BD9 RID: 39897 RVA: 0x001FE25C File Offset: 0x001FC45C
[Token(Token = "0x6009BD9")]
[Address(RVA = "0x4DBF60", Offset = "0x4DAF60", VA = "0x1804DBF60")]
public static bool AreEqual(char[] a, char[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
char c = b[length];
while ("{il2cpp array field a->}" == c)
{
}
}
}
}
}
return true;
}
// Token: 0x06009BDA RID: 39898 RVA: 0x001FE2A4 File Offset: 0x001FC4A4
[Token(Token = "0x6009BDA")]
[Address(RVA = "0x4DC1B0", Offset = "0x4DB1B0", VA = "0x1804DC1B0")]
public static bool AreEqual(byte[] a, byte[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length != length2 || length != 0)
{
}
}
}
return true;
}
// Token: 0x06009BDB RID: 39899 RVA: 0x001FE2DC File Offset: 0x001FC4DC
[Token(Token = "0x6009BDB")]
[Address(RVA = "0x4DC270", Offset = "0x4DB270", VA = "0x1804DC270")]
[Obsolete]
public static bool AreSame(byte[] a, byte[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length != length2 || length != 0)
{
}
}
}
return true;
}
// Token: 0x06009BDC RID: 39900 RVA: 0x001FE314 File Offset: 0x001FC514
[Token(Token = "0x6009BDC")]
[Address(RVA = "0x4DCB40", Offset = "0x4DBB40", VA = "0x1804DCB40")]
public static bool ConstantTimeAreEqual(byte[] a, byte[] b)
{
int length = b.Length;
int length2 = a.Length;
if (length2 == length)
{
int num = 0;
if (length2 != 0)
{
while (length2 != 0)
{
}
}
return num == 0;
}
throw new NullReferenceException();
}
// Token: 0x06009BDD RID: 39901 RVA: 0x001FE34C File Offset: 0x001FC54C
[Token(Token = "0x6009BDD")]
[Address(RVA = "0x4DC0F0", Offset = "0x4DB0F0", VA = "0x1804DC0F0")]
public static bool AreEqual(int[] a, int[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
int num = b[length];
while ("{il2cpp array field a->}" == num)
{
}
}
}
}
}
return true;
}
// Token: 0x06009BDE RID: 39902 RVA: 0x001FE394 File Offset: 0x001FC594
[Token(Token = "0x6009BDE")]
[Address(RVA = "0x4DBEA0", Offset = "0x4DAEA0", VA = "0x1804DBEA0")]
[CLSCompliant(false)]
public static bool AreEqual(uint[] a, uint[] b)
{
if (a != b)
{
if (a != 0 && b != 0)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
uint num = b[length];
while ("{il2cpp array field a->}" == num)
{
}
}
}
}
}
return true;
}
// Token: 0x06009BDF RID: 39903 RVA: 0x001FE3DC File Offset: 0x001FC5DC
[Token(Token = "0x6009BDF")]
[Address(RVA = "0x4DD860", Offset = "0x4DC860", VA = "0x1804DD860")]
private static bool HaveSameContents(bool[] a, bool[] b)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BE0 RID: 39904 RVA: 0x001FE408 File Offset: 0x001FC608
[Token(Token = "0x6009BE0")]
[Address(RVA = "0x4DD8E0", Offset = "0x4DC8E0", VA = "0x1804DD8E0")]
private static bool HaveSameContents(char[] a, char[] b)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
char c = b[length];
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BE1 RID: 39905 RVA: 0x001FE43C File Offset: 0x001FC63C
[Token(Token = "0x6009BE1")]
[Address(RVA = "0x4DD860", Offset = "0x4DC860", VA = "0x1804DD860")]
private static bool HaveSameContents(byte[] a, byte[] b)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BE2 RID: 39906 RVA: 0x001FE468 File Offset: 0x001FC668
[Token(Token = "0x6009BE2")]
[Address(RVA = "0x4DD7E0", Offset = "0x4DC7E0", VA = "0x1804DD7E0")]
private static bool HaveSameContents(int[] a, int[] b)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
int num = b[length];
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BE3 RID: 39907 RVA: 0x001FE49C File Offset: 0x001FC69C
[Token(Token = "0x6009BE3")]
[Address(RVA = "0x4DD7E0", Offset = "0x4DC7E0", VA = "0x1804DD7E0")]
private static bool HaveSameContents(uint[] a, uint[] b)
{
int length = a.Length;
int length2 = b.Length;
if (length == length2)
{
if (length != 0)
{
uint num = b[length];
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BE4 RID: 39908 RVA: 0x001FE4D0 File Offset: 0x001FC6D0
[Token(Token = "0x6009BE4")]
[Address(RVA = "0x4DDDB0", Offset = "0x4DCDB0", VA = "0x1804DDDB0")]
public static string ToString(object[] a)
{
StringBuilder stringBuilder = new StringBuilder(91);
if (a.Length != 0)
{
object obj = a[0];
StringBuilder stringBuilder2 = stringBuilder.Append(obj);
if ((uint)1 < (uint)a.Length)
{
object obj2;
StringBuilder stringBuilder3 = stringBuilder.Append(", ").Append(obj2);
}
}
throw new NullReferenceException();
}
// Token: 0x06009BE5 RID: 39909 RVA: 0x001FE520 File Offset: 0x001FC720
[Token(Token = "0x6009BE5")]
[Address(RVA = "0x4DD5F0", Offset = "0x4DC5F0", VA = "0x1804DD5F0")]
public static int GetHashCode(byte[] data)
{
if (data != 0)
{
int length = data.Length;
int num = length - 1;
long num2 = (long)((length + 1) * (int)((uint)257));
}
return 0;
}
// Token: 0x06009BE6 RID: 39910 RVA: 0x001FE550 File Offset: 0x001FC750
[Token(Token = "0x6009BE6")]
[Address(RVA = "0x4DD590", Offset = "0x4DC590", VA = "0x1804DD590")]
public static int GetHashCode(byte[] data, int off, int len)
{
if (data != 0)
{
int num = len + 1;
int length = data.Length;
long num2 = (long)(num * (int)((uint)257));
}
return 0;
}
// Token: 0x06009BE7 RID: 39911 RVA: 0x001FE57C File Offset: 0x001FC77C
[Token(Token = "0x6009BE7")]
[Address(RVA = "0x4DD530", Offset = "0x4DC530", VA = "0x1804DD530")]
public static int GetHashCode(int[] data)
{
if (data != 0)
{
int length = data.Length;
int num = length - 1;
int num2 = length + 1;
return num;
}
return 0;
}
// Token: 0x06009BE8 RID: 39912 RVA: 0x001FE5A8 File Offset: 0x001FC7A8
[Token(Token = "0x6009BE8")]
[Address(RVA = "0x4DD4D0", Offset = "0x4DC4D0", VA = "0x1804DD4D0")]
public static int GetHashCode(int[] data, int off, int len)
{
if (data != 0)
{
int num = len + 1;
int length = data.Length;
return off;
}
return 0;
}
// Token: 0x06009BE9 RID: 39913 RVA: 0x001FE5D0 File Offset: 0x001FC7D0
[Token(Token = "0x6009BE9")]
[Address(RVA = "0x4DD530", Offset = "0x4DC530", VA = "0x1804DD530")]
[CLSCompliant(false)]
public static int GetHashCode(uint[] data)
{
if (data != 0)
{
int length = data.Length;
int num = length - 1;
int num2 = length + 1;
uint num3 = data[num];
}
return 0;
}
// Token: 0x06009BEA RID: 39914 RVA: 0x001FE600 File Offset: 0x001FC800
[Token(Token = "0x6009BEA")]
[Address(RVA = "0x4DD4D0", Offset = "0x4DC4D0", VA = "0x1804DD4D0")]
[CLSCompliant(false)]
public static int GetHashCode(uint[] data, int off, int len)
{
if (data != 0)
{
int num = len + 1;
int length = data.Length;
uint num2 = data[off];
}
return 0;
}
// Token: 0x06009BEB RID: 39915 RVA: 0x001FE62C File Offset: 0x001FC82C
[Token(Token = "0x6009BEB")]
[Address(RVA = "0x4DD650", Offset = "0x4DC650", VA = "0x1804DD650")]
[CLSCompliant(false)]
public static int GetHashCode(ulong[] data)
{
if (data != 0)
{
int length = data.Length;
int num = length - 1;
long num2 = (long)((length + 1) * (int)((uint)257));
}
return 0;
}
// Token: 0x06009BEC RID: 39916 RVA: 0x001FE65C File Offset: 0x001FC85C
[Token(Token = "0x6009BEC")]
[Address(RVA = "0x4DD6C0", Offset = "0x4DC6C0", VA = "0x1804DD6C0")]
[CLSCompliant(false)]
public static int GetHashCode(ulong[] data, int off, int len)
{
if (data != 0)
{
int num = len + 1;
int length = data.Length;
long num2 = (long)(num * (int)((uint)257));
}
return 0;
}
// Token: 0x06009BED RID: 39917 RVA: 0x001FE688 File Offset: 0x001FC888
[Token(Token = "0x6009BED")]
[Address(RVA = "0x4DC690", Offset = "0x4DB690", VA = "0x1804DC690")]
public static byte[] Clone(byte[] data)
{
while (data != 0)
{
}
}
// Token: 0x06009BEE RID: 39918 RVA: 0x001FE69C File Offset: 0x001FC89C
[Token(Token = "0x6009BEE")]
[Address(RVA = "0x4DC370", Offset = "0x4DB370", VA = "0x1804DC370")]
public static byte[] Clone(byte[] data, byte[] existing)
{
if (data != 0)
{
if (existing != 0)
{
int length = existing.Length;
if (length == data.Length)
{
int num = 0;
int num2 = 0;
Array.Copy(data, num2, existing, num, length);
return existing;
}
}
return Arrays.Clone(data);
}
}
// Token: 0x06009BEF RID: 39919 RVA: 0x001FE6DC File Offset: 0x001FC8DC
[Token(Token = "0x6009BEF")]
[Address(RVA = "0x4DC590", Offset = "0x4DB590", VA = "0x1804DC590")]
public static int[] Clone(int[] data)
{
while (data != 0)
{
}
return 0;
}
// Token: 0x06009BF0 RID: 39920 RVA: 0x001FE6F0 File Offset: 0x001FC8F0
[Token(Token = "0x6009BF0")]
[Address(RVA = "0x4DC710", Offset = "0x4DB710", VA = "0x1804DC710")]
internal static uint[] Clone(uint[] data)
{
while (data != 0)
{
}
}
// Token: 0x06009BF1 RID: 39921 RVA: 0x001FE704 File Offset: 0x001FC904
[Token(Token = "0x6009BF1")]
[Address(RVA = "0x4DC420", Offset = "0x4DB420", VA = "0x1804DC420")]
public static long[] Clone(long[] data)
{
while (data != 0)
{
}
}
// Token: 0x06009BF2 RID: 39922 RVA: 0x001FE718 File Offset: 0x001FC918
[Token(Token = "0x6009BF2")]
[Address(RVA = "0x4DC610", Offset = "0x4DB610", VA = "0x1804DC610")]
[CLSCompliant(false)]
public static ulong[] Clone(ulong[] data)
{
while (data != 0)
{
}
}
// Token: 0x06009BF3 RID: 39923 RVA: 0x001FE72C File Offset: 0x001FC92C
[Token(Token = "0x6009BF3")]
[Address(RVA = "0x4DC4A0", Offset = "0x4DB4A0", VA = "0x1804DC4A0")]
[CLSCompliant(false)]
public static ulong[] Clone(ulong[] data, ulong[] existing)
{
if (data == 0 || existing == 0)
{
return;
}
int length = existing.Length;
if (length == data.Length)
{
int num = 0;
int num2 = 0;
Array.Copy(data, num2, existing, num, length);
return existing;
}
}
// Token: 0x06009BF4 RID: 39924 RVA: 0x001FE768 File Offset: 0x001FC968
[Token(Token = "0x6009BF4")]
[Address(RVA = "0x4DCC40", Offset = "0x4DBC40", VA = "0x1804DCC40")]
public static bool Contains(byte[] a, byte n)
{
int num = 0;
int length = a.Length;
if (num < length)
{
num++;
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BF5 RID: 39925 RVA: 0x001FE790 File Offset: 0x001FC990
[Token(Token = "0x6009BF5")]
[Address(RVA = "0x4DCBE0", Offset = "0x4DBBE0", VA = "0x1804DCBE0")]
public static bool Contains(short[] a, short n)
{
int num = 0;
int length = a.Length;
if (num < length)
{
if ("{il2cpp array field a->}" != n)
{
num++;
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BF6 RID: 39926 RVA: 0x001FE7C0 File Offset: 0x001FC9C0
[Token(Token = "0x6009BF6")]
[Address(RVA = "0x4DCCA0", Offset = "0x4DBCA0", VA = "0x1804DCCA0")]
public static bool Contains(int[] a, int n)
{
int num = 0;
int length = a.Length;
if (num < length)
{
if ("{il2cpp array field a->}" != n)
{
num++;
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009BF7 RID: 39927 RVA: 0x001FE7F0 File Offset: 0x001FC9F0
[Token(Token = "0x6009BF7")]
[Address(RVA = "0x4DD480", Offset = "0x4DC480", VA = "0x1804DD480")]
public static void Fill(byte[] buf, byte b)
{
int num = buf.Length;
if (num > 0)
{
num--;
}
}
// Token: 0x06009BF8 RID: 39928 RVA: 0x001FE814 File Offset: 0x001FCA14
[Token(Token = "0x6009BF8")]
[Address(RVA = "0x4DD430", Offset = "0x4DC430", VA = "0x1804DD430")]
public static void Fill(byte[] buf, int from, int to, byte b)
{
if (from < to)
{
}
}
// Token: 0x06009BF9 RID: 39929 RVA: 0x001FE82C File Offset: 0x001FCA2C
[Token(Token = "0x6009BF9")]
[Address(RVA = "0x4DD2D0", Offset = "0x4DC2D0", VA = "0x1804DD2D0")]
public static byte[] CopyOf(byte[] data, int newLength)
{
byte[] array = new byte[newLength];
int length = data.Length;
int num = Math.Min(newLength, length);
int num2 = 0;
int num3 = 0;
Array.Copy(data, num3, array, num2, num);
return array;
}
// Token: 0x06009BFA RID: 39930 RVA: 0x001FE868 File Offset: 0x001FCA68
[Token(Token = "0x6009BFA")]
[Address(RVA = "0x4DD170", Offset = "0x4DC170", VA = "0x1804DD170")]
public static char[] CopyOf(char[] data, int newLength)
{
char[] array = new char[newLength];
int length = data.Length;
int num = Math.Min(newLength, length);
int num2 = 0;
int num3 = 0;
Array.Copy(data, num3, array, num2, num);
return array;
}
// Token: 0x06009BFB RID: 39931 RVA: 0x001FE8A4 File Offset: 0x001FCAA4
[Token(Token = "0x6009BFB")]
[Address(RVA = "0x4DD380", Offset = "0x4DC380", VA = "0x1804DD380")]
public static int[] CopyOf(int[] data, int newLength)
{
int[] array = new int[newLength];
int length = data.Length;
int num = Math.Min(newLength, length);
int num2 = 0;
int num3 = 0;
Array.Copy(data, num3, array, num2, num);
return array;
}
// Token: 0x06009BFC RID: 39932 RVA: 0x001FE8E0 File Offset: 0x001FCAE0
[Token(Token = "0x6009BFC")]
[Address(RVA = "0x4DD220", Offset = "0x4DC220", VA = "0x1804DD220")]
public static long[] CopyOf(long[] data, int newLength)
{
long[] array = new long[newLength];
int length = data.Length;
int num = Math.Min(newLength, length);
int num2 = 0;
int num3 = 0;
Array.Copy(data, num3, array, num2, num);
return array;
}
// Token: 0x06009BFD RID: 39933 RVA: 0x001FE91C File Offset: 0x001FCB1C
[Token(Token = "0x6009BFD")]
[Address(RVA = "0x4DD0C0", Offset = "0x4DC0C0", VA = "0x1804DD0C0")]
public static BigInteger[] CopyOf(BigInteger[] data, int newLength)
{
BigInteger[] array = new BigInteger[newLength];
int length = data.Length;
int num = Math.Min(newLength, length);
int num2 = 0;
int num3 = 0;
Array.Copy(data, num3, array, num2, num);
return array;
}
// Token: 0x06009BFE RID: 39934 RVA: 0x001FE958 File Offset: 0x001FCB58
[Token(Token = "0x6009BFE")]
[Address(RVA = "0x4DCDF0", Offset = "0x4DBDF0", VA = "0x1804DCDF0")]
public static byte[] CopyOfRange(byte[] data, int from, int to)
{
int length = Arrays.GetLength(from, from);
byte[] array = new byte[from];
int num = data.Length;
num -= from;
int num2 = Math.Min(to, num);
int num3 = 0;
Array.Copy(data, from, array, num3, num2);
return array;
}
// Token: 0x06009BFF RID: 39935 RVA: 0x001FE9A0 File Offset: 0x001FCBA0
[Token(Token = "0x6009BFF")]
[Address(RVA = "0x4DCEE0", Offset = "0x4DBEE0", VA = "0x1804DCEE0")]
public static int[] CopyOfRange(int[] data, int from, int to)
{
int length = Arrays.GetLength(from, from);
int[] array = new int[from];
int num = data.Length;
num -= from;
int num2 = Math.Min(to, num);
int num3 = 0;
Array.Copy(data, from, array, num3, num2);
return array;
}
// Token: 0x06009C00 RID: 39936 RVA: 0x001FE9E8 File Offset: 0x001FCBE8
[Token(Token = "0x6009C00")]
[Address(RVA = "0x4DCD00", Offset = "0x4DBD00", VA = "0x1804DCD00")]
public static long[] CopyOfRange(long[] data, int from, int to)
{
int length = Arrays.GetLength(from, from);
long[] array = new long[from];
int num = data.Length;
num -= from;
int num2 = Math.Min(to, num);
int num3 = 0;
Array.Copy(data, from, array, num3, num2);
return array;
}
// Token: 0x06009C01 RID: 39937 RVA: 0x001FEA30 File Offset: 0x001FCC30
[Token(Token = "0x6009C01")]
[Address(RVA = "0x4DCFD0", Offset = "0x4DBFD0", VA = "0x1804DCFD0")]
public static BigInteger[] CopyOfRange(BigInteger[] data, int from, int to)
{
int length = Arrays.GetLength(from, from);
BigInteger[] array = new BigInteger[from];
int num = data.Length;
num -= from;
int num2 = Math.Min(to, num);
int num3 = 0;
Array.Copy(data, from, array, num3, num2);
return array;
}
// Token: 0x06009C02 RID: 39938 RVA: 0x001FEA78 File Offset: 0x001FCC78
[Token(Token = "0x6009C02")]
[Address(RVA = "0x4DD730", Offset = "0x4DC730", VA = "0x1804DD730")]
private static int GetLength(int from, int to)
{
return to;
}
// Token: 0x06009C03 RID: 39939 RVA: 0x001FEA98 File Offset: 0x001FCC98
[Token(Token = "0x6009C03")]
[Address(RVA = "0x4DBD60", Offset = "0x4DAD60", VA = "0x1804DBD60")]
public static byte[] Append(byte[] a, byte b)
{
if (a != 0)
{
int length = a.Length;
byte[] array = new byte[length + 1];
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
return array;
}
(new byte[1])[0] = b;
throw new NullReferenceException();
}
// Token: 0x06009C04 RID: 39940 RVA: 0x001FEAE0 File Offset: 0x001FCCE0
[Token(Token = "0x6009C04")]
[Address(RVA = "0x4DBBA0", Offset = "0x4DABA0", VA = "0x1804DBBA0")]
public static short[] Append(short[] a, short b)
{
if (a != 0)
{
int length = a.Length;
short[] array = new short[length + 1];
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
array[0] = b;
return array;
}
(new short[1])[0] = b;
throw new NullReferenceException();
}
// Token: 0x06009C05 RID: 39941 RVA: 0x001FEB30 File Offset: 0x001FCD30
[Token(Token = "0x6009C05")]
[Address(RVA = "0x4DBC80", Offset = "0x4DAC80", VA = "0x1804DBC80")]
public static int[] Append(int[] a, int b)
{
if (a != 0)
{
int length = a.Length;
int[] array = new int[length + 1];
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
array[0] = b;
return array;
}
(new int[1])[0] = b;
throw new NullReferenceException();
}
// Token: 0x06009C06 RID: 39942 RVA: 0x001FEB80 File Offset: 0x001FCD80
[Token(Token = "0x6009C06")]
[Address(RVA = "0x4DC920", Offset = "0x4DB920", VA = "0x1804DC920")]
public static byte[] Concatenate(byte[] a, byte[] b)
{
if (a == 0)
{
return Arrays.Clone(b);
}
if (b != 0)
{
byte[] array = new byte[b.Length];
int length = a.Length;
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
int length2 = b.Length;
int length3 = a.Length;
int num3 = 0;
Array.Copy(b, num3, array, length3, length2);
return array;
}
return Arrays.Clone(a);
}
// Token: 0x06009C07 RID: 39943 RVA: 0x001FEBE8 File Offset: 0x001FCDE8
[Token(Token = "0x6009C07")]
[Address(RVA = "0x4DC790", Offset = "0x4DB790", VA = "0x1804DC790")]
public static byte[] ConcatenateAll(params byte[][] vs)
{
byte[][] array = new byte[vs.Length][];
int num = 0;
int num2 = 0;
int num3 = 0;
int num4 = 0;
int length = vs.Length;
if (num4 < length)
{
byte[] array2 = vs[num3];
if (array2 != 0)
{
num++;
throw new ArrayTypeMismatchException();
}
num3++;
}
byte[] array3 = new byte[num2];
int num5 = 0;
if (num > 0)
{
byte[] array4 = array[num5];
int length2 = array4.Length;
int num6 = 0;
Array.Copy(array4, num6, array3, num5, length2);
num5++;
}
return array3;
}
// Token: 0x06009C08 RID: 39944 RVA: 0x001FEC80 File Offset: 0x001FCE80
[Token(Token = "0x6009C08")]
[Address(RVA = "0x4DCA30", Offset = "0x4DBA30", VA = "0x1804DCA30")]
public static int[] Concatenate(int[] a, int[] b)
{
if (a == 0)
{
return Arrays.Clone(b);
}
if (b != 0)
{
int[] array = new int[b.Length];
int length = a.Length;
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
int length2 = b.Length;
int length3 = a.Length;
int num3 = 0;
Array.Copy(b, num3, array, length3, length2);
return array;
}
return Arrays.Clone(a);
}
// Token: 0x06009C09 RID: 39945 RVA: 0x001FECE8 File Offset: 0x001FCEE8
[Token(Token = "0x6009C09")]
[Address(RVA = "0x4DDA50", Offset = "0x4DCA50", VA = "0x1804DDA50")]
public static byte[] Prepend(byte[] a, byte b)
{
if (a != 0)
{
int length = a.Length;
byte[] array = new byte[length + 1];
int num = 0;
Array.Copy(a, num, array, 1, length);
array[0] = b;
return array;
}
return new byte[] { b };
}
// Token: 0x06009C0A RID: 39946 RVA: 0x001FED38 File Offset: 0x001FCF38
[Token(Token = "0x6009C0A")]
[Address(RVA = "0x4DDB40", Offset = "0x4DCB40", VA = "0x1804DDB40")]
public static short[] Prepend(short[] a, short b)
{
if (a != 0)
{
int length = a.Length;
short[] array = new short[length + 1];
int num = 0;
Array.Copy(a, num, array, 1, length);
array[0] = b;
return array;
}
return new short[] { b };
}
// Token: 0x06009C0B RID: 39947 RVA: 0x001FED88 File Offset: 0x001FCF88
[Token(Token = "0x6009C0B")]
[Address(RVA = "0x4DD960", Offset = "0x4DC960", VA = "0x1804DD960")]
public static int[] Prepend(int[] a, int b)
{
if (a != 0)
{
int length = a.Length;
int[] array = new int[length + 1];
int num = 0;
Array.Copy(a, num, array, 1, length);
array[0] = b;
return array;
}
return new int[] { b };
}
// Token: 0x06009C0C RID: 39948 RVA: 0x001FEDD8 File Offset: 0x001FCFD8
[Token(Token = "0x6009C0C")]
[Address(RVA = "0x4DDCF0", Offset = "0x4DCCF0", VA = "0x1804DDCF0")]
public static byte[] Reverse(byte[] a)
{
if (a != 0)
{
int length = a.Length;
int num = 0;
byte[] array = new byte[length];
num++;
return array;
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009C0D RID: 39949 RVA: 0x001FEE08 File Offset: 0x001FD008
[Token(Token = "0x6009C0D")]
[Address(RVA = "0x4DDC30", Offset = "0x4DCC30", VA = "0x1804DDC30")]
public static int[] Reverse(int[] a)
{
if (a != 0)
{
int length = a.Length;
int num = 0;
int[] array = new int[length];
num++;
int num2 = a[num];
array[0] = num2;
return array;
}
return 0;
}
// Token: 0x06009C0E RID: 39950 RVA: 0x001FEE48 File Offset: 0x001FD048
[Token(Token = "0x6009C0E")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Arrays()
{
}
// Token: 0x0400689D RID: 26781
[Token(Token = "0x400689D")]
public static readonly byte[] EmptyBytes = new byte[0];
// Token: 0x0400689E RID: 26782
[Token(Token = "0x400689E")]
public static readonly int[] EmptyInts = new int[0];
}
}
@@ -0,0 +1,89 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A01 RID: 6657
[Token(Token = "0x2001A01")]
public abstract class BigIntegers
{
// Token: 0x06009C10 RID: 39952 RVA: 0x001FEE80 File Offset: 0x001FD080
[Token(Token = "0x6009C10")]
[Address(RVA = "0x4DFDF0", Offset = "0x4DEDF0", VA = "0x1804DFDF0")]
public static byte[] AsUnsignedByteArray(BigInteger n)
{
return n.ToByteArrayUnsigned();
}
// Token: 0x06009C11 RID: 39953 RVA: 0x001FEE9C File Offset: 0x001FD09C
[Token(Token = "0x6009C11")]
[Address(RVA = "0x4DFE10", Offset = "0x4DEE10", VA = "0x1804DFE10")]
public static byte[] AsUnsignedByteArray(int length, BigInteger n)
{
byte[] array = n.ToByteArrayUnsigned();
if (array.Length != length)
{
byte[] array2 = new byte[length];
int length2 = array.Length;
int num = array2.Length;
int num2 = 0;
num -= length2;
Array.Copy(array, num2, array2, num, length2);
}
return array;
}
// Token: 0x06009C12 RID: 39954 RVA: 0x001FEEE8 File Offset: 0x001FD0E8
[Token(Token = "0x6009C12")]
[Address(RVA = "0x4DFEE0", Offset = "0x4DEEE0", VA = "0x1804DFEE0")]
public static BigInteger CreateRandomInRange(BigInteger min, BigInteger max, SecureRandom random)
{
int num = min.CompareTo(max);
int num2 = min.BitLength;
int num3 = 0;
int num4 = max.BitLength;
num4 -= num3;
int num5 = 0;
num2 = max.BitLength;
BigInteger bigInteger = new BigInteger(num2, random);
int num6 = bigInteger.CompareTo(min);
if (bigInteger.CompareTo(max) > 0)
{
num5++;
num2 = max.Subtract(min).BitLength;
int num7;
BigInteger bigInteger2 = new BigInteger(num7, random);
num7 = num2 - 1;
return bigInteger2.Add(min);
}
BigInteger zero = BigInteger.Zero;
BigInteger bigInteger3 = max.Subtract(min);
BigInteger bigInteger4 = BigIntegers.CreateRandomInRange(zero, bigInteger3, random);
throw new NullReferenceException();
}
// Token: 0x06009C13 RID: 39955 RVA: 0x001FEF88 File Offset: 0x001FD188
[Token(Token = "0x6009C13")]
[Address(RVA = "0x4E00F0", Offset = "0x4DF0F0", VA = "0x1804E00F0")]
public static int GetUnsignedByteLength(BigInteger n)
{
int num = 0;
int num2 = n.BitLength;
num2 += 7;
return num2 + num;
}
// Token: 0x06009C14 RID: 39956 RVA: 0x001FEFB0 File Offset: 0x001FD1B0
[Token(Token = "0x6009C14")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected BigIntegers()
{
}
// Token: 0x0400689F RID: 26783
[Token(Token = "0x400689F")]
private const int MaxIterations = 1000;
}
}
@@ -0,0 +1,194 @@
using System;
using System.Collections;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A36 RID: 6710
[Token(Token = "0x2001A36")]
public abstract class CollectionUtilities
{
// Token: 0x06009DB7 RID: 40375 RVA: 0x00207C98 File Offset: 0x00205E98
[Token(Token = "0x6009DB7")]
[Address(RVA = "0x4E0800", Offset = "0x4DF800", VA = "0x1804E0800")]
public static void AddRange(IList to, IEnumerable range)
{
int num;
do
{
num = 0;
num += num;
num++;
uint num2;
if (num < (int)num2)
{
num += num;
num++;
}
num += num;
num++;
num += 19;
num += num;
num += 2;
num += 19;
if (num != 0)
{
}
}
while (num != 0);
}
// Token: 0x06009DB8 RID: 40376 RVA: 0x00207CEC File Offset: 0x00205EEC
[Token(Token = "0x6009DB8")]
[Address(RVA = "0x4E0A00", Offset = "0x4DFA00", VA = "0x1804E0A00")]
public static bool CheckElementsAreOfType(IEnumerable e, Type t)
{
int num;
do
{
num = 0;
bool flag;
while (flag)
{
}
if (flag)
{
}
}
while (num != 0);
if (num != -1)
{
}
return true;
}
// Token: 0x06009DB9 RID: 40377 RVA: 0x00207D20 File Offset: 0x00205F20
[Token(Token = "0x6009DB9")]
[Address(RVA = "0x4E0B90", Offset = "0x4DFB90", VA = "0x1804E0B90")]
public static IDictionary ReadOnly(IDictionary d)
{
/*
An exception occurred when decompiling this method (06009DB9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionary BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.CollectionUtilities::ReadOnly(System.Collections.IDictionary)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stfld:IDictionary(UnmodifiableDictionaryProxy::d, ldloc:UnmodifiableDictionaryProxy(var_0), ldloc:IDictionary(d))
}
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: 0x06009DBA RID: 40378 RVA: 0x00207D34 File Offset: 0x00205F34
[Token(Token = "0x6009DBA")]
[Address(RVA = "0x4E0C50", Offset = "0x4DFC50", VA = "0x1804E0C50")]
public static IList ReadOnly(IList l)
{
/*
An exception occurred when decompiling this method (06009DBA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.CollectionUtilities::ReadOnly(System.Collections.IList)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stfld:IList(UnmodifiableListProxy::l, ldloc:UnmodifiableListProxy(var_0), ldloc:IList(l))
}
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: 0x06009DBB RID: 40379 RVA: 0x00207D48 File Offset: 0x00205F48
[Token(Token = "0x6009DBB")]
[Address(RVA = "0x4E0BF0", Offset = "0x4DFBF0", VA = "0x1804E0BF0")]
public static ISet ReadOnly(ISet s)
{
/*
An exception occurred when decompiling this method (06009DBB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.CollectionUtilities::ReadOnly(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stfld:ISet(UnmodifiableSetProxy::s, ldloc:UnmodifiableSetProxy(var_0), ldloc:ISet(s))
}
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: 0x06009DBC RID: 40380 RVA: 0x00207D5C File Offset: 0x00205F5C
[Token(Token = "0x6009DBC")]
[Address(RVA = "0x4E0CB0", Offset = "0x4DFCB0", VA = "0x1804E0CB0")]
public static object RequireNext(IEnumerator e)
{
throw new NullReferenceException();
}
// Token: 0x06009DBD RID: 40381 RVA: 0x00207D74 File Offset: 0x00205F74
[Token(Token = "0x6009DBD")]
[Address(RVA = "0x4E0D40", Offset = "0x4DFD40", VA = "0x1804E0D40")]
public static string ToString(IEnumerable c)
{
StringBuilder stringBuilder = new StringBuilder("[");
if (stringBuilder != 0)
{
int hashCode = stringBuilder.GetHashCode();
int num = 0;
int num2 = 0;
if (num2 < num)
{
num2 += num2;
num2++;
}
if (num2 != 0)
{
int num3 = 0;
StringBuilder stringBuilder2 = stringBuilder.Append(", ");
if (num2 < num3)
{
num2 += num2;
num2++;
}
int num4 = num2.GetHashCode();
num4 += num4;
num4 += num4;
}
}
uint num5;
StringBuilder stringBuilder3 = stringBuilder.Append((char)num5);
throw new NullReferenceException();
}
// Token: 0x06009DBE RID: 40382 RVA: 0x00207DFC File Offset: 0x00205FFC
[Token(Token = "0x6009DBE")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected CollectionUtilities()
{
}
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A37 RID: 6711
[Token(Token = "0x2001A37")]
public sealed class EmptyEnumerable : IEnumerable
{
// Token: 0x06009DBF RID: 40383 RVA: 0x00207E10 File Offset: 0x00206010
[Token(Token = "0x6009DBF")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private EmptyEnumerable()
{
}
// Token: 0x06009DC0 RID: 40384 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009DC0")]
[Address(RVA = "0x4E6840", Offset = "0x4E5840", VA = "0x1804E6840", Slot = "4")]
public IEnumerator GetEnumerator()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009DC1 RID: 40385 RVA: 0x00207E24 File Offset: 0x00206024
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009DC1")]
[Address(RVA = "0x4E68A0", Offset = "0x4E58A0", VA = "0x1804E68A0")]
static EmptyEnumerable()
{
EmptyEnumerable emptyEnumerable = new EmptyEnumerable();
}
// Token: 0x04006A49 RID: 27209
[Token(Token = "0x4006A49")]
public static readonly IEnumerable Instance;
}
}
@@ -0,0 +1,79 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A38 RID: 6712
[Token(Token = "0x2001A38")]
public sealed class EmptyEnumerator : IEnumerator
{
// Token: 0x06009DC2 RID: 40386 RVA: 0x00207E38 File Offset: 0x00206038
[Token(Token = "0x6009DC2")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private EmptyEnumerator()
{
this.Reset();
}
// Token: 0x06009DC3 RID: 40387 RVA: 0x00207E4C File Offset: 0x0020604C
[Token(Token = "0x6009DC3")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "4")]
public bool MoveNext()
{
}
// Token: 0x06009DC4 RID: 40388 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009DC4")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "6")]
public void Reset()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17001918 RID: 6424
// (get) Token: 0x06009DC5 RID: 40389 RVA: 0x00207E5C File Offset: 0x0020605C
[Token(Token = "0x17001918")]
public object Current
{
[Token(Token = "0x6009DC5")]
[Address(RVA = "0x4E6960", Offset = "0x4E5960", VA = "0x1804E6960", Slot = "5")]
get
{
/*
An exception occurred when decompiling this method (06009DC5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.EmptyEnumerator::get_Current()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:InvalidOperationException(var_0_0A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("No elements")))
}
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: 0x06009DC6 RID: 40390 RVA: 0x00207E74 File Offset: 0x00206074
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009DC6")]
[Address(RVA = "0x4E6900", Offset = "0x4E5900", VA = "0x1804E6900")]
static EmptyEnumerator()
{
EmptyEnumerator emptyEnumerator;
emptyEnumerator.Reset();
}
// Token: 0x04006A4A RID: 27210
[Token(Token = "0x4006A4A")]
public static readonly IEnumerator Instance;
}
}
@@ -0,0 +1,54 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A39 RID: 6713
[Token(Token = "0x2001A39")]
public sealed class EnumerableProxy : IEnumerable
{
// Token: 0x06009DC7 RID: 40391 RVA: 0x00207E88 File Offset: 0x00206088
[Token(Token = "0x6009DC7")]
[Address(RVA = "0x4E6A10", Offset = "0x4E5A10", VA = "0x1804E6A10")]
public EnumerableProxy(IEnumerable inner)
{
/*
An exception occurred when decompiling this method (06009DC7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.EnumerableProxy::.ctor(System.Collections.IEnumerable)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("inner")))
}
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: 0x06009DC8 RID: 40392 RVA: 0x00207EB4 File Offset: 0x002060B4
[Token(Token = "0x6009DC8")]
[Address(RVA = "0x4E69C0", Offset = "0x4E59C0", VA = "0x1804E69C0", Slot = "4")]
public IEnumerator GetEnumerator()
{
IEnumerable enumerable = this.inner;
throw new NullReferenceException();
}
// Token: 0x04006A4B RID: 27211
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A4B")]
private readonly IEnumerable inner;
}
}
@@ -0,0 +1,233 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3A RID: 6714
[Token(Token = "0x2001A3A")]
public class HashSet : ISet, ICollection, IEnumerable
{
// Token: 0x06009DC9 RID: 40393 RVA: 0x00207ED0 File Offset: 0x002060D0
[Token(Token = "0x6009DC9")]
[Address(RVA = "0x4E7690", Offset = "0x4E6690", VA = "0x1804E7690")]
public HashSet()
{
Hashtable hashtable = new Hashtable();
this.impl = hashtable;
base..ctor();
}
// Token: 0x06009DCA RID: 40394 RVA: 0x00207EF0 File Offset: 0x002060F0
[Token(Token = "0x6009DCA")]
[Address(RVA = "0x4E7730", Offset = "0x4E6730", VA = "0x1804E7730")]
public HashSet(IEnumerable s)
{
int num;
do
{
num = 0;
Hashtable hashtable = new Hashtable();
this.impl = hashtable;
base..ctor();
IEnumerator enumerator;
if (hashtable != 0)
{
if (num < hashtable)
{
num += num;
num++;
}
enumerator = this.GetEnumerator();
num += num;
}
if (enumerator != 0)
{
}
}
while (num != 0);
}
// Token: 0x06009DCB RID: 40395 RVA: 0x00207F3C File Offset: 0x0020613C
[Token(Token = "0x6009DCB")]
[Address(RVA = "0x4E72A0", Offset = "0x4E62A0", VA = "0x1804E72A0", Slot = "18")]
public virtual void Add(object o)
{
IDictionary dictionary = this.impl;
}
// Token: 0x06009DCC RID: 40396 RVA: 0x00207F58 File Offset: 0x00206158
[Token(Token = "0x6009DCC")]
[Address(RVA = "0x4E7110", Offset = "0x4E6110", VA = "0x1804E7110", Slot = "19")]
public virtual void AddAll(IEnumerable e)
{
int num;
do
{
num = 0;
num += num;
num++;
IEnumerator enumerator = this.GetEnumerator();
num += num;
if (enumerator != 0)
{
}
}
while (num != 0);
}
// Token: 0x06009DCD RID: 40397 RVA: 0x00207F88 File Offset: 0x00206188
[Token(Token = "0x6009DCD")]
[Address(RVA = "0x4E7310", Offset = "0x4E6310", VA = "0x1804E7310", Slot = "20")]
public virtual void Clear()
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
// Token: 0x06009DCE RID: 40398 RVA: 0x00207FA4 File Offset: 0x002061A4
[Token(Token = "0x6009DCE")]
[Address(RVA = "0x4E7360", Offset = "0x4E6360", VA = "0x1804E7360", Slot = "21")]
public virtual bool Contains(object o)
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
// Token: 0x06009DCF RID: 40399 RVA: 0x00207FC0 File Offset: 0x002061C0
[Token(Token = "0x6009DCF")]
[Address(RVA = "0x4E73C0", Offset = "0x4E63C0", VA = "0x1804E73C0", Slot = "22")]
public virtual void CopyTo(Array array, int index)
{
IDictionary dictionary = this.impl;
}
// Token: 0x17001919 RID: 6425
// (get) Token: 0x06009DD0 RID: 40400 RVA: 0x00207FDC File Offset: 0x002061DC
[Token(Token = "0x17001919")]
public virtual int Count
{
[Token(Token = "0x6009DD0")]
[Address(RVA = "0x4E7920", Offset = "0x4E6920", VA = "0x1804E7920", Slot = "23")]
get
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
}
// Token: 0x06009DD1 RID: 40401 RVA: 0x00207FF8 File Offset: 0x002061F8
[Token(Token = "0x6009DD1")]
[Address(RVA = "0x4E7440", Offset = "0x4E6440", VA = "0x1804E7440", Slot = "24")]
public virtual IEnumerator GetEnumerator()
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
// Token: 0x1700191A RID: 6426
// (get) Token: 0x06009DD2 RID: 40402 RVA: 0x00208014 File Offset: 0x00206214
[Token(Token = "0x1700191A")]
public virtual bool IsEmpty
{
[Token(Token = "0x6009DD2")]
[Address(RVA = "0x4E7970", Offset = "0x4E6970", VA = "0x1804E7970", Slot = "25")]
get
{
IDictionary dictionary = this.impl;
bool flag;
return flag;
}
}
// Token: 0x1700191B RID: 6427
// (get) Token: 0x06009DD3 RID: 40403 RVA: 0x00208030 File Offset: 0x00206230
[Token(Token = "0x1700191B")]
public virtual bool IsFixedSize
{
[Token(Token = "0x6009DD3")]
[Address(RVA = "0x4E79C0", Offset = "0x4E69C0", VA = "0x1804E79C0", Slot = "26")]
get
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
}
// Token: 0x1700191C RID: 6428
// (get) Token: 0x06009DD4 RID: 40404 RVA: 0x0020804C File Offset: 0x0020624C
[Token(Token = "0x1700191C")]
public virtual bool IsReadOnly
{
[Token(Token = "0x6009DD4")]
[Address(RVA = "0x4E7A10", Offset = "0x4E6A10", VA = "0x1804E7A10", Slot = "27")]
get
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
}
// Token: 0x1700191D RID: 6429
// (get) Token: 0x06009DD5 RID: 40405 RVA: 0x00208068 File Offset: 0x00206268
[Token(Token = "0x1700191D")]
public virtual bool IsSynchronized
{
[Token(Token = "0x6009DD5")]
[Address(RVA = "0x4E7A60", Offset = "0x4E6A60", VA = "0x1804E7A60", Slot = "28")]
get
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
}
// Token: 0x06009DD6 RID: 40406 RVA: 0x00208084 File Offset: 0x00206284
[Token(Token = "0x6009DD6")]
[Address(RVA = "0x4E7630", Offset = "0x4E6630", VA = "0x1804E7630", Slot = "29")]
public virtual void Remove(object o)
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
// Token: 0x06009DD7 RID: 40407 RVA: 0x002080A0 File Offset: 0x002062A0
[Token(Token = "0x6009DD7")]
[Address(RVA = "0x4E74A0", Offset = "0x4E64A0", VA = "0x1804E74A0", Slot = "30")]
public virtual void RemoveAll(IEnumerable e)
{
int num;
do
{
num = 0;
num += num;
num++;
bool isSynchronized = this.IsSynchronized;
num += num;
if (isSynchronized)
{
}
}
while (num != 0);
}
// Token: 0x1700191E RID: 6430
// (get) Token: 0x06009DD8 RID: 40408 RVA: 0x002080D0 File Offset: 0x002062D0
[Token(Token = "0x1700191E")]
public virtual object SyncRoot
{
[Token(Token = "0x6009DD8")]
[Address(RVA = "0x4E7AB0", Offset = "0x4E6AB0", VA = "0x1804E7AB0", Slot = "31")]
get
{
IDictionary dictionary = this.impl;
throw new NullReferenceException();
}
}
// Token: 0x04006A4C RID: 27212
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A4C")]
private readonly IDictionary impl;
}
}
@@ -0,0 +1,71 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3B RID: 6715
[Token(Token = "0x2001A3B")]
public interface ISet : ICollection, IEnumerable
{
// Token: 0x06009DD9 RID: 40409
[Token(Token = "0x6009DD9")]
[Address(Slot = "0")]
void Add(object o);
// Token: 0x06009DDA RID: 40410
[Token(Token = "0x6009DDA")]
[Address(Slot = "1")]
void AddAll(IEnumerable e);
// Token: 0x06009DDB RID: 40411
[Token(Token = "0x6009DDB")]
[Address(Slot = "2")]
void Clear();
// Token: 0x06009DDC RID: 40412
[Token(Token = "0x6009DDC")]
[Address(Slot = "3")]
bool Contains(object o);
// Token: 0x1700191F RID: 6431
// (get) Token: 0x06009DDD RID: 40413
[Token(Token = "0x1700191F")]
bool IsEmpty
{
[Token(Token = "0x6009DDD")]
[Address(Slot = "4")]
get;
}
// Token: 0x17001920 RID: 6432
// (get) Token: 0x06009DDE RID: 40414
[Token(Token = "0x17001920")]
bool IsFixedSize
{
[Token(Token = "0x6009DDE")]
[Address(Slot = "5")]
get;
}
// Token: 0x17001921 RID: 6433
// (get) Token: 0x06009DDF RID: 40415
[Token(Token = "0x17001921")]
bool IsReadOnly
{
[Token(Token = "0x6009DDF")]
[Address(Slot = "6")]
get;
}
// Token: 0x06009DE0 RID: 40416
[Token(Token = "0x6009DE0")]
[Address(Slot = "7")]
void Remove(object o);
// Token: 0x06009DE1 RID: 40417
[Token(Token = "0x6009DE1")]
[Address(Slot = "8")]
void RemoveAll(IEnumerable e);
}
}
@@ -0,0 +1,322 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3C RID: 6716
[Token(Token = "0x2001A3C")]
public class LinkedDictionary : IDictionary, ICollection, IEnumerable
{
// Token: 0x06009DE2 RID: 40418 RVA: 0x002080EC File Offset: 0x002062EC
[Token(Token = "0x6009DE2")]
[Address(RVA = "0x4EE570", Offset = "0x4ED570", VA = "0x1804EE570")]
public LinkedDictionary()
{
Hashtable hashtable = new Hashtable();
this.hash = hashtable;
ArrayList arrayList = new ArrayList();
this.keys = arrayList;
base..ctor();
}
// Token: 0x06009DE3 RID: 40419 RVA: 0x0020811C File Offset: 0x0020631C
[Token(Token = "0x6009DE3")]
[Address(RVA = "0x4EE0D0", Offset = "0x4ED0D0", VA = "0x1804EE0D0", Slot = "20")]
public virtual void Add(object k, object v)
{
IDictionary dictionary = this.hash;
IList list = this.keys;
throw new NullReferenceException();
}
// Token: 0x06009DE4 RID: 40420 RVA: 0x0020813C File Offset: 0x0020633C
[Token(Token = "0x6009DE4")]
[Address(RVA = "0x4EE160", Offset = "0x4ED160", VA = "0x1804EE160", Slot = "21")]
public virtual void Clear()
{
IDictionary dictionary = this.hash;
IList list = this.keys;
throw new NullReferenceException();
}
// Token: 0x06009DE5 RID: 40421 RVA: 0x0020815C File Offset: 0x0020635C
[Token(Token = "0x6009DE5")]
[Address(RVA = "0x4EE1D0", Offset = "0x4ED1D0", VA = "0x1804EE1D0", Slot = "22")]
public virtual bool Contains(object k)
{
IDictionary dictionary = this.hash;
throw new NullReferenceException();
}
// Token: 0x06009DE6 RID: 40422 RVA: 0x00208178 File Offset: 0x00206378
[Token(Token = "0x6009DE6")]
[Address(RVA = "0x4EE230", Offset = "0x4ED230", VA = "0x1804EE230", Slot = "23")]
public virtual void CopyTo(Array array, int index)
{
int num;
do
{
num = 0;
IList list = this.keys;
num += num;
num++;
IDictionary dictionary = this.hash;
uint num2;
if (num < (int)num2)
{
num += num;
num++;
}
array.SetValue(num, index);
num += num;
num++;
num += 19;
num += num;
num += 19;
if (num != 0)
{
}
}
while (num != 0);
}
// Token: 0x17001922 RID: 6434
// (get) Token: 0x06009DE7 RID: 40423 RVA: 0x002081E4 File Offset: 0x002063E4
[Token(Token = "0x17001922")]
public virtual int Count
{
[Token(Token = "0x6009DE7")]
[Address(RVA = "0x4EE640", Offset = "0x4ED640", VA = "0x1804EE640", Slot = "24")]
get
{
IDictionary dictionary = this.hash;
throw new NullReferenceException();
}
}
// Token: 0x06009DE8 RID: 40424 RVA: 0x00208200 File Offset: 0x00206400
[Token(Token = "0x6009DE8")]
[Address(RVA = "0x4EE550", Offset = "0x4ED550", VA = "0x1804EE550", Slot = "19")]
IEnumerator IEnumerable.GetEnumerator()
{
/*
An exception occurred when decompiling this method (06009DE8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.LinkedDictionary::System.Collections.IEnumerable.GetEnumerator()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:IEnumerator`1(var_0_06, call:IEnumerator`1(IEnumerable`1::GetEnumerator, ldloc:LinkedDictionary[exp:IEnumerable`1](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: 0x06009DE9 RID: 40425 RVA: 0x00208214 File Offset: 0x00206414
[Token(Token = "0x6009DE9")]
[Address(RVA = "0x4EE470", Offset = "0x4ED470", VA = "0x1804EE470", Slot = "25")]
public virtual IDictionaryEnumerator GetEnumerator()
{
/*
An exception occurred when decompiling this method (06009DE9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionaryEnumerator BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.LinkedDictionary::GetEnumerator()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stfld:int32(LinkedDictionaryEnumerator::pos, ldloc:LinkedDictionaryEnumerator(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](4294967295)))
stfld:LinkedDictionary(LinkedDictionaryEnumerator::parent, ldloc:LinkedDictionaryEnumerator(var_0), ldloc:LinkedDictionary(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: 0x06009DEA RID: 40426 RVA: 0x00208238 File Offset: 0x00206438
[Token(Token = "0x6009DEA")]
[Address(RVA = "0x4EE4D0", Offset = "0x4ED4D0", VA = "0x1804EE4D0", Slot = "26")]
public virtual void Remove(object k)
{
IDictionary dictionary = this.hash;
IList list = this.keys;
throw new NullReferenceException();
}
// Token: 0x17001923 RID: 6435
// (get) Token: 0x06009DEB RID: 40427 RVA: 0x00208258 File Offset: 0x00206458
[Token(Token = "0x17001923")]
public virtual bool IsFixedSize
{
[Token(Token = "0x6009DEB")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "27")]
get
{
}
}
// Token: 0x17001924 RID: 6436
// (get) Token: 0x06009DEC RID: 40428 RVA: 0x00208268 File Offset: 0x00206468
[Token(Token = "0x17001924")]
public virtual bool IsReadOnly
{
[Token(Token = "0x6009DEC")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "28")]
get
{
}
}
// Token: 0x17001925 RID: 6437
// (get) Token: 0x06009DED RID: 40429 RVA: 0x00208278 File Offset: 0x00206478
[Token(Token = "0x17001925")]
public virtual bool IsSynchronized
{
[Token(Token = "0x6009DED")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "29")]
get
{
}
}
// Token: 0x17001926 RID: 6438
// (get) Token: 0x06009DEE RID: 40430 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x17001926")]
public virtual object SyncRoot
{
[Token(Token = "0x6009DEE")]
[Address(RVA = "0x4EE780", Offset = "0x4ED780", VA = "0x1804EE780", Slot = "30")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x17001927 RID: 6439
// (get) Token: 0x06009DEF RID: 40431 RVA: 0x00208288 File Offset: 0x00206488
[Token(Token = "0x17001927")]
public virtual ICollection Keys
{
[Token(Token = "0x6009DEF")]
[Address(RVA = "0x4EE6F0", Offset = "0x4ED6F0", VA = "0x1804EE6F0", Slot = "31")]
get
{
/*
An exception occurred when decompiling this method (06009DEF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.LinkedDictionary::get_Keys()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ArrayList(var_0_0B, newobj:ArrayList(ArrayList::.ctor, ldfld:IList[exp:ICollection](LinkedDictionary::keys, ldloc:LinkedDictionary(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: 0x17001928 RID: 6440
// (get) Token: 0x06009DF0 RID: 40432 RVA: 0x002082A0 File Offset: 0x002064A0
[Token(Token = "0x17001928")]
public virtual ICollection Values
{
[Token(Token = "0x6009DF0")]
[Address(RVA = "0x4EE7C0", Offset = "0x4ED7C0", VA = "0x1804EE7C0", Slot = "32")]
get
{
int num;
do
{
num = 0;
IList list = this.keys;
IList list2 = this.keys;
ArrayList arrayList;
if (arrayList != 0)
{
if (num < arrayList)
{
num += num;
num++;
}
IDictionary dictionary = this.hash;
uint num2;
if (num < (int)num2)
{
num += num;
num++;
}
int num3 = 0;
if (num < num3)
{
num += num;
num++;
}
num += num;
num += num;
num += num;
}
bool flag;
if (flag)
{
}
}
while (num != 0);
throw new NullReferenceException();
}
}
// Token: 0x17001929 RID: 6441
[Token(Token = "0x17001929")]
public virtual object this[object k]
{
[Token(Token = "0x6009DF1")]
[Address(RVA = "0x4EE690", Offset = "0x4ED690", VA = "0x1804EE690", Slot = "33")]
get
{
IDictionary dictionary = this.hash;
throw new NullReferenceException();
}
[Token(Token = "0x6009DF2")]
[Address(RVA = "0x4EEAF0", Offset = "0x4EDAF0", VA = "0x1804EEAF0", Slot = "34")]
set
{
IDictionary dictionary = this.hash;
IList list = this.keys;
IDictionary dictionary2 = this.hash;
}
}
// Token: 0x04006A4D RID: 27213
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A4D")]
internal readonly IDictionary hash;
// Token: 0x04006A4E RID: 27214
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A4E")]
internal readonly IList keys;
}
}
@@ -0,0 +1,143 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3D RID: 6717
[Token(Token = "0x2001A3D")]
internal class LinkedDictionaryEnumerator : IDictionaryEnumerator, IEnumerator
{
// Token: 0x06009DF3 RID: 40435 RVA: 0x00208364 File Offset: 0x00206564
[Token(Token = "0x6009DF3")]
[Address(RVA = "0x4EDE60", Offset = "0x4ECE60", VA = "0x1804EDE60")]
internal LinkedDictionaryEnumerator(LinkedDictionary parent)
{
this.parent = parent;
}
// Token: 0x1700192A RID: 6442
// (get) Token: 0x06009DF4 RID: 40436 RVA: 0x00208390 File Offset: 0x00206590
[Token(Token = "0x1700192A")]
public virtual object Current
{
[Token(Token = "0x6009DF4")]
[Address(RVA = "0x4EDF50", Offset = "0x4ECF50", VA = "0x1804EDF50", Slot = "10")]
get
{
object obj;
return obj;
}
}
// Token: 0x1700192B RID: 6443
// (get) Token: 0x06009DF5 RID: 40437 RVA: 0x002083A0 File Offset: 0x002065A0
[Token(Token = "0x1700192B")]
public virtual DictionaryEntry Entry
{
[Token(Token = "0x6009DF5")]
[Address(RVA = "0x4EDFB0", Offset = "0x4ECFB0", VA = "0x1804EDFB0", Slot = "11")]
get
{
throw new NullReferenceException();
}
}
// Token: 0x1700192C RID: 6444
// (get) Token: 0x06009DF6 RID: 40438 RVA: 0x002083B8 File Offset: 0x002065B8
[Token(Token = "0x1700192C")]
public virtual object Key
{
[Token(Token = "0x6009DF6")]
[Address(RVA = "0x4EE050", Offset = "0x4ED050", VA = "0x1804EE050", Slot = "12")]
get
{
return this.CurrentKey;
}
}
// Token: 0x06009DF7 RID: 40439 RVA: 0x002083CC File Offset: 0x002065CC
[Token(Token = "0x6009DF7")]
[Address(RVA = "0x4EDDB0", Offset = "0x4ECDB0", VA = "0x1804EDDB0", Slot = "13")]
public virtual bool MoveNext()
{
LinkedDictionary linkedDictionary = this.parent;
int num = this.pos;
IList keys = linkedDictionary.keys;
if (num < linkedDictionary)
{
int num2 = this.pos;
LinkedDictionary linkedDictionary2 = this.parent;
num2++;
this.pos = num2;
IList keys2 = linkedDictionary2.keys;
return num2 < linkedDictionary2;
}
throw new NullReferenceException();
}
// Token: 0x06009DF8 RID: 40440 RVA: 0x00208424 File Offset: 0x00206624
[Token(Token = "0x6009DF8")]
[Address(RVA = "0x4EDE50", Offset = "0x4ECE50", VA = "0x1804EDE50", Slot = "14")]
public virtual void Reset()
{
this.pos = (int)((ulong)4294967295L);
}
// Token: 0x1700192D RID: 6445
// (get) Token: 0x06009DF9 RID: 40441 RVA: 0x00208444 File Offset: 0x00206644
[Token(Token = "0x1700192D")]
public virtual object Value
{
[Token(Token = "0x6009DF9")]
[Address(RVA = "0x4EE060", Offset = "0x4ED060", VA = "0x1804EE060", Slot = "15")]
get
{
IDictionary hash = this.parent.hash;
object currentKey = this.CurrentKey;
throw new NullReferenceException();
}
}
// Token: 0x1700192E RID: 6446
// (get) Token: 0x06009DFA RID: 40442 RVA: 0x0020846C File Offset: 0x0020666C
[Token(Token = "0x1700192E")]
private object CurrentKey
{
[Token(Token = "0x6009DFA")]
[Address(RVA = "0x4EDE90", Offset = "0x4ECE90", VA = "0x1804EDE90")]
get
{
/*
An exception occurred when decompiling this method (06009DFA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.LinkedDictionaryEnumerator::get_CurrentKey()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_25:
stloc:InvalidOperationException(var_4_2A, 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: 0x04006A4F RID: 27215
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A4F")]
private readonly LinkedDictionary parent;
// Token: 0x04006A50 RID: 27216
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A50")]
private int pos = (int)((ulong)4294967295L);
}
}
@@ -0,0 +1,269 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3E RID: 6718
[Token(Token = "0x2001A3E")]
public abstract class UnmodifiableDictionary : IDictionary, ICollection, IEnumerable
{
// Token: 0x06009DFB RID: 40443 RVA: 0x002084A4 File Offset: 0x002066A4
[Token(Token = "0x6009DFB")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected UnmodifiableDictionary()
{
}
// Token: 0x06009DFC RID: 40444 RVA: 0x002084B8 File Offset: 0x002066B8
[Token(Token = "0x6009DFC")]
[Address(RVA = "0x4F42C0", Offset = "0x4F32C0", VA = "0x1804F42C0", Slot = "20")]
public virtual void Add(object k, object v)
{
/*
An exception occurred when decompiling this method (06009DFC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::Add(System.Object,System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009DFD RID: 40445 RVA: 0x002084CC File Offset: 0x002066CC
[Token(Token = "0x6009DFD")]
[Address(RVA = "0x4F4310", Offset = "0x4F3310", VA = "0x1804F4310", Slot = "21")]
public virtual void Clear()
{
/*
An exception occurred when decompiling this method (06009DFD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::Clear()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009DFE RID: 40446
[Token(Token = "0x6009DFE")]
[Address(Slot = "22")]
public abstract bool Contains(object k);
// Token: 0x06009DFF RID: 40447
[Token(Token = "0x6009DFF")]
[Address(Slot = "23")]
public abstract void CopyTo(Array array, int index);
// Token: 0x1700192F RID: 6447
// (get) Token: 0x06009E00 RID: 40448
[Token(Token = "0x1700192F")]
public abstract int Count
{
[Token(Token = "0x6009E00")]
[Address(Slot = "24")]
get;
}
// Token: 0x06009E01 RID: 40449 RVA: 0x002084E0 File Offset: 0x002066E0
[Token(Token = "0x6009E01")]
[Address(RVA = "0x4EE550", Offset = "0x4ED550", VA = "0x1804EE550", Slot = "19")]
IEnumerator IEnumerable.GetEnumerator()
{
/*
An exception occurred when decompiling this method (06009E01)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerator BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::System.Collections.IEnumerable.GetEnumerator()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, callgetter:int32(UnmodifiableDictionary::get_Count, ldloc:UnmodifiableDictionary(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: 0x06009E02 RID: 40450
[Token(Token = "0x6009E02")]
[Address(Slot = "25")]
public abstract IDictionaryEnumerator GetEnumerator();
// Token: 0x06009E03 RID: 40451 RVA: 0x002084F4 File Offset: 0x002066F4
[Token(Token = "0x6009E03")]
[Address(RVA = "0x4F4360", Offset = "0x4F3360", VA = "0x1804F4360", Slot = "26")]
public virtual void Remove(object k)
{
/*
An exception occurred when decompiling this method (06009E03)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::Remove(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x17001930 RID: 6448
// (get) Token: 0x06009E04 RID: 40452
[Token(Token = "0x17001930")]
public abstract bool IsFixedSize
{
[Token(Token = "0x6009E04")]
[Address(Slot = "27")]
get;
}
// Token: 0x17001931 RID: 6449
// (get) Token: 0x06009E05 RID: 40453 RVA: 0x00208508 File Offset: 0x00206708
[Token(Token = "0x17001931")]
public virtual bool IsReadOnly
{
[Token(Token = "0x6009E05")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "28")]
get
{
return true;
}
}
// Token: 0x17001932 RID: 6450
// (get) Token: 0x06009E06 RID: 40454
[Token(Token = "0x17001932")]
public abstract bool IsSynchronized
{
[Token(Token = "0x6009E06")]
[Address(Slot = "29")]
get;
}
// Token: 0x17001933 RID: 6451
// (get) Token: 0x06009E07 RID: 40455
[Token(Token = "0x17001933")]
public abstract object SyncRoot
{
[Token(Token = "0x6009E07")]
[Address(Slot = "30")]
get;
}
// Token: 0x17001934 RID: 6452
// (get) Token: 0x06009E08 RID: 40456
[Token(Token = "0x17001934")]
public abstract ICollection Keys
{
[Token(Token = "0x6009E08")]
[Address(Slot = "31")]
get;
}
// Token: 0x17001935 RID: 6453
// (get) Token: 0x06009E09 RID: 40457
[Token(Token = "0x17001935")]
public abstract ICollection Values
{
[Token(Token = "0x6009E09")]
[Address(Slot = "32")]
get;
}
// Token: 0x17001936 RID: 6454
[Token(Token = "0x17001936")]
public virtual object this[object k]
{
[Token(Token = "0x6009E0A")]
[Address(RVA = "0x4F43B0", Offset = "0x4F33B0", VA = "0x1804F43B0", Slot = "33")]
get
{
/*
An exception occurred when decompiling this method (06009E0A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::get_Item(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:bool(var_0_07, call:bool(UnmodifiableDictionary::Contains, ldloc:UnmodifiableDictionary(this), ldloc:object(k)))
}
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 = "0x6009E0B")]
[Address(RVA = "0x4F43D0", Offset = "0x4F33D0", VA = "0x1804F43D0", Slot = "34")]
set
{
/*
An exception occurred when decompiling this method (06009E0B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableDictionary::set_Item(System.Object,System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009E0C RID: 40460
[Token(Token = "0x6009E0C")]
[Address(Slot = "35")]
protected abstract object GetValue(object k);
}
}
@@ -0,0 +1,143 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A3F RID: 6719
[Token(Token = "0x2001A3F")]
public class UnmodifiableDictionaryProxy : UnmodifiableDictionary
{
// Token: 0x06009E0D RID: 40461 RVA: 0x00208540 File Offset: 0x00206740
[Token(Token = "0x6009E0D")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public UnmodifiableDictionaryProxy(IDictionary d)
{
this.d = d;
}
// Token: 0x06009E0E RID: 40462 RVA: 0x0020855C File Offset: 0x0020675C
[Token(Token = "0x6009E0E")]
[Address(RVA = "0x4F3F60", Offset = "0x4F2F60", VA = "0x1804F3F60", Slot = "22")]
public override bool Contains(object k)
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
// Token: 0x06009E0F RID: 40463 RVA: 0x00208578 File Offset: 0x00206778
[Token(Token = "0x6009E0F")]
[Address(RVA = "0x4F3FC0", Offset = "0x4F2FC0", VA = "0x1804F3FC0", Slot = "23")]
public override void CopyTo(Array array, int index)
{
IDictionary dictionary = this.d;
}
// Token: 0x17001937 RID: 6455
// (get) Token: 0x06009E10 RID: 40464 RVA: 0x00208594 File Offset: 0x00206794
[Token(Token = "0x17001937")]
public override int Count
{
[Token(Token = "0x6009E10")]
[Address(RVA = "0x4F40E0", Offset = "0x4F30E0", VA = "0x1804F40E0", Slot = "24")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x06009E11 RID: 40465 RVA: 0x002085B0 File Offset: 0x002067B0
[Token(Token = "0x6009E11")]
[Address(RVA = "0x4F4030", Offset = "0x4F3030", VA = "0x1804F4030", Slot = "25")]
public override IDictionaryEnumerator GetEnumerator()
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
// Token: 0x17001938 RID: 6456
// (get) Token: 0x06009E12 RID: 40466 RVA: 0x002085CC File Offset: 0x002067CC
[Token(Token = "0x17001938")]
public override bool IsFixedSize
{
[Token(Token = "0x6009E12")]
[Address(RVA = "0x4F4130", Offset = "0x4F3130", VA = "0x1804F4130", Slot = "27")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x17001939 RID: 6457
// (get) Token: 0x06009E13 RID: 40467 RVA: 0x002085E8 File Offset: 0x002067E8
[Token(Token = "0x17001939")]
public override bool IsSynchronized
{
[Token(Token = "0x6009E13")]
[Address(RVA = "0x4F4180", Offset = "0x4F3180", VA = "0x1804F4180", Slot = "29")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x1700193A RID: 6458
// (get) Token: 0x06009E14 RID: 40468 RVA: 0x00208604 File Offset: 0x00206804
[Token(Token = "0x1700193A")]
public override object SyncRoot
{
[Token(Token = "0x6009E14")]
[Address(RVA = "0x4F4220", Offset = "0x4F3220", VA = "0x1804F4220", Slot = "30")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x1700193B RID: 6459
// (get) Token: 0x06009E15 RID: 40469 RVA: 0x00208620 File Offset: 0x00206820
[Token(Token = "0x1700193B")]
public override ICollection Keys
{
[Token(Token = "0x6009E15")]
[Address(RVA = "0x4F41D0", Offset = "0x4F31D0", VA = "0x1804F41D0", Slot = "31")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x1700193C RID: 6460
// (get) Token: 0x06009E16 RID: 40470 RVA: 0x0020863C File Offset: 0x0020683C
[Token(Token = "0x1700193C")]
public override ICollection Values
{
[Token(Token = "0x6009E16")]
[Address(RVA = "0x4F4270", Offset = "0x4F3270", VA = "0x1804F4270", Slot = "32")]
get
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
}
// Token: 0x06009E17 RID: 40471 RVA: 0x00208658 File Offset: 0x00206858
[Token(Token = "0x6009E17")]
[Address(RVA = "0x4F4080", Offset = "0x4F3080", VA = "0x1804F4080", Slot = "35")]
protected override object GetValue(object k)
{
IDictionary dictionary = this.d;
throw new NullReferenceException();
}
// Token: 0x04006A51 RID: 27217
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A51")]
private readonly IDictionary d;
}
}
@@ -0,0 +1,280 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A40 RID: 6720
[Token(Token = "0x2001A40")]
public abstract class UnmodifiableList : IList, ICollection, IEnumerable
{
// Token: 0x06009E18 RID: 40472 RVA: 0x00208674 File Offset: 0x00206874
[Token(Token = "0x6009E18")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected UnmodifiableList()
{
}
// Token: 0x06009E19 RID: 40473 RVA: 0x00208688 File Offset: 0x00206888
[Token(Token = "0x6009E19")]
[Address(RVA = "0x4F4740", Offset = "0x4F3740", VA = "0x1804F4740", Slot = "20")]
public virtual int Add(object o)
{
/*
An exception occurred when decompiling this method (06009E19)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::Add(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E1A RID: 40474 RVA: 0x0020869C File Offset: 0x0020689C
[Token(Token = "0x6009E1A")]
[Address(RVA = "0x4F4790", Offset = "0x4F3790", VA = "0x1804F4790", Slot = "21")]
public virtual void Clear()
{
/*
An exception occurred when decompiling this method (06009E1A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::Clear()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E1B RID: 40475
[Token(Token = "0x6009E1B")]
[Address(Slot = "22")]
public abstract bool Contains(object o);
// Token: 0x06009E1C RID: 40476
[Token(Token = "0x6009E1C")]
[Address(Slot = "23")]
public abstract void CopyTo(Array array, int index);
// Token: 0x1700193D RID: 6461
// (get) Token: 0x06009E1D RID: 40477
[Token(Token = "0x1700193D")]
public abstract int Count
{
[Token(Token = "0x6009E1D")]
[Address(Slot = "24")]
get;
}
// Token: 0x06009E1E RID: 40478
[Token(Token = "0x6009E1E")]
[Address(Slot = "25")]
public abstract IEnumerator GetEnumerator();
// Token: 0x06009E1F RID: 40479
[Token(Token = "0x6009E1F")]
[Address(Slot = "26")]
public abstract int IndexOf(object o);
// Token: 0x06009E20 RID: 40480 RVA: 0x002086B0 File Offset: 0x002068B0
[Token(Token = "0x6009E20")]
[Address(RVA = "0x4F47E0", Offset = "0x4F37E0", VA = "0x1804F47E0", Slot = "27")]
public virtual void Insert(int i, object o)
{
/*
An exception occurred when decompiling this method (06009E20)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::Insert(System.Int32,System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x1700193E RID: 6462
// (get) Token: 0x06009E21 RID: 40481
[Token(Token = "0x1700193E")]
public abstract bool IsFixedSize
{
[Token(Token = "0x6009E21")]
[Address(Slot = "28")]
get;
}
// Token: 0x1700193F RID: 6463
// (get) Token: 0x06009E22 RID: 40482 RVA: 0x002086C4 File Offset: 0x002068C4
[Token(Token = "0x1700193F")]
public virtual bool IsReadOnly
{
[Token(Token = "0x6009E22")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "29")]
get
{
return true;
}
}
// Token: 0x17001940 RID: 6464
// (get) Token: 0x06009E23 RID: 40483
[Token(Token = "0x17001940")]
public abstract bool IsSynchronized
{
[Token(Token = "0x6009E23")]
[Address(Slot = "30")]
get;
}
// Token: 0x06009E24 RID: 40484 RVA: 0x002086D4 File Offset: 0x002068D4
[Token(Token = "0x6009E24")]
[Address(RVA = "0x4F4880", Offset = "0x4F3880", VA = "0x1804F4880", Slot = "31")]
public virtual void Remove(object o)
{
/*
An exception occurred when decompiling this method (06009E24)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::Remove(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E25 RID: 40485 RVA: 0x002086E8 File Offset: 0x002068E8
[Token(Token = "0x6009E25")]
[Address(RVA = "0x4F4830", Offset = "0x4F3830", VA = "0x1804F4830", Slot = "32")]
public virtual void RemoveAt(int i)
{
/*
An exception occurred when decompiling this method (06009E25)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::RemoveAt(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x17001941 RID: 6465
// (get) Token: 0x06009E26 RID: 40486
[Token(Token = "0x17001941")]
public abstract object SyncRoot
{
[Token(Token = "0x6009E26")]
[Address(Slot = "33")]
get;
}
// Token: 0x17001942 RID: 6466
[Token(Token = "0x17001942")]
public virtual object this[int i]
{
[Token(Token = "0x6009E27")]
[Address(RVA = "0x4F48D0", Offset = "0x4F38D0", VA = "0x1804F48D0", Slot = "34")]
get
{
/*
An exception occurred when decompiling this method (06009E27)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::get_Item(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:bool(var_0_07, call:bool(UnmodifiableList::Contains, ldloc:UnmodifiableList(this), ldloc:int32[exp:object](i)))
}
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 = "0x6009E28")]
[Address(RVA = "0x4F48F0", Offset = "0x4F38F0", VA = "0x1804F48F0", Slot = "35")]
set
{
/*
An exception occurred when decompiling this method (06009E28)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableList::set_Item(System.Int32,System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009E29 RID: 40489
[Token(Token = "0x6009E29")]
[Address(Slot = "36")]
protected abstract object GetValue(int i);
}
}
@@ -0,0 +1,124 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A41 RID: 6721
[Token(Token = "0x2001A41")]
public class UnmodifiableListProxy : UnmodifiableList
{
// Token: 0x06009E2A RID: 40490 RVA: 0x00208724 File Offset: 0x00206924
[Token(Token = "0x6009E2A")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public UnmodifiableListProxy(IList l)
{
this.l = l;
}
// Token: 0x06009E2B RID: 40491 RVA: 0x00208740 File Offset: 0x00206940
[Token(Token = "0x6009E2B")]
[Address(RVA = "0x4F4420", Offset = "0x4F3420", VA = "0x1804F4420", Slot = "22")]
public override bool Contains(object o)
{
IList list = this.l;
throw new NullReferenceException();
}
// Token: 0x06009E2C RID: 40492 RVA: 0x0020875C File Offset: 0x0020695C
[Token(Token = "0x6009E2C")]
[Address(RVA = "0x4F4480", Offset = "0x4F3480", VA = "0x1804F4480", Slot = "23")]
public override void CopyTo(Array array, int index)
{
IList list = this.l;
}
// Token: 0x17001943 RID: 6467
// (get) Token: 0x06009E2D RID: 40493 RVA: 0x00208778 File Offset: 0x00206978
[Token(Token = "0x17001943")]
public override int Count
{
[Token(Token = "0x6009E2D")]
[Address(RVA = "0x4F4600", Offset = "0x4F3600", VA = "0x1804F4600", Slot = "24")]
get
{
IList list = this.l;
throw new NullReferenceException();
}
}
// Token: 0x06009E2E RID: 40494 RVA: 0x00208794 File Offset: 0x00206994
[Token(Token = "0x6009E2E")]
[Address(RVA = "0x4F44F0", Offset = "0x4F34F0", VA = "0x1804F44F0", Slot = "25")]
public override IEnumerator GetEnumerator()
{
IList list = this.l;
throw new NullReferenceException();
}
// Token: 0x06009E2F RID: 40495 RVA: 0x002087B0 File Offset: 0x002069B0
[Token(Token = "0x6009E2F")]
[Address(RVA = "0x4F45A0", Offset = "0x4F35A0", VA = "0x1804F45A0", Slot = "26")]
public override int IndexOf(object o)
{
IList list = this.l;
throw new NullReferenceException();
}
// Token: 0x17001944 RID: 6468
// (get) Token: 0x06009E30 RID: 40496 RVA: 0x002087CC File Offset: 0x002069CC
[Token(Token = "0x17001944")]
public override bool IsFixedSize
{
[Token(Token = "0x6009E30")]
[Address(RVA = "0x4F4650", Offset = "0x4F3650", VA = "0x1804F4650", Slot = "28")]
get
{
IList list = this.l;
throw new NullReferenceException();
}
}
// Token: 0x17001945 RID: 6469
// (get) Token: 0x06009E31 RID: 40497 RVA: 0x002087E8 File Offset: 0x002069E8
[Token(Token = "0x17001945")]
public override bool IsSynchronized
{
[Token(Token = "0x6009E31")]
[Address(RVA = "0x4F46A0", Offset = "0x4F36A0", VA = "0x1804F46A0", Slot = "30")]
get
{
IList list = this.l;
throw new NullReferenceException();
}
}
// Token: 0x17001946 RID: 6470
// (get) Token: 0x06009E32 RID: 40498 RVA: 0x00208804 File Offset: 0x00206A04
[Token(Token = "0x17001946")]
public override object SyncRoot
{
[Token(Token = "0x6009E32")]
[Address(RVA = "0x4F46F0", Offset = "0x4F36F0", VA = "0x1804F46F0", Slot = "33")]
get
{
IList list = this.l;
throw new NullReferenceException();
}
}
// Token: 0x06009E33 RID: 40499 RVA: 0x00208820 File Offset: 0x00206A20
[Token(Token = "0x6009E33")]
[Address(RVA = "0x4F4540", Offset = "0x4F3540", VA = "0x1804F4540", Slot = "36")]
protected override object GetValue(int i)
{
IList list = this.l;
throw new NullReferenceException();
}
// Token: 0x04006A52 RID: 27218
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A52")]
private readonly IList l;
}
}
@@ -0,0 +1,226 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A42 RID: 6722
[Token(Token = "0x2001A42")]
public abstract class UnmodifiableSet : ISet, ICollection, IEnumerable
{
// Token: 0x06009E34 RID: 40500 RVA: 0x0020883C File Offset: 0x00206A3C
[Token(Token = "0x6009E34")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected UnmodifiableSet()
{
}
// Token: 0x06009E35 RID: 40501 RVA: 0x00208850 File Offset: 0x00206A50
[Token(Token = "0x6009E35")]
[Address(RVA = "0x4F4C40", Offset = "0x4F3C40", VA = "0x1804F4C40", Slot = "18")]
public virtual void Add(object o)
{
/*
An exception occurred when decompiling this method (06009E35)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableSet::Add(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E36 RID: 40502 RVA: 0x00208864 File Offset: 0x00206A64
[Token(Token = "0x6009E36")]
[Address(RVA = "0x4F4BF0", Offset = "0x4F3BF0", VA = "0x1804F4BF0", Slot = "19")]
public virtual void AddAll(IEnumerable e)
{
/*
An exception occurred when decompiling this method (06009E36)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableSet::AddAll(System.Collections.IEnumerable)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E37 RID: 40503 RVA: 0x00208878 File Offset: 0x00206A78
[Token(Token = "0x6009E37")]
[Address(RVA = "0x4F4C90", Offset = "0x4F3C90", VA = "0x1804F4C90", Slot = "20")]
public virtual void Clear()
{
/*
An exception occurred when decompiling this method (06009E37)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableSet::Clear()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E38 RID: 40504
[Token(Token = "0x6009E38")]
[Address(Slot = "21")]
public abstract bool Contains(object o);
// Token: 0x06009E39 RID: 40505
[Token(Token = "0x6009E39")]
[Address(Slot = "22")]
public abstract void CopyTo(Array array, int index);
// Token: 0x17001947 RID: 6471
// (get) Token: 0x06009E3A RID: 40506
[Token(Token = "0x17001947")]
public abstract int Count
{
[Token(Token = "0x6009E3A")]
[Address(Slot = "23")]
get;
}
// Token: 0x06009E3B RID: 40507
[Token(Token = "0x6009E3B")]
[Address(Slot = "24")]
public abstract IEnumerator GetEnumerator();
// Token: 0x17001948 RID: 6472
// (get) Token: 0x06009E3C RID: 40508
[Token(Token = "0x17001948")]
public abstract bool IsEmpty
{
[Token(Token = "0x6009E3C")]
[Address(Slot = "25")]
get;
}
// Token: 0x17001949 RID: 6473
// (get) Token: 0x06009E3D RID: 40509
[Token(Token = "0x17001949")]
public abstract bool IsFixedSize
{
[Token(Token = "0x6009E3D")]
[Address(Slot = "26")]
get;
}
// Token: 0x1700194A RID: 6474
// (get) Token: 0x06009E3E RID: 40510 RVA: 0x0020888C File Offset: 0x00206A8C
[Token(Token = "0x1700194A")]
public virtual bool IsReadOnly
{
[Token(Token = "0x6009E3E")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "27")]
get
{
return true;
}
}
// Token: 0x1700194B RID: 6475
// (get) Token: 0x06009E3F RID: 40511
[Token(Token = "0x1700194B")]
public abstract bool IsSynchronized
{
[Token(Token = "0x6009E3F")]
[Address(Slot = "28")]
get;
}
// Token: 0x1700194C RID: 6476
// (get) Token: 0x06009E40 RID: 40512
[Token(Token = "0x1700194C")]
public abstract object SyncRoot
{
[Token(Token = "0x6009E40")]
[Address(Slot = "29")]
get;
}
// Token: 0x06009E41 RID: 40513 RVA: 0x0020889C File Offset: 0x00206A9C
[Token(Token = "0x6009E41")]
[Address(RVA = "0x4F4D30", Offset = "0x4F3D30", VA = "0x1804F4D30", Slot = "30")]
public virtual void Remove(object o)
{
/*
An exception occurred when decompiling this method (06009E41)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableSet::Remove(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009E42 RID: 40514 RVA: 0x002088B0 File Offset: 0x00206AB0
[Token(Token = "0x6009E42")]
[Address(RVA = "0x4F4CE0", Offset = "0x4F3CE0", VA = "0x1804F4CE0", Slot = "31")]
public virtual void RemoveAll(IEnumerable e)
{
/*
An exception occurred when decompiling this method (06009E42)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.UnmodifiableSet::RemoveAll(System.Collections.IEnumerable)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
}
@@ -0,0 +1,120 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections
{
// Token: 0x02001A43 RID: 6723
[Token(Token = "0x2001A43")]
public class UnmodifiableSetProxy : UnmodifiableSet
{
// Token: 0x06009E43 RID: 40515 RVA: 0x002088C4 File Offset: 0x00206AC4
[Token(Token = "0x6009E43")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public UnmodifiableSetProxy(ISet s)
{
this.s = s;
}
// Token: 0x06009E44 RID: 40516 RVA: 0x002088E0 File Offset: 0x00206AE0
[Token(Token = "0x6009E44")]
[Address(RVA = "0x4F4940", Offset = "0x4F3940", VA = "0x1804F4940", Slot = "21")]
public override bool Contains(object o)
{
ISet set = this.s;
throw new NullReferenceException();
}
// Token: 0x06009E45 RID: 40517 RVA: 0x002088FC File Offset: 0x00206AFC
[Token(Token = "0x6009E45")]
[Address(RVA = "0x4F49A0", Offset = "0x4F39A0", VA = "0x1804F49A0", Slot = "22")]
public override void CopyTo(Array array, int index)
{
ISet set = this.s;
}
// Token: 0x1700194D RID: 6477
// (get) Token: 0x06009E46 RID: 40518 RVA: 0x00208918 File Offset: 0x00206B18
[Token(Token = "0x1700194D")]
public override int Count
{
[Token(Token = "0x6009E46")]
[Address(RVA = "0x4F4A60", Offset = "0x4F3A60", VA = "0x1804F4A60", Slot = "23")]
get
{
ISet set = this.s;
throw new NullReferenceException();
}
}
// Token: 0x06009E47 RID: 40519 RVA: 0x00208934 File Offset: 0x00206B34
[Token(Token = "0x6009E47")]
[Address(RVA = "0x4F4A10", Offset = "0x4F3A10", VA = "0x1804F4A10", Slot = "24")]
public override IEnumerator GetEnumerator()
{
ISet set = this.s;
throw new NullReferenceException();
}
// Token: 0x1700194E RID: 6478
// (get) Token: 0x06009E48 RID: 40520 RVA: 0x00208950 File Offset: 0x00206B50
[Token(Token = "0x1700194E")]
public override bool IsEmpty
{
[Token(Token = "0x6009E48")]
[Address(RVA = "0x4F4AB0", Offset = "0x4F3AB0", VA = "0x1804F4AB0", Slot = "25")]
get
{
ISet set = this.s;
throw new NullReferenceException();
}
}
// Token: 0x1700194F RID: 6479
// (get) Token: 0x06009E49 RID: 40521 RVA: 0x0020896C File Offset: 0x00206B6C
[Token(Token = "0x1700194F")]
public override bool IsFixedSize
{
[Token(Token = "0x6009E49")]
[Address(RVA = "0x4F4B00", Offset = "0x4F3B00", VA = "0x1804F4B00", Slot = "26")]
get
{
ISet set = this.s;
throw new NullReferenceException();
}
}
// Token: 0x17001950 RID: 6480
// (get) Token: 0x06009E4A RID: 40522 RVA: 0x00208988 File Offset: 0x00206B88
[Token(Token = "0x17001950")]
public override bool IsSynchronized
{
[Token(Token = "0x6009E4A")]
[Address(RVA = "0x4F4B50", Offset = "0x4F3B50", VA = "0x1804F4B50", Slot = "28")]
get
{
ISet set = this.s;
throw new NullReferenceException();
}
}
// Token: 0x17001951 RID: 6481
// (get) Token: 0x06009E4B RID: 40523 RVA: 0x002089A4 File Offset: 0x00206BA4
[Token(Token = "0x17001951")]
public override object SyncRoot
{
[Token(Token = "0x6009E4B")]
[Address(RVA = "0x4F4BA0", Offset = "0x4F3BA0", VA = "0x1804F4BA0", Slot = "29")]
get
{
ISet set = this.s;
throw new NullReferenceException();
}
}
// Token: 0x04006A53 RID: 27219
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A53")]
private readonly ISet s;
}
}
@@ -0,0 +1,46 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date
{
// Token: 0x02001A34 RID: 6708
[Token(Token = "0x2001A34")]
public sealed class DateTimeObject
{
// Token: 0x06009DAF RID: 40367 RVA: 0x00207BC0 File Offset: 0x00205DC0
[Token(Token = "0x6009DAF")]
[Address(RVA = "0x4E1000", Offset = "0x4E0000", VA = "0x1804E1000")]
public DateTimeObject(DateTime dt)
{
this.dt = dt;
}
// Token: 0x17001917 RID: 6423
// (get) Token: 0x06009DB0 RID: 40368 RVA: 0x00207BDC File Offset: 0x00205DDC
[Token(Token = "0x17001917")]
public DateTime Value
{
[Token(Token = "0x6009DB0")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.dt;
}
}
// Token: 0x06009DB1 RID: 40369 RVA: 0x00207BF0 File Offset: 0x00205DF0
[Token(Token = "0x6009DB1")]
[Address(RVA = "0x4E0FE0", Offset = "0x4DFFE0", VA = "0x1804E0FE0", Slot = "3")]
public override string ToString()
{
DateTime dateTime = this.dt;
string text;
return text;
}
// Token: 0x04006A47 RID: 27207
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A47")]
private readonly DateTime dt;
}
}
@@ -0,0 +1,104 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date
{
// Token: 0x02001A35 RID: 6709
[Token(Token = "0x2001A35")]
public class DateTimeUtilities
{
// Token: 0x06009DB2 RID: 40370 RVA: 0x00207C08 File Offset: 0x00205E08
[Token(Token = "0x6009DB2")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private DateTimeUtilities()
{
}
// Token: 0x06009DB3 RID: 40371 RVA: 0x00207C1C File Offset: 0x00205E1C
[Token(Token = "0x6009DB3")]
[Address(RVA = "0x4E11C0", Offset = "0x4E01C0", VA = "0x1804E11C0")]
public static long DateTimeToUnixMs(DateTime dateTime)
{
/*
An exception occurred when decompiling this method (06009DB3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date.DateTimeUtilities::DateTimeToUnixMs(System.DateTime)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_1, sub:int32(ldloc:int32(var_1), ldloc:int32(var_1)))
stloc:uint64(var_2, add:uint64(ldloc:uint64(var_2), ldloc:uint64(var_2)))
stloc:ArgumentException(var_3_17, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("DateTime value may not be before the epoch"), ldstr:string("dateTime")))
}
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: 0x06009DB4 RID: 40372 RVA: 0x00207C40 File Offset: 0x00205E40
[Token(Token = "0x6009DB4")]
[Address(RVA = "0x4E12F0", Offset = "0x4E02F0", VA = "0x1804E12F0")]
public static DateTime UnixMsToDateTime(long unixMs)
{
/*
An exception occurred when decompiling this method (06009DB4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.DateTime BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date.DateTimeUtilities::UnixMsToDateTime(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int64(var_1_09, mul:int64(ldloc:int64(unixMs), conv.u8:uint64[exp:int64](ldc.i8:int64[exp:uint64](10000))))
}
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: 0x06009DB5 RID: 40373 RVA: 0x00207C58 File Offset: 0x00205E58
[Token(Token = "0x6009DB5")]
[Address(RVA = "0x4E1030", Offset = "0x4E0030", VA = "0x1804E1030")]
public static long CurrentUnixMs()
{
/*
An exception occurred when decompiling this method (06009DB5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date.DateTimeUtilities::CurrentUnixMs()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DateTime(var_1_07, callgetter:DateTime(DateTime::get_UtcNow))
stloc:int32(var_3, sub:int32(ldloc:int32(var_3), ldloc:int32(var_3)))
stloc:uint64(var_4, add:uint64(ldloc:uint64(var_4), ldloc:uint64(var_4)))
stloc:ArgumentException(var_5_22, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("DateTime value may not be before the epoch"), ldstr:string("dateTime")))
}
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: 0x04006A48 RID: 27208
[Token(Token = "0x4006A48")]
public static readonly DateTime UnixEpoch;
}
}
@@ -0,0 +1,105 @@
using System;
using System.IO;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A29 RID: 6697
[Token(Token = "0x2001A29")]
public sealed class Base64
{
// Token: 0x06009D6F RID: 40303 RVA: 0x00206DB4 File Offset: 0x00204FB4
[Token(Token = "0x6009D6F")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private Base64()
{
}
// Token: 0x06009D70 RID: 40304 RVA: 0x00206DC8 File Offset: 0x00204FC8
[Token(Token = "0x6009D70")]
[Address(RVA = "0x4DF6D0", Offset = "0x4DE6D0", VA = "0x1804DF6D0")]
public static string ToBase64String(byte[] data)
{
int length = data.Length;
int num = 0;
return Convert.ToBase64String(data, num, length);
}
// Token: 0x06009D71 RID: 40305 RVA: 0x00206DEC File Offset: 0x00204FEC
[Token(Token = "0x6009D71")]
[Address(RVA = "0x4DF660", Offset = "0x4DE660", VA = "0x1804DF660")]
public static string ToBase64String(byte[] data, int off, int length)
{
return Convert.ToBase64String(data, off, length);
}
// Token: 0x06009D72 RID: 40306 RVA: 0x00206E04 File Offset: 0x00205004
[Token(Token = "0x6009D72")]
[Address(RVA = "0x4DF4C0", Offset = "0x4DE4C0", VA = "0x1804DF4C0")]
public static byte[] Encode(byte[] data)
{
int length = data.Length;
int num = 0;
return Base64.Encode(data, num, length);
}
// Token: 0x06009D73 RID: 40307 RVA: 0x00206E28 File Offset: 0x00205028
[Token(Token = "0x6009D73")]
[Address(RVA = "0x4DF5C0", Offset = "0x4DE5C0", VA = "0x1804DF5C0")]
public static byte[] Encode(byte[] data, int off, int length)
{
string text = Convert.ToBase64String(data, off, length);
Encoding ascii = Encoding.ASCII;
throw new NullReferenceException();
}
// Token: 0x06009D74 RID: 40308 RVA: 0x00206E4C File Offset: 0x0020504C
[Token(Token = "0x6009D74")]
[Address(RVA = "0x4DF550", Offset = "0x4DE550", VA = "0x1804DF550")]
public static int Encode(byte[] data, Stream outStream)
{
int length = data.Length;
int num = 0;
byte[] array = Base64.Encode(data, num, length);
int num2 = outStream.ReadByte();
return array.Length;
}
// Token: 0x06009D75 RID: 40309 RVA: 0x00206E80 File Offset: 0x00205080
[Token(Token = "0x6009D75")]
[Address(RVA = "0x4DF4F0", Offset = "0x4DE4F0", VA = "0x1804DF4F0")]
public static int Encode(byte[] data, int off, int length, Stream outStream)
{
byte[] array = Base64.Encode(data, off, length);
int num = outStream.ReadByte();
return array.Length;
}
// Token: 0x06009D76 RID: 40310 RVA: 0x00206EAC File Offset: 0x002050AC
[Token(Token = "0x6009D76")]
[Address(RVA = "0x4DF330", Offset = "0x4DE330", VA = "0x1804DF330")]
public static byte[] Decode(byte[] data)
{
return Convert.FromBase64String(Encoding.ASCII.GetString(data));
}
// Token: 0x06009D77 RID: 40311 RVA: 0x00206ED4 File Offset: 0x002050D4
[Token(Token = "0x6009D77")]
[Address(RVA = "0x4DF460", Offset = "0x4DE460", VA = "0x1804DF460")]
public static byte[] Decode(string data)
{
return Convert.FromBase64String(data);
}
// Token: 0x06009D78 RID: 40312 RVA: 0x00206EE8 File Offset: 0x002050E8
[Token(Token = "0x6009D78")]
[Address(RVA = "0x4DF3C0", Offset = "0x4DE3C0", VA = "0x1804DF3C0")]
public static int Decode(string data, Stream outStream)
{
byte[] array = Convert.FromBase64String(data);
int num = outStream.ReadByte();
return array.Length;
}
}
}
@@ -0,0 +1,254 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2A RID: 6698
[Token(Token = "0x2001A2A")]
public class Base64Encoder : IEncoder
{
// Token: 0x06009D79 RID: 40313 RVA: 0x00206F10 File Offset: 0x00205110
[Token(Token = "0x6009D79")]
[Address(RVA = "0x4DECA0", Offset = "0x4DDCA0", VA = "0x1804DECA0")]
protected void InitialiseDecodingTable()
{
int num = this.decodingTable.Length;
if (num > 0)
{
num--;
}
byte[] array = this.encodingTable;
int num2 = 0;
if (num2 < array.Length)
{
byte[] array2 = this.decodingTable;
num2++;
byte[] array3 = this.encodingTable;
}
}
// Token: 0x06009D7A RID: 40314 RVA: 0x00206F5C File Offset: 0x0020515C
[Token(Token = "0x6009D7A")]
[Address(RVA = "0x4DEDB0", Offset = "0x4DDDB0", VA = "0x1804DEDB0")]
public Base64Encoder()
{
byte[] array = new byte[64];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.0953DF544832295E4A5B19928F95C351F25DA86A).FieldHandle);
this.encodingTable = array;
this.padding = (byte)((ulong)61L);
byte[] array2 = new byte[128];
this.decodingTable = array2;
base..ctor();
this.InitialiseDecodingTable();
}
// Token: 0x06009D7B RID: 40315 RVA: 0x00206FAC File Offset: 0x002051AC
[Token(Token = "0x6009D7B")]
[Address(RVA = "0x4DE810", Offset = "0x4DD810", VA = "0x1804DE810", Slot = "4")]
public int Encode(byte[] data, int off, int length, Stream outStream)
{
int length2 = data.Length;
int num = off + 1;
byte b = data[num];
byte[] array = this.encodingTable;
byte[] array2 = this.encodingTable;
byte[] array3 = this.encodingTable;
byte[] array4 = this.encodingTable;
byte b2;
if (length != 0)
{
if (length == 0)
{
goto IL_70;
}
if (length == 1)
{
int length3 = data.Length;
byte[] array5 = this.encodingTable;
byte[] array6 = this.encodingTable;
byte[] array7 = this.encodingTable;
b2 = this.padding;
}
}
b2 += b2;
IL_70:
byte[] array8 = this.encodingTable;
byte[] array9 = this.encodingTable;
throw new NullReferenceException();
}
// Token: 0x06009D7C RID: 40316 RVA: 0x00207040 File Offset: 0x00205240
[Token(Token = "0x6009D7C")]
[Address(RVA = "0x4DF240", Offset = "0x4DE240", VA = "0x1804DF240")]
private bool ignore(char c)
{
return true;
}
// Token: 0x06009D7D RID: 40317 RVA: 0x00207050 File Offset: 0x00205250
[Token(Token = "0x6009D7D")]
[Address(RVA = "0x4DE300", Offset = "0x4DD300", VA = "0x1804DE300", Slot = "5")]
public int Decode(byte[] data, int off, int length, Stream outStream)
{
int num = 0;
if (off >= length || off == 250)
{
}
if (off < length)
{
byte[] array = this.decodingTable;
int length2 = data.Length;
int length3 = array.Length;
if (off >= length || off == 250)
{
}
if (off < length)
{
if (off == 250)
{
}
bool flag;
if (flag)
{
}
}
if (off < length)
{
if (off == 250)
{
}
bool flag2;
if (flag2)
{
}
}
num += 3;
if (off < length)
{
int length4 = data.Length;
if (off == 250)
{
}
if (off < length)
{
}
}
}
int length5 = data.Length;
int num2;
num2 += num;
return num2;
}
// Token: 0x06009D7E RID: 40318 RVA: 0x002070EC File Offset: 0x002052EC
[Token(Token = "0x6009D7E")]
[Address(RVA = "0x4DF260", Offset = "0x4DE260", VA = "0x1804DF260")]
private int nextI(byte[] data, int i, int finish)
{
if (i >= finish || i == 250)
{
}
return i;
}
// Token: 0x06009D7F RID: 40319 RVA: 0x0020710C File Offset: 0x0020530C
[Token(Token = "0x6009D7F")]
[Address(RVA = "0x4DDF40", Offset = "0x4DCF40", VA = "0x1804DDF40", Slot = "6")]
public int DecodeString(string data, Stream outStream)
{
int num = 0;
int num2 = data.m_stringLength;
uint num4;
if (num2 > 0)
{
int num3 = num2 - 1;
char c = data[num3];
if (num4 == data)
{
}
num2 = num3;
}
int num5 = 0;
int num6 = this.nextI(data, num5, (int)num4);
if (num6 < (int)num4)
{
byte[] array = this.decodingTable;
char c2 = data[num6];
int num7 = num6 + 1;
int num8 = this.nextI(data, num7, (int)num4);
byte[] array2 = this.decodingTable;
char c3 = data[num8];
int num9 = num8 + 1;
int num10 = this.nextI(data, num9, (int)num4);
byte[] array3 = this.decodingTable;
char c4 = data[num10];
int num11 = num10 + 1;
int num12 = this.nextI(data, num11, (int)num4);
byte[] array4 = this.decodingTable;
num10 = num12;
char c5 = data[num12];
int num13 = num10 + 1;
if (num13 < (int)num4)
{
char c6 = data[num13];
uint num14;
if (num14 == data)
{
}
num13++;
}
}
char c7 = data[(int)num4];
char c8 = data[(int)num4];
char c9 = data[(int)num4];
int num15 = num2 - 1;
char c10 = data[num15];
int num16;
num16 += num;
return num16;
}
// Token: 0x06009D80 RID: 40320 RVA: 0x0020723C File Offset: 0x0020543C
[Token(Token = "0x6009D80")]
[Address(RVA = "0x4DEE40", Offset = "0x4DDE40", VA = "0x1804DEE40")]
private int decodeLastBlock(Stream outStream, char c1, char c2, char c3, char c4)
{
byte b = this.padding;
byte[] array = this.decodingTable;
int length = array.Length;
return 3;
}
// Token: 0x06009D81 RID: 40321 RVA: 0x00207280 File Offset: 0x00205480
[Token(Token = "0x6009D81")]
[Address(RVA = "0x4DF2C0", Offset = "0x4DE2C0", VA = "0x1804DF2C0")]
private int nextI(string data, int i, int finish)
{
if (i < finish)
{
char c = data[i];
if ((uint)65530 == data)
{
}
}
return i;
}
// Token: 0x04006A39 RID: 27193
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A39")]
protected readonly byte[] encodingTable;
// Token: 0x04006A3A RID: 27194
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A3A")]
protected byte padding;
// Token: 0x04006A3B RID: 27195
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A3B")]
protected readonly byte[] decodingTable;
}
}
@@ -0,0 +1,102 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2B RID: 6699
[Token(Token = "0x2001A2B")]
public class BufferedDecoder
{
// Token: 0x06009D82 RID: 40322 RVA: 0x002072AC File Offset: 0x002054AC
[Token(Token = "0x6009D82")]
[Address(RVA = "0x4E03D0", Offset = "0x4DF3D0", VA = "0x1804E03D0")]
public BufferedDecoder(ITranslator translator, int bufferSize)
{
/*
An exception occurred when decompiling this method (06009D82)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders.BufferedDecoder::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders.ITranslator,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2A:
stloc:ArgumentException(var_1_34, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("buffer size not multiple of input block size")))
}
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: 0x06009D83 RID: 40323 RVA: 0x002072F0 File Offset: 0x002054F0
[Token(Token = "0x6009D83")]
[Address(RVA = "0x4E0120", Offset = "0x4DF120", VA = "0x1804E0120")]
public int ProcessByte(byte input, byte[] output, int outOff)
{
int num = this.bufOff;
int num2 = 0;
byte[] array = this.buffer;
int num3 = num + 1;
this.bufOff = num3;
int length = this.buffer.Length;
if (this.bufOff == length)
{
ITranslator translator = this.translator;
this.bufOff = (int)((ulong)0L);
}
return num2;
}
// Token: 0x06009D84 RID: 40324 RVA: 0x00207348 File Offset: 0x00205548
[Token(Token = "0x6009D84")]
[Address(RVA = "0x4E0200", Offset = "0x4DF200", VA = "0x1804E0200")]
public int ProcessBytes(byte[] input, int inOff, int len, byte[] outBytes, int outOff)
{
byte[] array = this.buffer;
int num = 0;
int num2 = array.Length;
int num3 = this.bufOff;
num2 -= num3;
if (len > num2)
{
Array.Copy(input, inOff, array, num3, num2);
byte[] array2 = this.buffer;
ITranslator translator = this.translator;
int length = array2.Length;
byte[] array3 = this.buffer;
this.bufOff = num;
ITranslator translator2 = this.translator;
}
if (len != 0)
{
int num4 = this.bufOff;
byte[] array4 = this.buffer;
Array.Copy(input, inOff, array4, num4, len);
}
return num;
}
// Token: 0x04006A3C RID: 27196
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A3C")]
internal byte[] buffer;
// Token: 0x04006A3D RID: 27197
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A3D")]
internal int bufOff;
// Token: 0x04006A3E RID: 27198
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A3E")]
internal ITranslator translator;
}
}
@@ -0,0 +1,102 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2C RID: 6700
[Token(Token = "0x2001A2C")]
public class BufferedEncoder
{
// Token: 0x06009D85 RID: 40325 RVA: 0x002073E0 File Offset: 0x002055E0
[Token(Token = "0x6009D85")]
[Address(RVA = "0x4E0740", Offset = "0x4DF740", VA = "0x1804E0740")]
public BufferedEncoder(ITranslator translator, int bufferSize)
{
/*
An exception occurred when decompiling this method (06009D85)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders.BufferedEncoder::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders.ITranslator,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2A:
stloc:ArgumentException(var_1_34, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("buffer size not multiple of input block size")))
}
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: 0x06009D86 RID: 40326 RVA: 0x00207424 File Offset: 0x00205624
[Token(Token = "0x6009D86")]
[Address(RVA = "0x4E0490", Offset = "0x4DF490", VA = "0x1804E0490")]
public int ProcessByte(byte input, byte[] outBytes, int outOff)
{
int num = this.bufOff;
int num2 = 0;
byte[] buffer = this.Buffer;
int num3 = num + 1;
this.bufOff = num3;
int length = this.Buffer.Length;
if (this.bufOff == length)
{
ITranslator translator = this.translator;
this.bufOff = (int)((ulong)0L);
}
return num2;
}
// Token: 0x06009D87 RID: 40327 RVA: 0x0020747C File Offset: 0x0020567C
[Token(Token = "0x6009D87")]
[Address(RVA = "0x4E0570", Offset = "0x4DF570", VA = "0x1804E0570")]
public int ProcessBytes(byte[] input, int inOff, int len, byte[] outBytes, int outOff)
{
byte[] buffer = this.Buffer;
int num = 0;
int num2 = buffer.Length;
int num3 = this.bufOff;
num2 -= num3;
if (len > num2)
{
Array.Copy(input, inOff, buffer, num3, num2);
byte[] buffer2 = this.Buffer;
ITranslator translator = this.translator;
int length = buffer2.Length;
byte[] buffer3 = this.Buffer;
this.bufOff = num;
ITranslator translator2 = this.translator;
}
if (len != 0)
{
int num4 = this.bufOff;
byte[] buffer4 = this.Buffer;
Array.Copy(input, inOff, buffer4, num4, len);
}
return num;
}
// Token: 0x04006A3F RID: 27199
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A3F")]
internal byte[] Buffer;
// Token: 0x04006A40 RID: 27200
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A40")]
internal int bufOff;
// Token: 0x04006A41 RID: 27201
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A41")]
internal ITranslator translator;
}
}
@@ -0,0 +1,130 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2D RID: 6701
[Token(Token = "0x2001A2D")]
public sealed class Hex
{
// Token: 0x06009D88 RID: 40328 RVA: 0x00207514 File Offset: 0x00205714
[Token(Token = "0x6009D88")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private Hex()
{
}
// Token: 0x06009D89 RID: 40329 RVA: 0x00207528 File Offset: 0x00205728
[Token(Token = "0x6009D89")]
[Address(RVA = "0x4E8C00", Offset = "0x4E7C00", VA = "0x1804E8C00")]
public static string ToHexString(byte[] data)
{
int length = data.Length;
int num = 0;
byte[] array = Hex.Encode(data, num, length);
return Encoding.ASCII.GetString(array);
}
// Token: 0x06009D8A RID: 40330 RVA: 0x0020755C File Offset: 0x0020575C
[Token(Token = "0x6009D8A")]
[Address(RVA = "0x4E8CF0", Offset = "0x4E7CF0", VA = "0x1804E8CF0")]
public static string ToHexString(byte[] data, int off, int length)
{
byte[] array = Hex.Encode(data, off, length);
return Encoding.ASCII.GetString(array);
}
// Token: 0x06009D8B RID: 40331 RVA: 0x00207588 File Offset: 0x00205788
[Token(Token = "0x6009D8B")]
[Address(RVA = "0x4E8A40", Offset = "0x4E7A40", VA = "0x1804E8A40")]
public static byte[] Encode(byte[] data)
{
int length = data.Length;
int num = 0;
return Hex.Encode(data, num, length);
}
// Token: 0x06009D8C RID: 40332 RVA: 0x002075AC File Offset: 0x002057AC
[Token(Token = "0x6009D8C")]
[Address(RVA = "0x4E8960", Offset = "0x4E7960", VA = "0x1804E8960")]
public static byte[] Encode(byte[] data, int off, int length)
{
MemoryStream memoryStream = new MemoryStream(off);
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x06009D8D RID: 40333 RVA: 0x002075D0 File Offset: 0x002057D0
[Token(Token = "0x6009D8D")]
[Address(RVA = "0x4E8B60", Offset = "0x4E7B60", VA = "0x1804E8B60")]
public static int Encode(byte[] data, Stream outStream)
{
return data.Length;
}
// Token: 0x06009D8E RID: 40334 RVA: 0x002075EC File Offset: 0x002057EC
[Token(Token = "0x6009D8E")]
[Address(RVA = "0x4E8AB0", Offset = "0x4E7AB0", VA = "0x1804E8AB0")]
public static int Encode(byte[] data, int off, int length, Stream outStream)
{
throw new NullReferenceException();
}
// Token: 0x06009D8F RID: 40335 RVA: 0x00207600 File Offset: 0x00205800
[Token(Token = "0x6009D8F")]
[Address(RVA = "0x4E87F0", Offset = "0x4E77F0", VA = "0x1804E87F0")]
public static byte[] Decode(byte[] data)
{
int num;
MemoryStream memoryStream = new MemoryStream(num);
num = data.Length;
num++;
int length = data.Length;
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x06009D90 RID: 40336 RVA: 0x00207634 File Offset: 0x00205834
[Token(Token = "0x6009D90")]
[Address(RVA = "0x4E8710", Offset = "0x4E7710", VA = "0x1804E8710")]
public static byte[] Decode(string data)
{
int stringLength = data.m_stringLength;
int num;
MemoryStream memoryStream = new MemoryStream(num);
num = stringLength + 1;
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x06009D91 RID: 40337 RVA: 0x00207660 File Offset: 0x00205860
[Token(Token = "0x6009D91")]
[Address(RVA = "0x4E88D0", Offset = "0x4E78D0", VA = "0x1804E88D0")]
public static int Decode(string data, Stream outStream)
{
throw new NullReferenceException();
}
// Token: 0x06009D92 RID: 40338 RVA: 0x00207674 File Offset: 0x00205874
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009D92")]
[Address(RVA = "0x4E8DA0", Offset = "0x4E7DA0", VA = "0x1804E8DA0")]
static Hex()
{
byte[] array = new byte[16];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.FE5567E8D769550852182CDF69D74BB16DFF8E29).FieldHandle);
HexEncoder hexEncoder;
hexEncoder.encodingTable = array;
byte[] array2 = new byte[128];
hexEncoder.decodingTable = array2;
hexEncoder.InitialiseDecodingTable();
}
// Token: 0x04006A42 RID: 27202
[Token(Token = "0x4006A42")]
private static readonly IEncoder encoder;
}
}
@@ -0,0 +1,165 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2E RID: 6702
[Token(Token = "0x2001A2E")]
public class HexEncoder : IEncoder
{
// Token: 0x06009D93 RID: 40339 RVA: 0x002076B4 File Offset: 0x002058B4
[Token(Token = "0x6009D93")]
[Address(RVA = "0x4E80A0", Offset = "0x4E70A0", VA = "0x1804E80A0")]
protected void InitialiseDecodingTable()
{
int num = this.decodingTable.Length;
if (num > 0)
{
num--;
}
byte[] array = this.encodingTable;
int num2 = 0;
if (num2 < array.Length)
{
byte[] array2 = this.decodingTable;
num2++;
byte[] array3 = this.encodingTable;
}
byte[] array4 = this.decodingTable;
byte b = array4[12];
array4[8] = b;
byte[] array5 = this.decodingTable;
byte b2 = array5[12];
array5[8] = b2;
byte[] array6 = this.decodingTable;
byte b3 = array6[12];
array6[8] = b3;
byte[] array7 = this.decodingTable;
byte b4 = array7[12];
array7[8] = b4;
byte[] array8 = this.decodingTable;
byte b5 = array8[12];
array8[8] = b5;
byte[] array9 = this.decodingTable;
byte b6 = array9[12];
array9[8] = b6;
}
// Token: 0x06009D94 RID: 40340 RVA: 0x002077B0 File Offset: 0x002059B0
[Token(Token = "0x6009D94")]
[Address(RVA = "0x4E8310", Offset = "0x4E7310", VA = "0x1804E8310")]
public HexEncoder()
{
byte[] array = new byte[16];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.FE5567E8D769550852182CDF69D74BB16DFF8E29).FieldHandle);
this.encodingTable = array;
byte[] array2 = new byte[128];
this.decodingTable = array2;
base..ctor();
this.InitialiseDecodingTable();
}
// Token: 0x06009D95 RID: 40341 RVA: 0x002077F8 File Offset: 0x002059F8
[Token(Token = "0x6009D95")]
[Address(RVA = "0x4E7F60", Offset = "0x4E6F60", VA = "0x1804E7F60", Slot = "4")]
public int Encode(byte[] data, int off, int length, Stream outStream)
{
byte[] array = this.encodingTable;
byte[] array2 = this.encodingTable;
return off;
}
// Token: 0x06009D96 RID: 40342 RVA: 0x0020781C File Offset: 0x00205A1C
[Token(Token = "0x6009D96")]
[Address(RVA = "0x4E8080", Offset = "0x4E7080", VA = "0x1804E8080")]
private static bool Ignore(char c)
{
return true;
}
// Token: 0x06009D97 RID: 40343 RVA: 0x0020782C File Offset: 0x00205A2C
[Token(Token = "0x6009D97")]
[Address(RVA = "0x4E7D10", Offset = "0x4E6D10", VA = "0x1804E7D10", Slot = "5")]
public int Decode(byte[] data, int off, int length, Stream outStream)
{
int num = 0;
if (off < length)
{
if (length == 250)
{
}
if (off < length)
{
if (length == 250)
{
}
byte[] array = this.decodingTable;
int length2 = data.Length;
int length3 = array.Length;
if (off >= length || length == 250)
{
}
num++;
}
}
return num;
}
// Token: 0x06009D98 RID: 40344 RVA: 0x00207890 File Offset: 0x00205A90
[Token(Token = "0x6009D98")]
[Address(RVA = "0x4E7B00", Offset = "0x4E6B00", VA = "0x1804E7B00", Slot = "6")]
public int DecodeString(string data, Stream outStream)
{
int num = 0;
int num2 = data.m_stringLength;
if (num2 > 0)
{
int num3 = num2 - 1;
char c = data[num3];
if ((uint)65530 == (uint)c)
{
}
num2 = num3;
}
if (num2 > 0)
{
if (num < num2)
{
char c2 = data[num];
if ((uint)65530 == (uint)c2)
{
}
num++;
}
byte[] array = this.decodingTable;
num++;
char c3 = data[num];
if (num < num2)
{
char c4 = data[num];
if ((uint)65530 == (uint)c4)
{
}
num++;
}
byte[] array2 = this.decodingTable;
num++;
char c5 = data[num];
num++;
}
return num;
}
// Token: 0x04006A43 RID: 27203
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A43")]
protected readonly byte[] encodingTable;
// Token: 0x04006A44 RID: 27204
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A44")]
protected readonly byte[] decodingTable;
}
}
@@ -0,0 +1,74 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A2F RID: 6703
[Token(Token = "0x2001A2F")]
public class HexTranslator : ITranslator
{
// Token: 0x06009D99 RID: 40345 RVA: 0x0020793C File Offset: 0x00205B3C
[Token(Token = "0x6009D99")]
[Address(RVA = "0x4E86A0", Offset = "0x4E76A0", VA = "0x1804E86A0", Slot = "4")]
public int GetEncodedBlockSize()
{
return 2;
}
// Token: 0x06009D9A RID: 40346 RVA: 0x0020794C File Offset: 0x00205B4C
[Token(Token = "0x6009D9A")]
[Address(RVA = "0x4E84E0", Offset = "0x4E74E0", VA = "0x1804E84E0", Slot = "5")]
public int Encode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)
{
int num = 0;
if (length > 0)
{
num++;
}
throw new NullReferenceException();
}
// Token: 0x06009D9B RID: 40347 RVA: 0x00207968 File Offset: 0x00205B68
[Token(Token = "0x6009D9B")]
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "6")]
public int GetDecodedBlockSize()
{
return 1;
}
// Token: 0x06009D9C RID: 40348 RVA: 0x00207978 File Offset: 0x00205B78
[Token(Token = "0x6009D9C")]
[Address(RVA = "0x4E83A0", Offset = "0x4E73A0", VA = "0x1804E83A0", Slot = "7")]
public int Decode(byte[] input, int inOff, int length, byte[] outBytes, int outOff)
{
int num = 0;
if (length > 0)
{
int length2 = input.Length;
num++;
}
return length;
}
// Token: 0x06009D9D RID: 40349 RVA: 0x002079A0 File Offset: 0x00205BA0
[Token(Token = "0x6009D9D")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public HexTranslator()
{
}
// Token: 0x06009D9E RID: 40350 RVA: 0x002079B4 File Offset: 0x00205BB4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009D9E")]
[Address(RVA = "0x4E86B0", Offset = "0x4E76B0", VA = "0x1804E86B0")]
static HexTranslator()
{
RuntimeHelpers.InitializeArray(new byte[16], fieldof(<PrivateImplementationDetails>.FE5567E8D769550852182CDF69D74BB16DFF8E29).FieldHandle);
}
// Token: 0x04006A45 RID: 27205
[Token(Token = "0x4006A45")]
private static readonly byte[] hexTable;
}
}
@@ -0,0 +1,26 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A30 RID: 6704
[Token(Token = "0x2001A30")]
public interface IEncoder
{
// Token: 0x06009D9F RID: 40351
[Token(Token = "0x6009D9F")]
[Address(Slot = "0")]
int Encode(byte[] data, int off, int length, Stream outStream);
// Token: 0x06009DA0 RID: 40352
[Token(Token = "0x6009DA0")]
[Address(Slot = "1")]
int Decode(byte[] data, int off, int length, Stream outStream);
// Token: 0x06009DA1 RID: 40353
[Token(Token = "0x6009DA1")]
[Address(Slot = "2")]
int DecodeString(string data, Stream outStream);
}
}
@@ -0,0 +1,30 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A31 RID: 6705
[Token(Token = "0x2001A31")]
public interface ITranslator
{
// Token: 0x06009DA2 RID: 40354
[Token(Token = "0x6009DA2")]
[Address(Slot = "0")]
int GetEncodedBlockSize();
// Token: 0x06009DA3 RID: 40355
[Token(Token = "0x6009DA3")]
[Address(Slot = "1")]
int Encode(byte[] input, int inOff, int length, byte[] outBytes, int outOff);
// Token: 0x06009DA4 RID: 40356
[Token(Token = "0x6009DA4")]
[Address(Slot = "2")]
int GetDecodedBlockSize();
// Token: 0x06009DA5 RID: 40357
[Token(Token = "0x6009DA5")]
[Address(Slot = "3")]
int Decode(byte[] input, int inOff, int length, byte[] outBytes, int outOff);
}
}
@@ -0,0 +1,97 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A32 RID: 6706
[Token(Token = "0x2001A32")]
public class UrlBase64
{
// Token: 0x06009DA6 RID: 40358 RVA: 0x002079D4 File Offset: 0x00205BD4
[Token(Token = "0x6009DA6")]
[Address(RVA = "0x4F5300", Offset = "0x4F4300", VA = "0x1804F5300")]
public static byte[] Encode(byte[] data)
{
MemoryStream memoryStream = new MemoryStream();
int length = data.Length;
throw new NullReferenceException();
}
// Token: 0x06009DA7 RID: 40359 RVA: 0x00207A00 File Offset: 0x00205C00
[Token(Token = "0x6009DA7")]
[Address(RVA = "0x4F5260", Offset = "0x4F4260", VA = "0x1804F5260")]
public static int Encode(byte[] data, Stream outStr)
{
return data.Length;
}
// Token: 0x06009DA8 RID: 40360 RVA: 0x00207A1C File Offset: 0x00205C1C
[Token(Token = "0x6009DA8")]
[Address(RVA = "0x4F4FD0", Offset = "0x4F3FD0", VA = "0x1804F4FD0")]
public static byte[] Decode(byte[] data)
{
MemoryStream memoryStream = new MemoryStream();
int length = data.Length;
throw new NullReferenceException();
}
// Token: 0x06009DA9 RID: 40361 RVA: 0x00207A48 File Offset: 0x00205C48
[Token(Token = "0x6009DA9")]
[Address(RVA = "0x4F5130", Offset = "0x4F4130", VA = "0x1804F5130")]
public static int Decode(byte[] data, Stream outStr)
{
return data.Length;
}
// Token: 0x06009DAA RID: 40362 RVA: 0x00207A64 File Offset: 0x00205C64
[Token(Token = "0x6009DAA")]
[Address(RVA = "0x4F4E80", Offset = "0x4F3E80", VA = "0x1804F4E80")]
public static byte[] Decode(string data)
{
MemoryStream memoryStream = new MemoryStream();
throw new NullReferenceException();
}
// Token: 0x06009DAB RID: 40363 RVA: 0x00207A88 File Offset: 0x00205C88
[Token(Token = "0x6009DAB")]
[Address(RVA = "0x4F51D0", Offset = "0x4F41D0", VA = "0x1804F51D0")]
public static int Decode(string data, Stream outStr)
{
throw new NullReferenceException();
}
// Token: 0x06009DAC RID: 40364 RVA: 0x00207A9C File Offset: 0x00205C9C
[Token(Token = "0x6009DAC")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public UrlBase64()
{
}
// Token: 0x06009DAD RID: 40365 RVA: 0x00207AB0 File Offset: 0x00205CB0
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009DAD")]
[Address(RVA = "0x4F5460", Offset = "0x4F4460", VA = "0x1804F5460")]
static UrlBase64()
{
byte[] array = new byte[64];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.0953DF544832295E4A5B19928F95C351F25DA86A).FieldHandle);
UrlBase64Encoder urlBase64Encoder;
urlBase64Encoder.encodingTable = array;
urlBase64Encoder.padding = (byte)((ulong)61L);
byte[] array2 = new byte[128];
urlBase64Encoder.decodingTable = array2;
urlBase64Encoder.InitialiseDecodingTable();
int length = urlBase64Encoder.encodingTable.Length;
urlBase64Encoder.decodingTable = (ulong)45L;
int num = urlBase64Encoder.encodingTable.Length - 1;
urlBase64Encoder.padding = (byte)((ulong)46L);
urlBase64Encoder.InitialiseDecodingTable();
}
// Token: 0x04006A46 RID: 27206
[Token(Token = "0x4006A46")]
private static readonly IEncoder encoder;
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x02001A33 RID: 6707
[Token(Token = "0x2001A33")]
public class UrlBase64Encoder : Base64Encoder
{
// Token: 0x06009DAE RID: 40366 RVA: 0x00207B34 File Offset: 0x00205D34
[Token(Token = "0x6009DAE")]
[Address(RVA = "0x4F4D80", Offset = "0x4F3D80", VA = "0x1804F4D80")]
public UrlBase64Encoder()
{
byte[] array = new byte[64];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.0953DF544832295E4A5B19928F95C351F25DA86A).FieldHandle);
this.encodingTable = array;
this.padding = (byte)((ulong)61L);
byte[] array2 = new byte[128];
this.decodingTable = array2;
base..ctor();
base.InitialiseDecodingTable();
int length = this.encodingTable.Length;
this.decodingTable = (ulong)45L;
int num = this.encodingTable.Length - 1;
this.padding = (byte)((ulong)46L);
base.InitialiseDecodingTable();
}
}
}
@@ -0,0 +1,107 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A02 RID: 6658
[Token(Token = "0x2001A02")]
internal abstract class Enums
{
// Token: 0x06009C15 RID: 39957 RVA: 0x001FEFC4 File Offset: 0x001FD1C4
[Token(Token = "0x6009C15")]
[Address(RVA = "0x4E6DA0", Offset = "0x4E5DA0", VA = "0x1804E6DA0")]
internal static Enum GetEnumValue(Type enumType, string s)
{
/*
An exception occurred when decompiling this method (06009C15)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Enum BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Enums::GetEnumValue(System.Type,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3A:
stloc:ArgumentException(var_7_49, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not an enumeration type"), ldstr:string("enumType")))
}
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: 0x06009C16 RID: 39958 RVA: 0x001FF01C File Offset: 0x001FD21C
[Token(Token = "0x6009C16")]
[Address(RVA = "0x4E6F40", Offset = "0x4E5F40", VA = "0x1804E6F40")]
internal static Array GetEnumValues(Type enumType)
{
/*
An exception occurred when decompiling this method (06009C16)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Array BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Enums::GetEnumValues(System.Type)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_16:
stloc:ArgumentException(var_0_25, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not an enumeration type"), ldstr:string("enumType")))
}
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: 0x06009C17 RID: 39959 RVA: 0x001FF050 File Offset: 0x001FD250
[Token(Token = "0x6009C17")]
[Address(RVA = "0x4E6A90", Offset = "0x4E5A90", VA = "0x1804E6A90")]
internal static Enum GetArbitraryValue(Type enumType)
{
for (;;)
{
if (enumType.IsSealed)
{
Array values = Enum.GetValues(enumType);
DateTime utcNow = DateTime.UtcNow;
int num = values.System.Collections.ICollection.Count;
int num2;
num2 -= num2;
ulong num3;
num3 += num3;
object value = values.GetValue((int)num3);
if (value == 0 || value != 0)
{
break;
}
}
}
throw new NullReferenceException();
}
// Token: 0x06009C18 RID: 39960 RVA: 0x001FF0AC File Offset: 0x001FD2AC
[Token(Token = "0x6009C18")]
[Address(RVA = "0x4E6FF0", Offset = "0x4E5FF0", VA = "0x1804E6FF0")]
internal static bool IsEnumType(Type t)
{
Guid guid = t.GUID;
throw new NullReferenceException();
}
// Token: 0x06009C19 RID: 39961 RVA: 0x001FF0C8 File Offset: 0x001FD2C8
[Token(Token = "0x6009C19")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Enums()
{
}
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A03 RID: 6659
[Token(Token = "0x2001A03")]
public interface IMemoable
{
// Token: 0x06009C1A RID: 39962
[Token(Token = "0x6009C1A")]
[Address(Slot = "0")]
IMemoable Copy();
// Token: 0x06009C1B RID: 39963
[Token(Token = "0x6009C1B")]
[Address(Slot = "1")]
void Reset(IMemoable other);
}
}
@@ -0,0 +1,258 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A19 RID: 6681
[Token(Token = "0x2001A19")]
public abstract class BaseInputStream : Stream
{
// Token: 0x17001901 RID: 6401
// (get) Token: 0x06009D0B RID: 40203 RVA: 0x00205F80 File Offset: 0x00204180
[Token(Token = "0x17001901")]
public sealed override bool CanRead
{
[Token(Token = "0x6009D0B")]
[Address(RVA = "0x4DF990", Offset = "0x4DE990", VA = "0x1804DF990", Slot = "7")]
get
{
return !this.closed;
}
}
// Token: 0x17001902 RID: 6402
// (get) Token: 0x06009D0C RID: 40204 RVA: 0x00205F98 File Offset: 0x00204198
[Token(Token = "0x17001902")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009D0C")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x17001903 RID: 6403
// (get) Token: 0x06009D0D RID: 40205 RVA: 0x00205FA8 File Offset: 0x002041A8
[Token(Token = "0x17001903")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009D0D")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
}
}
// Token: 0x06009D0E RID: 40206 RVA: 0x00205FB8 File Offset: 0x002041B8
[Token(Token = "0x6009D0E")]
[Address(RVA = "0x4DF740", Offset = "0x4DE740", VA = "0x1804DF740", Slot = "15")]
public override void Close()
{
this.closed = true;
base.Close();
}
// Token: 0x06009D0F RID: 40207 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009D0F")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
public sealed override void Flush()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17001904 RID: 6404
// (get) Token: 0x06009D10 RID: 40208 RVA: 0x00205FD4 File Offset: 0x002041D4
[Token(Token = "0x17001904")]
public sealed override long Length
{
[Token(Token = "0x6009D10")]
[Address(RVA = "0x4DF9A0", Offset = "0x4DE9A0", VA = "0x1804DF9A0", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (06009D10)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x17001905 RID: 6405
// (get) Token: 0x06009D11 RID: 40209 RVA: 0x00205FE8 File Offset: 0x002041E8
// (set) Token: 0x06009D12 RID: 40210 RVA: 0x00205FFC File Offset: 0x002041FC
[Token(Token = "0x17001905")]
public sealed override long Position
{
[Token(Token = "0x6009D11")]
[Address(RVA = "0x4DF9F0", Offset = "0x4DE9F0", VA = "0x1804DF9F0", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009D11)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::get_Position()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
[Token(Token = "0x6009D12")]
[Address(RVA = "0x4DFA40", Offset = "0x4DEA40", VA = "0x1804DFA40", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009D12)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009D13 RID: 40211 RVA: 0x00206010 File Offset: 0x00204210
[Token(Token = "0x6009D13")]
[Address(RVA = "0x4DF750", Offset = "0x4DE750", VA = "0x1804DF750", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
int num;
if (num != -1)
{
}
if (offset != 0)
{
return offset;
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009D14 RID: 40212 RVA: 0x00206034 File Offset: 0x00204234
[Token(Token = "0x6009D14")]
[Address(RVA = "0x4DF840", Offset = "0x4DE840", VA = "0x1804DF840", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009D14)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D15 RID: 40213 RVA: 0x00206048 File Offset: 0x00204248
[Token(Token = "0x6009D15")]
[Address(RVA = "0x4DF890", Offset = "0x4DE890", VA = "0x1804DF890", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009D15)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::SetLength(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D16 RID: 40214 RVA: 0x0020605C File Offset: 0x0020425C
[Token(Token = "0x6009D16")]
[Address(RVA = "0x4DF8E0", Offset = "0x4DE8E0", VA = "0x1804DF8E0", Slot = "29")]
public sealed override void Write(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009D16)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseInputStream::Write(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D17 RID: 40215 RVA: 0x00206070 File Offset: 0x00204270
[Token(Token = "0x6009D17")]
[Address(RVA = "0x4DF930", Offset = "0x4DE930", VA = "0x1804DF930")]
protected BaseInputStream()
{
}
// Token: 0x04006A24 RID: 27172
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006A24")]
private bool closed;
}
}
@@ -0,0 +1,266 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1A RID: 6682
[Token(Token = "0x2001A1A")]
public abstract class BaseOutputStream : Stream
{
// Token: 0x17001906 RID: 6406
// (get) Token: 0x06009D18 RID: 40216 RVA: 0x00206084 File Offset: 0x00204284
[Token(Token = "0x17001906")]
public sealed override bool CanRead
{
[Token(Token = "0x6009D18")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
get
{
}
}
// Token: 0x17001907 RID: 6407
// (get) Token: 0x06009D19 RID: 40217 RVA: 0x00206094 File Offset: 0x00204294
[Token(Token = "0x17001907")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009D19")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x17001908 RID: 6408
// (get) Token: 0x06009D1A RID: 40218 RVA: 0x002060A4 File Offset: 0x002042A4
[Token(Token = "0x17001908")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009D1A")]
[Address(RVA = "0x4DF990", Offset = "0x4DE990", VA = "0x1804DF990", Slot = "9")]
get
{
return !this.closed;
}
}
// Token: 0x06009D1B RID: 40219 RVA: 0x002060BC File Offset: 0x002042BC
[Token(Token = "0x6009D1B")]
[Address(RVA = "0x4DF740", Offset = "0x4DE740", VA = "0x1804DF740", Slot = "15")]
public override void Close()
{
this.closed = true;
base.Close();
}
// Token: 0x06009D1C RID: 40220 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009D1C")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
public override void Flush()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17001909 RID: 6409
// (get) Token: 0x06009D1D RID: 40221 RVA: 0x002060D8 File Offset: 0x002042D8
[Token(Token = "0x17001909")]
public sealed override long Length
{
[Token(Token = "0x6009D1D")]
[Address(RVA = "0x4DFD00", Offset = "0x4DED00", VA = "0x1804DFD00", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (06009D1D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x1700190A RID: 6410
// (get) Token: 0x06009D1E RID: 40222 RVA: 0x002060EC File Offset: 0x002042EC
// (set) Token: 0x06009D1F RID: 40223 RVA: 0x00206100 File Offset: 0x00204300
[Token(Token = "0x1700190A")]
public sealed override long Position
{
[Token(Token = "0x6009D1E")]
[Address(RVA = "0x4DFD50", Offset = "0x4DED50", VA = "0x1804DFD50", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009D1E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::get_Position()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
[Token(Token = "0x6009D1F")]
[Address(RVA = "0x4DFDA0", Offset = "0x4DEDA0", VA = "0x1804DFDA0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009D1F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009D20 RID: 40224 RVA: 0x00206114 File Offset: 0x00204314
[Token(Token = "0x6009D20")]
[Address(RVA = "0x4DFA90", Offset = "0x4DEA90", VA = "0x1804DFA90", Slot = "27")]
public sealed override int Read(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009D20)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::Read(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D21 RID: 40225 RVA: 0x00206128 File Offset: 0x00204328
[Token(Token = "0x6009D21")]
[Address(RVA = "0x4DFAE0", Offset = "0x4DEAE0", VA = "0x1804DFAE0", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009D21)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D22 RID: 40226 RVA: 0x0020613C File Offset: 0x0020433C
[Token(Token = "0x6009D22")]
[Address(RVA = "0x4DFB30", Offset = "0x4DEB30", VA = "0x1804DFB30", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009D22)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.BaseOutputStream::SetLength(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009D23 RID: 40227 RVA: 0x00206150 File Offset: 0x00204350
[Token(Token = "0x6009D23")]
[Address(RVA = "0x4DFC20", Offset = "0x4DEC20", VA = "0x1804DFC20", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
// Token: 0x06009D24 RID: 40228 RVA: 0x00206164 File Offset: 0x00204364
[Token(Token = "0x6009D24")]
[Address(RVA = "0x45CD80", Offset = "0x45BD80", VA = "0x18045CD80", Slot = "31")]
public virtual void Write(params byte[] buffer)
{
int num = this.ReadByte();
}
// Token: 0x06009D25 RID: 40229 RVA: 0x00206180 File Offset: 0x00204380
[Token(Token = "0x6009D25")]
[Address(RVA = "0x4DFB80", Offset = "0x4DEB80", VA = "0x1804DFB80", Slot = "30")]
public override void WriteByte(byte b)
{
(new byte[1])[0] = b;
int num = this.ReadByte();
}
// Token: 0x06009D26 RID: 40230 RVA: 0x002061A8 File Offset: 0x002043A8
[Token(Token = "0x6009D26")]
[Address(RVA = "0x4DFCA0", Offset = "0x4DECA0", VA = "0x1804DFCA0")]
protected BaseOutputStream()
{
}
// Token: 0x04006A25 RID: 27173
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006A25")]
private bool closed;
}
}
@@ -0,0 +1,166 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1B RID: 6683
[Token(Token = "0x2001A1B")]
public class FilterStream : Stream
{
// Token: 0x06009D27 RID: 40231 RVA: 0x002061BC File Offset: 0x002043BC
[Token(Token = "0x6009D27")]
[Address(RVA = "0x4E70A0", Offset = "0x4E60A0", VA = "0x1804E70A0")]
public FilterStream(Stream s)
{
this.s = s;
}
// Token: 0x1700190B RID: 6411
// (get) Token: 0x06009D28 RID: 40232 RVA: 0x002061D8 File Offset: 0x002043D8
[Token(Token = "0x1700190B")]
public override bool CanRead
{
[Token(Token = "0x6009D28")]
[Address(RVA = "0x4B7E10", Offset = "0x4B6E10", VA = "0x1804B7E10", Slot = "7")]
get
{
return this.s.CanRead;
}
}
// Token: 0x1700190C RID: 6412
// (get) Token: 0x06009D29 RID: 40233 RVA: 0x002061F8 File Offset: 0x002043F8
[Token(Token = "0x1700190C")]
public override bool CanSeek
{
[Token(Token = "0x6009D29")]
[Address(RVA = "0x4B7E40", Offset = "0x4B6E40", VA = "0x1804B7E40", Slot = "8")]
get
{
return this.s.CanRead;
}
}
// Token: 0x1700190D RID: 6413
// (get) Token: 0x06009D2A RID: 40234 RVA: 0x00206218 File Offset: 0x00204418
[Token(Token = "0x1700190D")]
public override bool CanWrite
{
[Token(Token = "0x6009D2A")]
[Address(RVA = "0x4B7E70", Offset = "0x4B6E70", VA = "0x1804B7E70", Slot = "9")]
get
{
return this.s.CanRead;
}
}
// Token: 0x1700190E RID: 6414
// (get) Token: 0x06009D2B RID: 40235 RVA: 0x00206238 File Offset: 0x00204438
[Token(Token = "0x1700190E")]
public override long Length
{
[Token(Token = "0x6009D2B")]
[Address(RVA = "0x4B7EA0", Offset = "0x4B6EA0", VA = "0x1804B7EA0", Slot = "10")]
get
{
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
}
// Token: 0x1700190F RID: 6415
// (get) Token: 0x06009D2C RID: 40236 RVA: 0x00206258 File Offset: 0x00204458
// (set) Token: 0x06009D2D RID: 40237 RVA: 0x00206278 File Offset: 0x00204478
[Token(Token = "0x1700190F")]
public override long Position
{
[Token(Token = "0x6009D2C")]
[Address(RVA = "0x4B7ED0", Offset = "0x4B6ED0", VA = "0x1804B7ED0", Slot = "11")]
get
{
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
[Token(Token = "0x6009D2D")]
[Address(RVA = "0x4B7F00", Offset = "0x4B6F00", VA = "0x1804B7F00", Slot = "12")]
set
{
bool canRead = this.s.CanRead;
}
}
// Token: 0x06009D2E RID: 40238 RVA: 0x00206298 File Offset: 0x00204498
[Token(Token = "0x6009D2E")]
[Address(RVA = "0x4E7020", Offset = "0x4E6020", VA = "0x1804E7020", Slot = "15")]
public override void Close()
{
int writeTimeout = this.s.WriteTimeout;
base.Close();
}
// Token: 0x06009D2F RID: 40239 RVA: 0x002062C0 File Offset: 0x002044C0
[Token(Token = "0x6009D2F")]
[Address(RVA = "0x4B7C30", Offset = "0x4B6C30", VA = "0x1804B7C30", Slot = "17")]
public override void Flush()
{
bool canRead = this.s.CanRead;
}
// Token: 0x06009D30 RID: 40240 RVA: 0x002062E0 File Offset: 0x002044E0
[Token(Token = "0x6009D30")]
[Address(RVA = "0x4B7CC0", Offset = "0x4B6CC0", VA = "0x1804B7CC0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
// Token: 0x06009D31 RID: 40241 RVA: 0x00206300 File Offset: 0x00204500
[Token(Token = "0x6009D31")]
[Address(RVA = "0x4B7CF0", Offset = "0x4B6CF0", VA = "0x1804B7CF0", Slot = "26")]
public override void SetLength(long value)
{
bool canRead = this.s.CanRead;
}
// Token: 0x06009D32 RID: 40242 RVA: 0x00206320 File Offset: 0x00204520
[Token(Token = "0x6009D32")]
[Address(RVA = "0x4B7C90", Offset = "0x4B6C90", VA = "0x1804B7C90", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
// Token: 0x06009D33 RID: 40243 RVA: 0x00206340 File Offset: 0x00204540
[Token(Token = "0x6009D33")]
[Address(RVA = "0x4B7C60", Offset = "0x4B6C60", VA = "0x1804B7C60", Slot = "28")]
public override int ReadByte()
{
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
// Token: 0x06009D34 RID: 40244 RVA: 0x00206360 File Offset: 0x00204560
[Token(Token = "0x6009D34")]
[Address(RVA = "0x4B7D50", Offset = "0x4B6D50", VA = "0x1804B7D50", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
bool canRead = this.s.CanRead;
}
// Token: 0x06009D35 RID: 40245 RVA: 0x00206380 File Offset: 0x00204580
[Token(Token = "0x6009D35")]
[Address(RVA = "0x4B7D20", Offset = "0x4B6D20", VA = "0x1804B7D20", Slot = "30")]
public override void WriteByte(byte value)
{
bool canRead = this.s.CanRead;
}
// Token: 0x04006A26 RID: 27174
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006A26")]
protected readonly Stream s;
}
}
@@ -0,0 +1,33 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1C RID: 6684
[Token(Token = "0x2001A1C")]
internal class NullOutputStream : BaseOutputStream
{
// Token: 0x06009D36 RID: 40246 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009D36")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "30")]
public override void WriteByte(byte b)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009D37 RID: 40247 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009D37")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009D38 RID: 40248 RVA: 0x002063A0 File Offset: 0x002045A0
[Token(Token = "0x6009D38")]
[Address(RVA = "0x4DFCA0", Offset = "0x4DECA0", VA = "0x1804DFCA0")]
public NullOutputStream()
{
}
}
}
@@ -0,0 +1,34 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A22 RID: 6690
[Token(Token = "0x2001A22")]
[Serializable]
public class PemGenerationException : Exception
{
// Token: 0x06009D53 RID: 40275 RVA: 0x002067BC File Offset: 0x002049BC
[Token(Token = "0x6009D53")]
[Address(RVA = "0x4EECA0", Offset = "0x4EDCA0", VA = "0x1804EECA0")]
public PemGenerationException()
{
}
// Token: 0x06009D54 RID: 40276 RVA: 0x002067D0 File Offset: 0x002049D0
[Token(Token = "0x6009D54")]
[Address(RVA = "0x4EEBB0", Offset = "0x4EDBB0", VA = "0x1804EEBB0")]
public PemGenerationException(string message)
: base(message)
{
}
// Token: 0x06009D55 RID: 40277 RVA: 0x002067E4 File Offset: 0x002049E4
[Token(Token = "0x6009D55")]
[Address(RVA = "0x4EEC20", Offset = "0x4EDC20", VA = "0x1804EEC20")]
public PemGenerationException(string message, Exception exception)
: base(message, exception)
{
}
}
}
@@ -0,0 +1,120 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A23 RID: 6691
[Token(Token = "0x2001A23")]
public class PemHeader
{
// Token: 0x06009D56 RID: 40278 RVA: 0x002067FC File Offset: 0x002049FC
[Token(Token = "0x6009D56")]
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
public PemHeader(string name, string val)
{
this.name = name;
this.val = val;
}
// Token: 0x17001910 RID: 6416
// (get) Token: 0x06009D57 RID: 40279 RVA: 0x00206820 File Offset: 0x00204A20
[Token(Token = "0x17001910")]
public virtual string Name
{
[Token(Token = "0x6009D57")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
get
{
return this.name;
}
}
// Token: 0x17001911 RID: 6417
// (get) Token: 0x06009D58 RID: 40280 RVA: 0x00206834 File Offset: 0x00204A34
[Token(Token = "0x17001911")]
public virtual string Value
{
[Token(Token = "0x6009D58")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
get
{
return this.val;
}
}
// Token: 0x06009D59 RID: 40281 RVA: 0x00206848 File Offset: 0x00204A48
[Token(Token = "0x6009D59")]
[Address(RVA = "0x4EEE10", Offset = "0x4EDE10", VA = "0x1804EEE10", Slot = "2")]
public override int GetHashCode()
{
/*
An exception occurred when decompiling this method (06009D59)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemHeader::GetHashCode()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_22:
stloc:int64(var_3, add:int64(ldloc:int64(var_3), ldloc:uint32[exp:int64](var_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: 0x06009D5A RID: 40282 RVA: 0x0020687C File Offset: 0x00204A7C
[Token(Token = "0x6009D5A")]
[Address(RVA = "0x4EED00", Offset = "0x4EDD00", VA = "0x1804EED00", Slot = "0")]
public override bool Equals(object obj)
{
while (obj != this)
{
if (obj != 0 && obj != 0)
{
if (obj == 0)
{
continue;
}
string text = this.name;
bool flag;
if (flag)
{
string text2 = this.val;
bool flag2;
return flag2;
}
}
break;
}
return true;
}
// Token: 0x06009D5B RID: 40283 RVA: 0x002068B8 File Offset: 0x00204AB8
[Token(Token = "0x6009D5B")]
[Address(RVA = "0x4EEE80", Offset = "0x4EDE80", VA = "0x1804EEE80")]
private int GetHashCode(string s)
{
if (s != 0)
{
object obj = ((ICloneable)s).Clone();
}
return 1;
}
// Token: 0x04006A2D RID: 27181
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A2D")]
private string name;
// Token: 0x04006A2E RID: 27182
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A2E")]
private string val;
}
}
@@ -0,0 +1,92 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A24 RID: 6692
[Token(Token = "0x2001A24")]
public class PemObject : PemObjectGenerator
{
// Token: 0x06009D5C RID: 40284 RVA: 0x002068D4 File Offset: 0x00204AD4
[Token(Token = "0x6009D5C")]
[Address(RVA = "0x4EEF70", Offset = "0x4EDF70", VA = "0x1804EEF70")]
public PemObject(string type, byte[] content)
{
ArrayList arrayList = new ArrayList();
}
// Token: 0x06009D5D RID: 40285 RVA: 0x002068E8 File Offset: 0x00204AE8
[Token(Token = "0x6009D5D")]
[Address(RVA = "0x4EEEB0", Offset = "0x4EDEB0", VA = "0x1804EEEB0")]
public PemObject(string type, IList headers, byte[] content)
{
this.type = type;
ArrayList arrayList = new ArrayList(headers);
this.headers = arrayList;
this.content = content;
}
// Token: 0x17001912 RID: 6418
// (get) Token: 0x06009D5E RID: 40286 RVA: 0x00206918 File Offset: 0x00204B18
[Token(Token = "0x17001912")]
public string Type
{
[Token(Token = "0x6009D5E")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.type;
}
}
// Token: 0x17001913 RID: 6419
// (get) Token: 0x06009D5F RID: 40287 RVA: 0x0020692C File Offset: 0x00204B2C
[Token(Token = "0x17001913")]
public IList Headers
{
[Token(Token = "0x6009D5F")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.headers;
}
}
// Token: 0x17001914 RID: 6420
// (get) Token: 0x06009D60 RID: 40288 RVA: 0x00206940 File Offset: 0x00204B40
[Token(Token = "0x17001914")]
public byte[] Content
{
[Token(Token = "0x6009D60")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return this.content;
}
}
// Token: 0x06009D61 RID: 40289 RVA: 0x00206954 File Offset: 0x00204B54
[Token(Token = "0x6009D61")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "4")]
public PemObject Generate()
{
return this;
}
// Token: 0x04006A2F RID: 27183
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A2F")]
private string type;
// Token: 0x04006A30 RID: 27184
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A30")]
private IList headers;
// Token: 0x04006A31 RID: 27185
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A31")]
private byte[] content;
}
}
@@ -0,0 +1,15 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A25 RID: 6693
[Token(Token = "0x2001A25")]
public interface PemObjectGenerator
{
// Token: 0x06009D62 RID: 40290
[Token(Token = "0x6009D62")]
[Address(Slot = "0")]
PemObject Generate();
}
}
@@ -0,0 +1,15 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A26 RID: 6694
[Token(Token = "0x2001A26")]
public interface PemObjectParser
{
// Token: 0x06009D63 RID: 40291
[Token(Token = "0x6009D63")]
[Address(Slot = "0")]
object ParseObject(PemObject obj);
}
}
@@ -0,0 +1,112 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A27 RID: 6695
[Token(Token = "0x2001A27")]
public class PemReader
{
// Token: 0x06009D64 RID: 40292 RVA: 0x00206964 File Offset: 0x00204B64
[Token(Token = "0x6009D64")]
[Address(RVA = "0x4EF550", Offset = "0x4EE550", VA = "0x1804EF550")]
public PemReader(TextReader reader)
{
/*
An exception occurred when decompiling this method (06009D64)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemReader::.ctor(System.IO.TextReader)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("reader")))
}
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: 0x17001915 RID: 6421
// (get) Token: 0x06009D65 RID: 40293 RVA: 0x00206990 File Offset: 0x00204B90
[Token(Token = "0x17001915")]
public TextReader Reader
{
[Token(Token = "0x6009D65")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.reader;
}
}
// Token: 0x06009D66 RID: 40294 RVA: 0x002069A4 File Offset: 0x00204BA4
[Token(Token = "0x6009D66")]
[Address(RVA = "0x4EF440", Offset = "0x4EE440", VA = "0x1804EF440")]
public PemObject ReadPemObject()
{
string text = this.reader.ReadToEnd();
if (text != 0 && Platform.StartsWith(text, "-----BEGIN "))
{
int num = 0;
string text3;
int num2;
string text2 = text3.Substring(num, num2);
if (num2 > 0)
{
return this.LoadObject(text2);
}
}
throw new NullReferenceException();
}
// Token: 0x06009D67 RID: 40295 RVA: 0x002069F0 File Offset: 0x00204BF0
[Token(Token = "0x6009D67")]
[Address(RVA = "0x4EF030", Offset = "0x4EE030", VA = "0x1804EF030")]
private PemObject LoadObject(string type)
{
/*
An exception occurred when decompiling this method (06009D67)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemObject BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemReader::LoadObject(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_EE:
stloc:IOException(var_19_F8, newobj:IOException(IOException::.ctor, ldstr:string("base64 data appears to be truncated")))
}
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: 0x04006A32 RID: 27186
[Token(Token = "0x4006A32")]
private const string BeginString = "-----BEGIN ";
// Token: 0x04006A33 RID: 27187
[Token(Token = "0x4006A33")]
private const string EndString = "-----END ";
// Token: 0x04006A34 RID: 27188
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A34")]
private readonly TextReader reader;
}
}
@@ -0,0 +1,226 @@
using System;
using System.Collections;
using System.IO;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
{
// Token: 0x02001A28 RID: 6696
[Token(Token = "0x2001A28")]
public class PemWriter
{
// Token: 0x06009D68 RID: 40296 RVA: 0x00206AF8 File Offset: 0x00204CF8
[Token(Token = "0x6009D68")]
[Address(RVA = "0x4F0070", Offset = "0x4EF070", VA = "0x1804F0070")]
public PemWriter(TextWriter writer)
{
/*
An exception occurred when decompiling this method (06009D68)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemWriter::.ctor(System.IO.TextWriter)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_33:
stloc:ArgumentNullException(var_2_3D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("writer")))
}
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: 0x17001916 RID: 6422
// (get) Token: 0x06009D69 RID: 40297 RVA: 0x00206B44 File Offset: 0x00204D44
[Token(Token = "0x17001916")]
public TextWriter Writer
{
[Token(Token = "0x6009D69")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.writer;
}
}
// Token: 0x06009D6A RID: 40298 RVA: 0x00206B58 File Offset: 0x00204D58
[Token(Token = "0x6009D6A")]
[Address(RVA = "0x4EF5D0", Offset = "0x4EE5D0", VA = "0x1804EF5D0")]
public int GetOutputSize(PemObject obj)
{
int num;
do
{
num = 0;
string type = obj.type;
IList headers = obj.headers;
if (type <= 0)
{
break;
}
IList headers2 = obj.headers;
int num3;
if (type != 0)
{
if (num < type)
{
num += num;
num++;
}
ulong num2;
num2 += (ulong)1L;
if (type == 0)
{
goto IL_82;
}
int stringLength = type.ToString().m_stringLength;
num3 += stringLength;
}
if (num3 != 0)
{
}
}
while (num != 0);
int num4 = obj.content.Length;
num4 += 2;
throw new NullReferenceException();
IL_82:
throw new NullReferenceException();
}
// Token: 0x06009D6B RID: 40299 RVA: 0x00206BF4 File Offset: 0x00204DF4
[Token(Token = "0x6009D6B")]
[Address(RVA = "0x4EFA00", Offset = "0x4EEA00", VA = "0x1804EFA00")]
public void WriteObject(PemObjectGenerator objGen)
{
int num;
int num2;
do
{
num = 0;
num += num;
num++;
string text;
if (text <= 0)
{
goto IL_46;
}
if (text != 0)
{
if (num < text)
{
num += num;
num++;
}
if (text == 0)
{
}
if (text == 0)
{
goto IL_BF;
}
string text2 = text.ToString();
}
num2 = 0;
int num3;
if (num3 != 0)
{
}
}
while (num != 0);
TextWriter textWriter = this.writer;
IL_46:
byte[] array;
if (num2 < array.Length)
{
char[] array2 = this.buf;
int length = array2.Length;
if (num2 != length && 0 < array.Length)
{
byte b;
array2[0] = (char)b;
num2++;
}
char[] array3 = this.buf;
}
string text3 = "-----END " + num2 + "-----";
return;
IL_BF:
throw new NullReferenceException();
}
// Token: 0x06009D6C RID: 40300 RVA: 0x00206CC8 File Offset: 0x00204EC8
[Token(Token = "0x6009D6C")]
[Address(RVA = "0x4EF900", Offset = "0x4EE900", VA = "0x1804EF900")]
private void WriteEncoded(byte[] bytes)
{
int length = bytes.Length;
int num = 0;
byte[] array = Base64.Encode(bytes, num, length);
int num2 = 0;
if (num2 < array.Length)
{
int num3 = 0;
char[] array2 = this.buf;
int length2 = array2.Length;
if (num3 != length2 && 0 < array.Length)
{
num3++;
byte b;
array2[0] = (char)b;
}
this.writer.WriteLine(array2);
char[] array3 = this.buf;
}
}
// Token: 0x06009D6D RID: 40301 RVA: 0x00206D4C File Offset: 0x00204F4C
[Token(Token = "0x6009D6D")]
[Address(RVA = "0x4EFFF0", Offset = "0x4EEFF0", VA = "0x1804EFFF0")]
private void WritePreEncapsulationBoundary(string type)
{
TextWriter textWriter = this.writer;
string text = "-----BEGIN " + type + "-----";
Encoding encoding = textWriter.Encoding;
}
// Token: 0x06009D6E RID: 40302 RVA: 0x00206D80 File Offset: 0x00204F80
[Token(Token = "0x6009D6E")]
[Address(RVA = "0x4EFF70", Offset = "0x4EEF70", VA = "0x1804EFF70")]
private void WritePostEncapsulationBoundary(string type)
{
TextWriter textWriter = this.writer;
string text = "-----END " + type + "-----";
Encoding encoding = textWriter.Encoding;
}
// Token: 0x04006A35 RID: 27189
[Token(Token = "0x4006A35")]
private const int LineLength = 64;
// Token: 0x04006A36 RID: 27190
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A36")]
private readonly TextWriter writer;
// Token: 0x04006A37 RID: 27191
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A37")]
private readonly int nlLength;
// Token: 0x04006A38 RID: 27192
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A38")]
private char[] buf;
}
}
@@ -0,0 +1,81 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1D RID: 6685
[Token(Token = "0x2001A1D")]
public class PushbackStream : FilterStream
{
// Token: 0x06009D39 RID: 40249 RVA: 0x002063B4 File Offset: 0x002045B4
[Token(Token = "0x6009D39")]
[Address(RVA = "0x4F0CD0", Offset = "0x4EFCD0", VA = "0x1804F0CD0")]
public PushbackStream(Stream s)
{
this.s = s;
}
// Token: 0x06009D3A RID: 40250 RVA: 0x002063E0 File Offset: 0x002045E0
[Token(Token = "0x6009D3A")]
[Address(RVA = "0x4F0BA0", Offset = "0x4EFBA0", VA = "0x1804F0BA0", Slot = "28")]
public override int ReadByte()
{
int num = this.buf;
if (num == -1)
{
bool canRead = this.s.CanRead;
}
this.buf = (int)((ulong)4294967295L);
return num;
}
// Token: 0x06009D3B RID: 40251 RVA: 0x0020641C File Offset: 0x0020461C
[Token(Token = "0x6009D3B")]
[Address(RVA = "0x4F0BE0", Offset = "0x4EFBE0", VA = "0x1804F0BE0", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
if (this.buf != -1 && count > 0)
{
this.buf = (int)((ulong)4294967295L);
return 1;
}
bool canRead = this.s.CanRead;
throw new NullReferenceException();
}
// Token: 0x06009D3C RID: 40252 RVA: 0x0020645C File Offset: 0x0020465C
[Token(Token = "0x6009D3C")]
[Address(RVA = "0x4F0C50", Offset = "0x4EFC50", VA = "0x1804F0C50", Slot = "31")]
public virtual void Unread(int b)
{
/*
An exception occurred when decompiling this method (06009D3C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.PushbackStream::Unread(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_11:
stloc:InvalidOperationException(var_0_1B, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Can only push back one byte")))
}
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: 0x04006A27 RID: 27175
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006A27")]
private int buf = (int)((ulong)4294967295L);
}
}
@@ -0,0 +1,35 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1E RID: 6686
[Token(Token = "0x2001A1E")]
[Serializable]
public class StreamOverflowException : IOException
{
// Token: 0x06009D3D RID: 40253 RVA: 0x00206484 File Offset: 0x00204684
[Token(Token = "0x6009D3D")]
[Address(RVA = "0x4F0D50", Offset = "0x4EFD50", VA = "0x1804F0D50")]
public StreamOverflowException()
{
}
// Token: 0x06009D3E RID: 40254 RVA: 0x00206498 File Offset: 0x00204698
[Token(Token = "0x6009D3E")]
[Address(RVA = "0x4F0D40", Offset = "0x4EFD40", VA = "0x1804F0D40")]
public StreamOverflowException(string message)
: base(message)
{
}
// Token: 0x06009D3F RID: 40255 RVA: 0x002064AC File Offset: 0x002046AC
[Token(Token = "0x6009D3F")]
[Address(RVA = "0x4A7900", Offset = "0x4A6900", VA = "0x1804A7900")]
public StreamOverflowException(string message, Exception exception)
: base(message, exception)
{
}
}
}
@@ -0,0 +1,129 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A1F RID: 6687
[Token(Token = "0x2001A1F")]
public sealed class Streams
{
// Token: 0x06009D40 RID: 40256 RVA: 0x002064C4 File Offset: 0x002046C4
[Token(Token = "0x6009D40")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private Streams()
{
}
// Token: 0x06009D41 RID: 40257 RVA: 0x002064D8 File Offset: 0x002046D8
[Token(Token = "0x6009D41")]
[Address(RVA = "0x4F0D60", Offset = "0x4EFD60", VA = "0x1804F0D60")]
public static void Drain(Stream inStr)
{
byte[] array = new byte[512];
}
// Token: 0x06009D42 RID: 40258 RVA: 0x002064F8 File Offset: 0x002046F8
[Token(Token = "0x6009D42")]
[Address(RVA = "0x4F1140", Offset = "0x4F0140", VA = "0x1804F1140")]
public static byte[] ReadAll(Stream inStr)
{
MemoryStream memoryStream = new MemoryStream();
byte[] array = new byte[512];
int num = memoryStream.ReadByte();
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x06009D43 RID: 40259 RVA: 0x00206528 File Offset: 0x00204728
[Token(Token = "0x6009D43")]
[Address(RVA = "0x4F0FD0", Offset = "0x4EFFD0", VA = "0x1804F0FD0")]
public static byte[] ReadAllLimited(Stream inStr, int limit)
{
MemoryStream memoryStream = new MemoryStream();
byte[] array = new byte[512];
int num = memoryStream.ReadByte();
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x06009D44 RID: 40260 RVA: 0x0020655C File Offset: 0x0020475C
[Token(Token = "0x6009D44")]
[Address(RVA = "0x4F12D0", Offset = "0x4F02D0", VA = "0x1804F12D0")]
public static int ReadFully(Stream inStr, byte[] buf)
{
int num = buf.Length;
int num2 = 0;
if (num > 0)
{
num -= num2;
}
return num2;
}
// Token: 0x06009D45 RID: 40261 RVA: 0x00206584 File Offset: 0x00204784
[Token(Token = "0x6009D45")]
[Address(RVA = "0x4F1240", Offset = "0x4F0240", VA = "0x1804F1240")]
public static int ReadFully(Stream inStr, byte[] buf, int off, int len)
{
int num = 0;
if (len > 0)
{
}
return num;
}
// Token: 0x06009D46 RID: 40262 RVA: 0x002065A0 File Offset: 0x002047A0
[Token(Token = "0x6009D46")]
[Address(RVA = "0x4F0F10", Offset = "0x4EFF10", VA = "0x1804F0F10")]
public static void PipeAll(Stream inStr, Stream outStr)
{
byte[] array = new byte[512];
int num = outStr.ReadByte();
}
// Token: 0x06009D47 RID: 40263 RVA: 0x002065C8 File Offset: 0x002047C8
[Token(Token = "0x6009D47")]
[Address(RVA = "0x4F0DF0", Offset = "0x4EFDF0", VA = "0x1804F0DF0")]
public static long PipeAllLimited(Stream inStr, long limit, Stream outStr)
{
byte[] array = new byte[512];
int num = outStr.ReadByte();
throw new NullReferenceException();
}
// Token: 0x06009D48 RID: 40264 RVA: 0x002065F0 File Offset: 0x002047F0
[Token(Token = "0x6009D48")]
[Address(RVA = "0x4F1350", Offset = "0x4F0350", VA = "0x1804F1350")]
public static void WriteBufTo(MemoryStream buf, Stream output)
{
((IDisposable)buf).Dispose();
}
// Token: 0x06009D49 RID: 40265 RVA: 0x0020660C File Offset: 0x0020480C
[Token(Token = "0x6009D49")]
[Address(RVA = "0x4F1380", Offset = "0x4F0380", VA = "0x1804F1380")]
public static int WriteBufTo(MemoryStream buf, byte[] output, int offset)
{
bool canWrite = buf.CanWrite;
ulong num;
MemoryStream memoryStream = new MemoryStream(output, offset, canWrite ? 1 : 0, num != 0UL);
byte[] array = buf.ToArray();
throw new NullReferenceException();
}
// Token: 0x06009D4A RID: 40266 RVA: 0x00206638 File Offset: 0x00204838
[Token(Token = "0x6009D4A")]
[Address(RVA = "0x4F1450", Offset = "0x4F0450", VA = "0x1804F1450")]
public static void WriteZeroes(Stream outStr, long count)
{
byte[] array = new byte[512];
int num = outStr.ReadByte();
int num2 = outStr.ReadByte();
}
// Token: 0x04006A28 RID: 27176
[Token(Token = "0x4006A28")]
private const int BufferSize = 512;
}
}
@@ -0,0 +1,62 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A20 RID: 6688
[Token(Token = "0x2001A20")]
public class TeeInputStream : BaseInputStream
{
// Token: 0x06009D4B RID: 40267 RVA: 0x00206664 File Offset: 0x00204864
[Token(Token = "0x6009D4B")]
[Address(RVA = "0x4F1BB0", Offset = "0x4F0BB0", VA = "0x1804F1BB0")]
public TeeInputStream(Stream input, Stream tee)
{
this.input = input;
this.tee = tee;
}
// Token: 0x06009D4C RID: 40268 RVA: 0x00206688 File Offset: 0x00204888
[Token(Token = "0x6009D4C")]
[Address(RVA = "0x4F1A20", Offset = "0x4F0A20", VA = "0x1804F1A20", Slot = "15")]
public override void Close()
{
int writeTimeout = this.input.WriteTimeout;
int writeTimeout2 = this.tee.WriteTimeout;
this.closed = true;
base.Close();
}
// Token: 0x06009D4D RID: 40269 RVA: 0x002066C0 File Offset: 0x002048C0
[Token(Token = "0x6009D4D")]
[Address(RVA = "0x4F1B20", Offset = "0x4F0B20", VA = "0x1804F1B20", Slot = "27")]
public override int Read(byte[] buf, int off, int len)
{
Stream stream = this.input;
int num = this.tee.ReadByte();
throw new NullReferenceException();
}
// Token: 0x06009D4E RID: 40270 RVA: 0x002066E8 File Offset: 0x002048E8
[Token(Token = "0x6009D4E")]
[Address(RVA = "0x4F1AC0", Offset = "0x4F0AC0", VA = "0x1804F1AC0", Slot = "28")]
public override int ReadByte()
{
Stream stream = this.input;
Stream stream2 = this.tee;
int num;
return num;
}
// Token: 0x04006A29 RID: 27177
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006A29")]
private readonly Stream input;
// Token: 0x04006A2A RID: 27178
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006A2A")]
private readonly Stream tee;
}
}
@@ -0,0 +1,59 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO
{
// Token: 0x02001A21 RID: 6689
[Token(Token = "0x2001A21")]
public class TeeOutputStream : BaseOutputStream
{
// Token: 0x06009D4F RID: 40271 RVA: 0x0020670C File Offset: 0x0020490C
[Token(Token = "0x6009D4F")]
[Address(RVA = "0x4F1DC0", Offset = "0x4F0DC0", VA = "0x1804F1DC0")]
public TeeOutputStream(Stream output, Stream tee)
{
this.output = output;
this.tee = tee;
}
// Token: 0x06009D50 RID: 40272 RVA: 0x00206730 File Offset: 0x00204930
[Token(Token = "0x6009D50")]
[Address(RVA = "0x4F1C30", Offset = "0x4F0C30", VA = "0x1804F1C30", Slot = "15")]
public override void Close()
{
int writeTimeout = this.output.WriteTimeout;
int writeTimeout2 = this.tee.WriteTimeout;
this.closed = true;
base.Close();
}
// Token: 0x06009D51 RID: 40273 RVA: 0x00206768 File Offset: 0x00204968
[Token(Token = "0x6009D51")]
[Address(RVA = "0x4F1D30", Offset = "0x4F0D30", VA = "0x1804F1D30", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
int num = this.output.ReadByte();
bool canRead = this.tee.CanRead;
}
// Token: 0x06009D52 RID: 40274 RVA: 0x00206794 File Offset: 0x00204994
[Token(Token = "0x6009D52")]
[Address(RVA = "0x4F1CD0", Offset = "0x4F0CD0", VA = "0x1804F1CD0", Slot = "30")]
public override void WriteByte(byte b)
{
Stream stream = this.output;
bool canRead = this.tee.CanRead;
}
// Token: 0x04006A2B RID: 27179
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006A2B")]
private readonly Stream output;
// Token: 0x04006A2C RID: 27180
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006A2C")]
private readonly Stream tee;
}
}
@@ -0,0 +1,51 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A04 RID: 6660
[Token(Token = "0x2001A04")]
public abstract class Integers
{
// Token: 0x06009C1C RID: 39964 RVA: 0x001FF0DC File Offset: 0x001FD2DC
[Token(Token = "0x6009C1C")]
[Address(RVA = "0x4EDD70", Offset = "0x4ECD70", VA = "0x1804EDD70")]
public static int RotateLeft(int i, int distance)
{
return i;
}
// Token: 0x06009C1D RID: 39965 RVA: 0x001FF0EC File Offset: 0x001FD2EC
[Token(Token = "0x6009C1D")]
[Address(RVA = "0x4EDD70", Offset = "0x4ECD70", VA = "0x1804EDD70")]
[CLSCompliant(false)]
public static uint RotateLeft(uint i, int distance)
{
return i;
}
// Token: 0x06009C1E RID: 39966 RVA: 0x001FF0FC File Offset: 0x001FD2FC
[Token(Token = "0x6009C1E")]
[Address(RVA = "0x4EDD90", Offset = "0x4ECD90", VA = "0x1804EDD90")]
public static int RotateRight(int i, int distance)
{
return i;
}
// Token: 0x06009C1F RID: 39967 RVA: 0x001FF10C File Offset: 0x001FD30C
[Token(Token = "0x6009C1F")]
[Address(RVA = "0x4EDD90", Offset = "0x4ECD90", VA = "0x1804EDD90")]
[CLSCompliant(false)]
public static uint RotateRight(uint i, int distance)
{
return i;
}
// Token: 0x06009C20 RID: 39968 RVA: 0x001FF11C File Offset: 0x001FD31C
[Token(Token = "0x6009C20")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Integers()
{
}
}
}
@@ -0,0 +1,18 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A05 RID: 6661
[Token(Token = "0x2001A05")]
public class MemoableResetException : InvalidCastException
{
// Token: 0x06009C21 RID: 39969 RVA: 0x001FF130 File Offset: 0x001FD330
[Token(Token = "0x6009C21")]
[Address(RVA = "0x4EEBA0", Offset = "0x4EDBA0", VA = "0x1804EEBA0")]
public MemoableResetException(string msg)
: base(msg)
{
}
}
}
@@ -0,0 +1,238 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net
{
// Token: 0x02001A18 RID: 6680
[Token(Token = "0x2001A18")]
public class IPAddress
{
// Token: 0x06009D01 RID: 40193 RVA: 0x00205C68 File Offset: 0x00203E68
[Token(Token = "0x6009D01")]
[Address(RVA = "0x4E9300", Offset = "0x4E8300", VA = "0x1804E9300")]
public static bool IsValid(string address)
{
return IPAddress.IsValidIPv4(address) || IPAddress.IsValidIPv6(address);
}
// Token: 0x06009D02 RID: 40194 RVA: 0x00205C88 File Offset: 0x00203E88
[Token(Token = "0x6009D02")]
[Address(RVA = "0x4E91E0", Offset = "0x4E81E0", VA = "0x1804E91E0")]
public static bool IsValidWithNetMask(string address)
{
int num2;
int num = num2 + 1;
string text = address.Substring(num);
if (num2 > 0)
{
int num3 = 0;
if (IPAddress.IsValidIPv4(address.Substring(num3, num2)) && (IPAddress.IsValidIPv4(text) || IPAddress.IsMaskValue(text, 32)))
{
return true;
}
}
int num4;
num2 = num4;
int num5 = num4 + 1;
string text2 = address.Substring(num5);
if (num2 > 0)
{
int num6 = 0;
if (!IPAddress.IsValidIPv6(address.Substring(num6, num2)))
{
}
}
IL_66:
bool flag;
while (flag)
{
}
bool flag2;
return flag2;
goto IL_66;
}
// Token: 0x06009D03 RID: 40195 RVA: 0x00205D08 File Offset: 0x00203F08
[Token(Token = "0x6009D03")]
[Address(RVA = "0x4E8FA0", Offset = "0x4E7FA0", VA = "0x1804E8FA0")]
public static bool IsValidIPv4(string address)
{
if (address.m_stringLength != 0)
{
int num = 0;
string text = address + ".";
if (num < text.m_stringLength)
{
uint num3;
int num2 = text.IndexOf((char)num3, num);
if (num2 > num && num != 4)
{
num2 -= num;
if (int.Parse(text.Substring(num, num2)) <= 255)
{
num++;
}
}
}
}
throw new NullReferenceException();
}
// Token: 0x06009D04 RID: 40196 RVA: 0x00205D70 File Offset: 0x00203F70
[Token(Token = "0x6009D04")]
[Address(RVA = "0x4E9330", Offset = "0x4E8330", VA = "0x1804E9330")]
private static bool unsafeIsValidIPv4(string address)
{
if (address.m_stringLength != 0)
{
int num = 0;
string text = address + ".";
if (num < text.m_stringLength)
{
uint num3;
int num2 = text.IndexOf((char)num3, num);
if (num2 > num)
{
if (num == 4)
{
goto IL_52;
}
num2 -= num;
if (int.Parse(text.Substring(num, num2)) > 255)
{
goto IL_52;
}
num++;
}
}
return num == 4;
}
IL_52:
throw new NullReferenceException();
}
// Token: 0x06009D05 RID: 40197 RVA: 0x00205DD4 File Offset: 0x00203FD4
[Token(Token = "0x6009D05")]
[Address(RVA = "0x4E8EE0", Offset = "0x4E7EE0", VA = "0x1804E8EE0")]
public static bool IsValidIPv4WithNetmask(string address)
{
int num2;
int num = num2 + 1;
string text = address.Substring(num);
if (num2 > 0)
{
int num3 = 0;
if (IPAddress.IsValidIPv4(address.Substring(num3, num2)))
{
return IPAddress.IsValidIPv4(text) || IPAddress.IsMaskValue(text, 32);
}
}
throw new NullReferenceException();
}
// Token: 0x06009D06 RID: 40198 RVA: 0x00205E20 File Offset: 0x00204020
[Token(Token = "0x6009D06")]
[Address(RVA = "0x4E90C0", Offset = "0x4E80C0", VA = "0x1804E90C0")]
public static bool IsValidIPv6WithNetmask(string address)
{
int num2;
int num = num2 + 1;
string text = address.Substring(num);
if (num2 > 0)
{
int num3 = 0;
if (!IPAddress.IsValidIPv6(address.Substring(num3, num2)))
{
}
}
bool flag;
bool flag2;
return flag || flag2;
}
// Token: 0x06009D07 RID: 40199 RVA: 0x00205E64 File Offset: 0x00204064
[Token(Token = "0x6009D07")]
[Address(RVA = "0x4E8E60", Offset = "0x4E7E60", VA = "0x1804E8E60")]
private static bool IsMaskValue(string component, int size)
{
return int.Parse(component) <= size;
}
// Token: 0x06009D08 RID: 40200 RVA: 0x00205E80 File Offset: 0x00204080
[Token(Token = "0x6009D08")]
[Address(RVA = "0x4E9180", Offset = "0x4E8180", VA = "0x1804E9180")]
public static bool IsValidIPv6(string address)
{
return IPAddress.unsafeIsValidIPv6(address);
}
// Token: 0x06009D09 RID: 40201 RVA: 0x00205E98 File Offset: 0x00204098
[Token(Token = "0x6009D09")]
[Address(RVA = "0x4E9410", Offset = "0x4E8410", VA = "0x1804E9410")]
private static bool unsafeIsValidIPv6(string address)
{
if (address.m_stringLength != 0)
{
int num = 0;
string text = address + ":";
int num2 = 0;
if (num < text.m_stringLength)
{
uint num4;
int num3 = text.IndexOf((char)num4, num);
if (num == 8)
{
goto IL_C2;
}
int num5;
if (num == num3)
{
if (num3 != 1)
{
int stringLength = text.m_stringLength;
}
if (num != num2)
{
goto IL_C2;
}
num5 = num3 + 1;
num = num5;
num++;
}
num3 -= num5;
string text2 = text.Substring(num5, num3);
int stringLength2 = text.m_stringLength;
uint num6;
int num7;
if (num3 == stringLength2 && text2.IndexOf((char)num6) > 0)
{
if (!IPAddress.IsValidIPv4(text2))
{
goto IL_C2;
}
num++;
num7 = num3 + 1;
num++;
}
string text3 = text.Substring(num7, num3);
int num8;
if (num8 > 65535)
{
goto IL_C2;
}
num++;
}
return num != 8;
}
IL_C2:
throw new NullReferenceException();
}
// Token: 0x06009D0A RID: 40202 RVA: 0x00205F6C File Offset: 0x0020416C
[Token(Token = "0x6009D0A")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public IPAddress()
{
}
}
}
@@ -0,0 +1,371 @@
using System;
using System.Collections;
using System.Globalization;
using System.IO;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A06 RID: 6662
[Token(Token = "0x2001A06")]
internal abstract class Platform
{
// Token: 0x06009C22 RID: 39970 RVA: 0x001FF144 File Offset: 0x001FD344
[Token(Token = "0x6009C22")]
[Address(RVA = "0x4F07F0", Offset = "0x4EF7F0", VA = "0x1804F07F0")]
private static string GetNewLine()
{
return Environment.NewLine;
}
// Token: 0x06009C23 RID: 39971 RVA: 0x001FF158 File Offset: 0x001FD358
[Token(Token = "0x6009C23")]
[Address(RVA = "0x4F0680", Offset = "0x4EF680", VA = "0x1804F0680")]
internal static bool EqualsIgnoreCase(string a, string b)
{
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
string text = a.ToUpper(invariantCulture);
CultureInfo invariantCulture2 = CultureInfo.InvariantCulture;
string text2 = b.ToUpper(invariantCulture2);
return string.Equals(text, text2);
}
// Token: 0x06009C24 RID: 39972 RVA: 0x001FF198 File Offset: 0x001FD398
[Token(Token = "0x6009C24")]
[Address(RVA = "0x4F0790", Offset = "0x4EF790", VA = "0x1804F0790")]
internal static string GetEnvironmentVariable(string variable)
{
/*
An exception occurred when decompiling this method (06009C24)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::GetEnvironmentVariable(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:string(var_0_06, call:string(Environment::GetEnvironmentVariable, ldloc:string(variable)))
}
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: 0x06009C25 RID: 39973 RVA: 0x001FF1B0 File Offset: 0x001FD3B0
[Token(Token = "0x6009C25")]
[Address(RVA = "0x4F0520", Offset = "0x4EF520", VA = "0x1804F0520")]
internal static Exception CreateNotImplementedException(string message)
{
/*
An exception occurred when decompiling this method (06009C25)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Exception BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateNotImplementedException(System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotImplementedException(var_0_06, newobj:NotImplementedException(NotImplementedException::.ctor, ldloc:string(message)))
}
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: 0x06009C26 RID: 39974 RVA: 0x001FF1C4 File Offset: 0x001FD3C4
[Token(Token = "0x6009C26")]
[Address(RVA = "0x4F03C0", Offset = "0x4EF3C0", VA = "0x1804F03C0")]
internal static IList CreateArrayList()
{
/*
An exception occurred when decompiling this method (06009C26)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateArrayList()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ArrayList(var_0_05, newobj:ArrayList(ArrayList::.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: 0x06009C27 RID: 39975 RVA: 0x001FF1D8 File Offset: 0x001FD3D8
[Token(Token = "0x6009C27")]
[Address(RVA = "0x4F01B0", Offset = "0x4EF1B0", VA = "0x1804F01B0")]
internal static IList CreateArrayList(int capacity)
{
/*
An exception occurred when decompiling this method (06009C27)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateArrayList(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ArrayList(var_0_06, newobj:ArrayList(ArrayList::.ctor, ldloc:int32(capacity)))
}
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: 0x06009C28 RID: 39976 RVA: 0x001FF1EC File Offset: 0x001FD3EC
[Token(Token = "0x6009C28")]
[Address(RVA = "0x4F0150", Offset = "0x4EF150", VA = "0x1804F0150")]
internal static IList CreateArrayList(ICollection collection)
{
/*
An exception occurred when decompiling this method (06009C28)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateArrayList(System.Collections.ICollection)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:ArrayList(var_0_06, newobj:ArrayList(ArrayList::.ctor, ldloc:ICollection(collection)))
}
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: 0x06009C29 RID: 39977 RVA: 0x001FF200 File Offset: 0x001FD400
[Token(Token = "0x6009C29")]
[Address(RVA = "0x4F0210", Offset = "0x4EF210", VA = "0x1804F0210")]
internal static IList CreateArrayList(IEnumerable collection)
{
int num;
do
{
num = 0;
ArrayList arrayList = new ArrayList();
if (arrayList != 0)
{
if (num < arrayList)
{
num += num;
num++;
}
num += num;
}
}
while (num != 0);
throw new NullReferenceException();
}
// Token: 0x06009C2A RID: 39978 RVA: 0x001FF240 File Offset: 0x001FD440
[Token(Token = "0x6009C2A")]
[Address(RVA = "0x4F04D0", Offset = "0x4EF4D0", VA = "0x1804F04D0")]
internal static IDictionary CreateHashtable()
{
/*
An exception occurred when decompiling this method (06009C2A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionary BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateHashtable()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Hashtable(var_0_05, newobj:Hashtable(Hashtable::.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: 0x06009C2B RID: 39979 RVA: 0x001FF254 File Offset: 0x001FD454
[Token(Token = "0x6009C2B")]
[Address(RVA = "0x4F0470", Offset = "0x4EF470", VA = "0x1804F0470")]
internal static IDictionary CreateHashtable(int capacity)
{
/*
An exception occurred when decompiling this method (06009C2B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionary BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateHashtable(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Hashtable(var_0_06, newobj:Hashtable(Hashtable::.ctor, ldloc:int32(capacity)))
}
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: 0x06009C2C RID: 39980 RVA: 0x001FF268 File Offset: 0x001FD468
[Token(Token = "0x6009C2C")]
[Address(RVA = "0x4F0410", Offset = "0x4EF410", VA = "0x1804F0410")]
internal static IDictionary CreateHashtable(IDictionary dictionary)
{
/*
An exception occurred when decompiling this method (06009C2C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IDictionary BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Platform::CreateHashtable(System.Collections.IDictionary)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Hashtable(var_0_06, newobj:Hashtable(Hashtable::.ctor, ldloc:IDictionary(dictionary)))
}
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: 0x06009C2D RID: 39981 RVA: 0x001FF27C File Offset: 0x001FD47C
[Token(Token = "0x6009C2D")]
[Address(RVA = "0x4F0A20", Offset = "0x4EFA20", VA = "0x1804F0A20")]
internal static string ToLowerInvariant(string s)
{
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
return s.ToLower(invariantCulture);
}
// Token: 0x06009C2E RID: 39982 RVA: 0x001FF2A0 File Offset: 0x001FD4A0
[Token(Token = "0x6009C2E")]
[Address(RVA = "0x4F0A90", Offset = "0x4EFA90", VA = "0x1804F0A90")]
internal static string ToUpperInvariant(string s)
{
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
return s.ToUpper(invariantCulture);
}
// Token: 0x06009C2F RID: 39983 RVA: 0x001FF2C4 File Offset: 0x001FD4C4
[Token(Token = "0x6009C2F")]
[Address(RVA = "0x4F0580", Offset = "0x4EF580", VA = "0x1804F0580")]
internal static void Dispose(Stream s)
{
bool canRead = s.CanRead;
}
// Token: 0x06009C30 RID: 39984 RVA: 0x001FF2E0 File Offset: 0x001FD4E0
[Token(Token = "0x6009C30")]
[Address(RVA = "0x4F05B0", Offset = "0x4EF5B0", VA = "0x1804F05B0")]
internal static void Dispose(TextWriter t)
{
Encoding encoding = t.Encoding;
}
// Token: 0x06009C31 RID: 39985 RVA: 0x001FF2FC File Offset: 0x001FD4FC
[Token(Token = "0x6009C31")]
[Address(RVA = "0x4F0840", Offset = "0x4EF840", VA = "0x1804F0840")]
internal static int IndexOf(string source, string value)
{
bool flag = Platform.InvariantCompareInfo.IsSuffix(source, value, (CompareOptions)((uint)1073741824));
throw new NullReferenceException();
}
// Token: 0x06009C32 RID: 39986 RVA: 0x001FF324 File Offset: 0x001FD524
[Token(Token = "0x6009C32")]
[Address(RVA = "0x4F08E0", Offset = "0x4EF8E0", VA = "0x1804F08E0")]
internal static int LastIndexOf(string source, string value)
{
CompareInfo invariantCompareInfo = Platform.InvariantCompareInfo;
int num;
return num;
}
// Token: 0x06009C33 RID: 39987 RVA: 0x001FF340 File Offset: 0x001FD540
[Token(Token = "0x6009C33")]
[Address(RVA = "0x4F0980", Offset = "0x4EF980", VA = "0x1804F0980")]
internal static bool StartsWith(string source, string prefix)
{
CompareInfo invariantCompareInfo = Platform.InvariantCompareInfo;
throw new NullReferenceException();
}
// Token: 0x06009C34 RID: 39988 RVA: 0x001FF358 File Offset: 0x001FD558
[Token(Token = "0x6009C34")]
[Address(RVA = "0x4F05E0", Offset = "0x4EF5E0", VA = "0x1804F05E0")]
internal static bool EndsWith(string source, string suffix)
{
return Platform.InvariantCompareInfo.IsPrefix(source, suffix, (CompareOptions)((uint)1073741824));
}
// Token: 0x06009C35 RID: 39989 RVA: 0x001FF380 File Offset: 0x001FD580
[Token(Token = "0x6009C35")]
[Address(RVA = "0x4F0800", Offset = "0x4EF800", VA = "0x1804F0800")]
internal static string GetTypeName(object obj)
{
Guid guid = obj.GetType().GUID;
throw new NullReferenceException();
}
// Token: 0x06009C36 RID: 39990 RVA: 0x001FF3A0 File Offset: 0x001FD5A0
[Token(Token = "0x6009C36")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Platform()
{
}
// Token: 0x06009C37 RID: 39991 RVA: 0x001FF3B4 File Offset: 0x001FD5B4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C37")]
[Address(RVA = "0x4F0B00", Offset = "0x4EFB00", VA = "0x1804F0B00")]
static Platform()
{
object obj = CultureInfo.InvariantCulture.Clone();
Platform.InvariantCompareInfo = obj;
Platform.NewLine = Environment.NewLine;
}
// Token: 0x040068A0 RID: 26784
[Token(Token = "0x40068A0")]
private static readonly CompareInfo InvariantCompareInfo;
// Token: 0x040068A1 RID: 26785
[Token(Token = "0x40068A1")]
internal static readonly string NewLine;
}
}
@@ -0,0 +1,127 @@
using System;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A07 RID: 6663
[Token(Token = "0x2001A07")]
public abstract class Strings
{
// Token: 0x06009C38 RID: 39992 RVA: 0x001FF3E8 File Offset: 0x001FD5E8
[Token(Token = "0x6009C38")]
[Address(RVA = "0x4F16C0", Offset = "0x4F06C0", VA = "0x1804F16C0")]
internal static bool IsOneOf(string s, params string[] candidates)
{
int num = 0;
int length = candidates.Length;
if (num < length)
{
string text = candidates[num];
if (!string.Equals(s, text))
{
num++;
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009C39 RID: 39993 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009C39")]
[Address(RVA = "0x4F1570", Offset = "0x4F0570", VA = "0x1804F1570")]
public static string FromByteArray(byte[] bs)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009C3A RID: 39994 RVA: 0x001FF424 File Offset: 0x001FD624
[Token(Token = "0x6009C3A")]
[Address(RVA = "0x4F17D0", Offset = "0x4F07D0", VA = "0x1804F17D0")]
public static byte[] ToByteArray(char[] cs)
{
byte[] array = new byte[cs.Length];
int num = 0;
if (num < array.Length)
{
byte b = Convert.ToByte(cs[num]);
num++;
}
return array;
}
// Token: 0x06009C3B RID: 39995 RVA: 0x001FF460 File Offset: 0x001FD660
[Token(Token = "0x6009C3B")]
[Address(RVA = "0x4F18C0", Offset = "0x4F08C0", VA = "0x1804F18C0")]
public static byte[] ToByteArray(string s)
{
byte[] array = new byte[s.m_stringLength];
int num = 0;
if (num < array.Length)
{
byte b = Convert.ToByte(s[num]);
num++;
}
return array;
}
// Token: 0x06009C3C RID: 39996 RVA: 0x001FF49C File Offset: 0x001FD69C
[Token(Token = "0x6009C3C")]
[Address(RVA = "0x4F1520", Offset = "0x4F0520", VA = "0x1804F1520")]
public static string FromAsciiByteArray(byte[] bytes)
{
return Encoding.ASCII.GetString(bytes);
}
// Token: 0x06009C3D RID: 39997 RVA: 0x001FF4BC File Offset: 0x001FD6BC
[Token(Token = "0x6009C3D")]
[Address(RVA = "0x4F1750", Offset = "0x4F0750", VA = "0x1804F1750")]
public static byte[] ToAsciiByteArray(char[] cs)
{
Encoding ascii = Encoding.ASCII;
throw new NullReferenceException();
}
// Token: 0x06009C3E RID: 39998 RVA: 0x001FF4D8 File Offset: 0x001FD6D8
[Token(Token = "0x6009C3E")]
[Address(RVA = "0x4F1790", Offset = "0x4F0790", VA = "0x1804F1790")]
public static byte[] ToAsciiByteArray(string s)
{
Encoding ascii = Encoding.ASCII;
throw new NullReferenceException();
}
// Token: 0x06009C3F RID: 39999 RVA: 0x001FF4F4 File Offset: 0x001FD6F4
[Token(Token = "0x6009C3F")]
[Address(RVA = "0x4F1670", Offset = "0x4F0670", VA = "0x1804F1670")]
public static string FromUtf8ByteArray(byte[] bytes)
{
return Encoding.UTF8.GetString(bytes);
}
// Token: 0x06009C40 RID: 40000 RVA: 0x001FF514 File Offset: 0x001FD714
[Token(Token = "0x6009C40")]
[Address(RVA = "0x4F19A0", Offset = "0x4F09A0", VA = "0x1804F19A0")]
public static byte[] ToUtf8ByteArray(char[] cs)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x06009C41 RID: 40001 RVA: 0x001FF530 File Offset: 0x001FD730
[Token(Token = "0x6009C41")]
[Address(RVA = "0x4F19E0", Offset = "0x4F09E0", VA = "0x1804F19E0")]
public static byte[] ToUtf8ByteArray(string s)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x06009C42 RID: 40002 RVA: 0x001FF54C File Offset: 0x001FD74C
[Token(Token = "0x6009C42")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Strings()
{
}
}
}
@@ -0,0 +1,48 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A08 RID: 6664
[Token(Token = "0x2001A08")]
public sealed class Times
{
// Token: 0x06009C43 RID: 40003 RVA: 0x001FF560 File Offset: 0x001FD760
[Token(Token = "0x6009C43")]
[Address(RVA = "0x4F1E40", Offset = "0x4F0E40", VA = "0x1804F1E40")]
public static long NanoTime()
{
/*
An exception occurred when decompiling this method (06009C43)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Times::NanoTime()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:DateTime(var_2_07, callgetter:DateTime(DateTime::get_UtcNow))
stloc:DateTime(var_3_0B, mul:DateTime(ldloc:DateTime(var_2_07), ldloc:DateTime(var_2_07)))
}
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: 0x06009C44 RID: 40004 RVA: 0x001FF578 File Offset: 0x001FD778
[Token(Token = "0x6009C44")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public Times()
{
}
// Token: 0x040068A2 RID: 26786
[Token(Token = "0x40068A2")]
private static long NanosecondsPerTick;
}
}
@@ -0,0 +1,67 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A09 RID: 6665
[Token(Token = "0x2001A09")]
internal sealed class Adler32
{
// Token: 0x06009C46 RID: 40006 RVA: 0x001FF59C File Offset: 0x001FD79C
[Token(Token = "0x6009C46")]
[Address(RVA = "0x4DB730", Offset = "0x4DA730", VA = "0x1804DB730")]
internal long adler32(long adler, byte[] buf, int index, int len)
{
if (buf != 0)
{
int length = buf.Length;
int num = index + 1;
byte b = buf[num];
byte b2 = buf[(int)b];
byte b3 = buf[(int)b2];
byte b4 = buf[(int)b3];
byte b5 = buf[(int)b4];
byte b6 = buf[index];
byte b7 = buf[(int)b6];
byte b8 = buf[index];
byte b9 = buf[(int)b8];
byte b10 = buf[(int)b9];
byte b11 = buf[index];
byte b12 = buf[index];
byte b14;
byte b13 = buf[(int)b14];
byte b15 = b13 + 1;
b13 = (byte)((long)b13 + adler);
b13 = (byte)((long)b13 + adler);
b13 = (byte)((long)b13 + adler);
b13 = (byte)((long)b13 + adler);
b13 = (byte)((long)b13 + adler);
b13 = (byte)((long)b13 + adler);
int length2 = buf.Length;
ulong num2;
num2 += num2;
long num3 = (long)(num2 * (ulong)65521L);
ulong num4;
num4 += num4;
long num5 = (long)(num4 * (ulong)65521L);
return adler;
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009C47 RID: 40007 RVA: 0x001FF6A0 File Offset: 0x001FD8A0
[Token(Token = "0x6009C47")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public Adler32()
{
}
// Token: 0x040068A3 RID: 26787
[Token(Token = "0x40068A3")]
private const int BASE = 65521;
// Token: 0x040068A4 RID: 26788
[Token(Token = "0x40068A4")]
private const int NMAX = 5552;
}
}
@@ -0,0 +1,2192 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A0A RID: 6666
[Token(Token = "0x2001A0A")]
public sealed class Deflate
{
// Token: 0x06009C48 RID: 40008 RVA: 0x001FF6B4 File Offset: 0x001FD8B4
[Token(Token = "0x6009C48")]
[Address(RVA = "0x4E13F0", Offset = "0x4E03F0", VA = "0x1804E13F0")]
static Deflate()
{
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] = "";
Deflate.z_errmsg = array;
Deflate.config_table = new Deflate.Config[10];
Deflate.Config[] array2 = Deflate.config_table;
int num = 0;
Deflate.Config config;
config.good_length = num;
config.nice_length = num;
config.func = num;
array2[0] = config;
Deflate.Config[] array3 = Deflate.config_table;
Deflate.Config config2;
config2.good_length = (int)((ulong)4L);
config2.max_lazy = (int)((ulong)4L);
config2.nice_length = (int)((ulong)8L);
config2.max_chain = (int)((ulong)4L);
config2.func = (int)((ulong)1L);
array3[1] = config2;
Deflate.Config[] array4 = Deflate.config_table;
Deflate.Config config3;
config3.good_length = (int)((ulong)4L);
config3.max_lazy = (int)((ulong)5L);
config3.nice_length = (int)((ulong)16L);
config3.max_chain = (int)((ulong)8L);
config3.func = (int)((ulong)1L);
array4[2] = config3;
Deflate.Config[] array5 = Deflate.config_table;
Deflate.Config config4;
config4.good_length = (int)((ulong)4L);
config4.max_lazy = (int)((ulong)6L);
config4.nice_length = (int)((ulong)32L);
config4.max_chain = (int)((ulong)32L);
config4.func = (int)((ulong)1L);
array5[3] = config4;
Deflate.Config[] array6 = Deflate.config_table;
Deflate.Config config5;
config5.good_length = (int)((ulong)4L);
config5.max_lazy = (int)((ulong)4L);
config5.nice_length = (int)((ulong)16L);
config5.max_chain = (int)((ulong)16L);
config5.func = (int)((ulong)2L);
array6[4] = config5;
Deflate.Config[] array7 = Deflate.config_table;
Deflate.Config config6;
config6.good_length = (int)((ulong)8L);
config6.max_lazy = (int)((ulong)16L);
config6.nice_length = (int)((ulong)32L);
config6.max_chain = (int)((ulong)32L);
config6.func = (int)((ulong)2L);
array7[5] = config6;
Deflate.Config[] array8 = Deflate.config_table;
Deflate.Config config7;
config7.good_length = (int)((ulong)8L);
config7.max_lazy = (int)((ulong)16L);
config7.nice_length = (int)((ulong)128L);
config7.max_chain = (int)((ulong)128L);
config7.func = (int)((ulong)2L);
array8[6] = config7;
Deflate.Config[] array9 = Deflate.config_table;
Deflate.Config config8;
config8.good_length = (int)((ulong)8L);
config8.max_lazy = (int)((ulong)32L);
config8.nice_length = (int)((ulong)128L);
config8.max_chain = (int)((ulong)256L);
config8.func = (int)((ulong)2L);
array9[7] = config8;
Deflate.Config[] array10 = Deflate.config_table;
Deflate.Config config9;
config9.good_length = (int)((ulong)32L);
config9.max_lazy = (int)((ulong)128L);
config9.nice_length = (int)((ulong)258L);
config9.max_chain = (int)((ulong)1024L);
config9.func = (int)((ulong)2L);
array10[8] = config9;
Deflate.Config[] array11 = Deflate.config_table;
Deflate.Config config10;
config10.good_length = (int)((ulong)32L);
config10.max_lazy = (int)((ulong)258L);
config10.nice_length = (int)((ulong)258L);
config10.max_chain = (int)((ulong)4096L);
config10.func = (int)((ulong)2L);
array11[9] = config10;
}
// Token: 0x06009C49 RID: 40009 RVA: 0x001FFA60 File Offset: 0x001FDC60
[Token(Token = "0x6009C49")]
[Address(RVA = "0x4E1DF0", Offset = "0x4E0DF0", VA = "0x1804E1DF0")]
internal Deflate()
{
ZTree ztree = new ZTree();
this.l_desc = ztree;
ZTree ztree2 = new ZTree();
this.d_desc = ztree2;
ZTree ztree3 = new ZTree();
this.bl_desc = ztree3;
short[] array = new short[16];
this.bl_count = array;
int[] array2 = new int[573];
this.heap = array2;
byte[] array3 = new byte[573];
this.depth = array3;
base..ctor();
short[] array4 = new short[1146];
this.dyn_ltree = array4;
short[] array5 = new short[122];
this.dyn_dtree = array5;
short[] array6 = new short[78];
this.bl_tree = array6;
}
// Token: 0x06009C4A RID: 40010 RVA: 0x001FFB08 File Offset: 0x001FDD08
[Token(Token = "0x6009C4A")]
[Address(RVA = "0x4E51D0", Offset = "0x4E41D0", VA = "0x1804E51D0")]
internal void lm_init()
{
int num = this.w_size;
short[] array = this.head;
num += num;
this.window_size = num;
int num2 = this.hash_size;
int num3 = 0;
array[0] = (short)num3;
if (this.hash_size > 0)
{
short[] array2 = this.head;
num3++;
array2[0] = (short)num3;
int num4 = this.hash_size;
}
Deflate.Config[] array3 = Deflate.config_table;
int num5 = this.level;
int max_lazy = array3[num5].max_lazy;
this.max_lazy_match = max_lazy;
int good_length = Deflate.config_table[num5].good_length;
this.good_match = good_length;
int nice_length = Deflate.config_table[num5].nice_length;
this.nice_match = nice_length;
int max_chain = Deflate.config_table[num5].max_chain;
this.match_available = num3;
this.block_start = num3;
this.lookahead = num3;
this.ins_h = num3;
this.max_chain_length = max_chain;
this.prev_length = (int)((ulong)2L);
this.match_length = (int)((ulong)2L);
}
// Token: 0x06009C4B RID: 40011 RVA: 0x001FFC14 File Offset: 0x001FDE14
[Token(Token = "0x6009C4B")]
[Address(RVA = "0x4E6710", Offset = "0x4E5710", VA = "0x1804E6710")]
internal void tr_init()
{
ZTree ztree = this.l_desc;
short[] array = this.dyn_ltree;
ztree.dyn_tree = array;
ZTree ztree2 = this.l_desc;
StaticTree static_l_desc = StaticTree.static_l_desc;
ztree2.stat_desc = static_l_desc;
ZTree ztree3 = this.d_desc;
short[] array2 = this.dyn_dtree;
ztree3.dyn_tree = array2;
ZTree ztree4 = this.d_desc;
StaticTree static_d_desc = StaticTree.static_d_desc;
ztree4.stat_desc = static_d_desc;
ZTree ztree5 = this.bl_desc;
short[] array3 = this.bl_tree;
ztree5.dyn_tree = array3;
ZTree ztree6 = this.bl_desc;
StaticTree static_bl_desc = StaticTree.static_bl_desc;
ztree6.stat_desc = static_bl_desc;
int num = 0;
this.bi_buf = (uint)num;
this.last_eob_len = (int)((ulong)8L);
this.init_block();
}
// Token: 0x06009C4C RID: 40012 RVA: 0x001FFCCC File Offset: 0x001FDECC
[Token(Token = "0x6009C4C")]
[Address(RVA = "0x4E50A0", Offset = "0x4E40A0", VA = "0x1804E50A0")]
internal void init_block()
{
int num = 0;
short[] array = this.dyn_ltree;
num += 2;
array[0] = (short)num;
short[] array2 = this.dyn_dtree;
num += 2;
array2[0] = (short)num;
short[] array3 = this.bl_tree;
num += 2;
array3[0] = (short)num;
uint num2;
this.dyn_ltree[128] = (short)num2;
this.opt_len = num;
this.matches = num;
this.last_lit = num;
}
// Token: 0x06009C4D RID: 40013 RVA: 0x001FFD44 File Offset: 0x001FDF44
[Token(Token = "0x6009C4D")]
[Address(RVA = "0x4E5A20", Offset = "0x4E4A20", VA = "0x1804E5A20")]
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;
byte[] array2 = this.depth;
if (Deflate.smaller(tree, num3, k, array2))
{
}
int[] array3 = this.heap;
byte[] array4 = this.depth;
if (!Deflate.smaller(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: 0x06009C4E RID: 40014 RVA: 0x001FFDE8 File Offset: 0x001FDFE8
[Token(Token = "0x6009C4E")]
[Address(RVA = "0x4E6650", Offset = "0x4E5650", VA = "0x1804E6650")]
internal static bool smaller(short[] tree, int n, int m, byte[] depth)
{
int length = tree.Length;
short num;
short num2;
if (num < num2)
{
return true;
}
if (num != num2)
{
}
int length2 = depth.Length;
throw new NullReferenceException();
}
// Token: 0x06009C4F RID: 40015 RVA: 0x001FFE18 File Offset: 0x001FE018
[Token(Token = "0x6009C4F")]
[Address(RVA = "0x4E5E10", Offset = "0x4E4E10", VA = "0x1804E5E10")]
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)
{
}
if (tree == 0)
{
short[] array = this.bl_tree;
if (1UL > (ulong)10L)
{
}
}
if (tree != num)
{
short[] array2 = this.bl_tree;
}
short[] array3 = this.bl_tree;
short[] array4 = this.bl_tree;
i++;
num2 += 2;
while (i <= max_code)
{
}
}
// Token: 0x06009C50 RID: 40016 RVA: 0x001FFE88 File Offset: 0x001FE088
[Token(Token = "0x6009C50")]
[Address(RVA = "0x4E2B90", Offset = "0x4E1B90", VA = "0x1804E2B90")]
internal int build_bl_tree()
{
int max_code = this.l_desc.max_code;
short[] array = this.dyn_ltree;
this.scan_tree(array, max_code);
int max_code2 = this.d_desc.max_code;
short[] array2 = this.dyn_dtree;
this.scan_tree(array2, max_code2);
this.bl_desc.build_tree(this);
short[] array3 = this.bl_tree;
byte[] bl_order = ZTree.bl_order;
uint num;
if ("{il2cpp array field local12->}" == (ulong)0L)
{
while (num >= (uint)3)
{
}
}
byte b = (byte)((uint)b + num);
throw new NullReferenceException();
}
// Token: 0x06009C51 RID: 40017 RVA: 0x001FFF04 File Offset: 0x001FE104
[Token(Token = "0x6009C51")]
[Address(RVA = "0x4E6070", Offset = "0x4E5070", VA = "0x1804E6070")]
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;
byte[] bl_order = ZTree.bl_order;
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: 0x06009C52 RID: 40018 RVA: 0x001FFF70 File Offset: 0x001FE170
[Token(Token = "0x6009C52")]
[Address(RVA = "0x4E6350", Offset = "0x4E5350", VA = "0x1804E6350")]
internal void send_tree(short[] tree, int max_code)
{
int num = 0;
int num2 = 0;
num2 += 3;
uint num3;
if (1U < num3)
{
}
short[] array = this.bl_tree;
if (1UL > (ulong)10L)
{
this.send_code((int)num3, array);
uint num4;
this.send_bits((int)num3, (int)num4);
}
uint num5;
this.send_code((int)num5, array);
this.send_bits((int)num5, 3);
short[] array2 = this.bl_tree;
this.send_code((int)num3, array2);
short[] array3 = this.bl_tree;
this.send_code(16, array3);
this.send_bits(16, 2);
short[] array4 = this.bl_tree;
this.send_code(16, array4);
while (num2 != 0)
{
}
num++;
num2 += 2;
}
// Token: 0x06009C53 RID: 40019 RVA: 0x00200014 File Offset: 0x001FE214
[Token(Token = "0x6009C53")]
[Address(RVA = "0x4E5D00", Offset = "0x4E4D00", VA = "0x1804E5D00")]
internal void put_byte(byte[] p, int start, int len)
{
byte[] array = this.pending_buf;
int num = this.pending;
Array.Copy(p, start, array, num, len);
}
// Token: 0x06009C54 RID: 40020 RVA: 0x0020003C File Offset: 0x001FE23C
[Token(Token = "0x6009C54")]
[Address(RVA = "0x4E5D50", Offset = "0x4E4D50", VA = "0x1804E5D50")]
internal void put_byte(byte c)
{
int num = this.pending;
byte[] array = this.pending_buf;
int num2 = num + 1;
this.pending = num2;
}
// Token: 0x06009C55 RID: 40021 RVA: 0x00200068 File Offset: 0x001FE268
[Token(Token = "0x6009C55")]
[Address(RVA = "0x4E5D90", Offset = "0x4E4D90", VA = "0x1804E5D90")]
internal void put_short(int w)
{
byte[] array = this.pending_buf;
int num = this.pending + 1;
this.pending = num;
int num2 = this.pending;
byte[] array2 = this.pending_buf;
int num3 = num2 + 1;
this.pending = num3;
}
// Token: 0x06009C56 RID: 40022 RVA: 0x002000B0 File Offset: 0x001FE2B0
[Token(Token = "0x6009C56")]
[Address(RVA = "0x4E5C80", Offset = "0x4E4C80", VA = "0x1804E5C80")]
internal void putShortMSB(int b)
{
int num = this.pending;
byte[] array = this.pending_buf;
int num2 = num + 1;
this.pending = num2;
int num3 = this.pending;
byte[] array2 = this.pending_buf;
int num4 = num3 + 1;
this.pending = num4;
}
// Token: 0x06009C57 RID: 40023 RVA: 0x002000F8 File Offset: 0x001FE2F8
[Token(Token = "0x6009C57")]
[Address(RVA = "0x4E62E0", Offset = "0x4E52E0", VA = "0x1804E62E0")]
internal void send_code(int c, short[] tree)
{
int length = tree.Length;
short num;
short num2;
this.send_bits((int)num, (int)num2);
}
// Token: 0x06009C58 RID: 40024 RVA: 0x0020011C File Offset: 0x001FE31C
[Token(Token = "0x6009C58")]
[Address(RVA = "0x4E61F0", Offset = "0x4E51F0", VA = "0x1804E61F0")]
internal void send_bits(int val, int length)
{
int num = this.bi_valid;
uint num2;
num2 -= (uint)length;
this.bi_buf = (uint)val;
}
// Token: 0x06009C59 RID: 40025 RVA: 0x002001A8 File Offset: 0x001FE3A8
[Token(Token = "0x6009C59")]
[Address(RVA = "0x4E1F20", Offset = "0x4E0F20", VA = "0x1804E1F20")]
internal void _tr_align()
{
this.send_bits(2, 3);
short[] static_ltree = StaticTree.static_ltree;
int length = static_ltree.Length;
short num = static_ltree[128];
short num2 = static_ltree[128];
this.send_bits((int)num2, (int)num);
this.bi_flush();
int num3 = this.last_eob_len;
num3 += 11;
if (num3 < 9)
{
this.send_bits(2, 3);
short[] static_ltree2 = StaticTree.static_ltree;
int length2 = static_ltree2.Length;
short num4 = static_ltree2[128];
short num5 = static_ltree2[128];
this.send_bits((int)num5, (int)num4);
this.bi_flush();
}
this.last_eob_len = (int)((ulong)7L);
}
// Token: 0x06009C5A RID: 40026 RVA: 0x00200258 File Offset: 0x001FE458
[Token(Token = "0x6009C5A")]
[Address(RVA = "0x4E2680", Offset = "0x4E1680", VA = "0x1804E2680")]
internal bool _tr_tally(int dist, int lc)
{
byte[] array = this.pending_buf;
int num = this.last_lit;
int num2 = this.d_buf;
byte[] array2 = this.pending_buf;
int num3 = this.d_buf;
num3++;
byte[] array3 = this.pending_buf;
num3 = this.l_buf;
short[] array4 = this.dyn_ltree;
if (dist != 0)
{
byte[] length_code = ZTree._length_code;
short[] array5 = this.dyn_dtree;
int num4 = ZTree.d_code(dist - 1);
num4 += num4;
}
if (this.last_lit == 8191 && this.level > 2)
{
int num5 = 0;
short[] array6 = this.dyn_dtree;
int[] extra_dbits = ZTree.extra_dbits;
num5 += 2;
num5++;
int num6 = extra_dbits[num5];
num6 += 5;
int num7 = num6 * num5;
int num8 = this.last_lit;
num8 -= array6;
if (this.matches < num8)
{
num8 -= array6;
}
}
int num9 = this.lit_bufsize;
throw new NullReferenceException();
}
// Token: 0x06009C5B RID: 40027 RVA: 0x0020034C File Offset: 0x001FE54C
[Token(Token = "0x6009C5B")]
[Address(RVA = "0x4E2CF0", Offset = "0x4E1CF0", VA = "0x1804E2CF0")]
internal void compress_block(short[] ltree, short[] dtree)
{
int num = 0;
if (this.last_lit != num)
{
byte[] array = this.pending_buf;
int num2 = this.d_buf;
int length = array.Length;
num2 += num;
int num3 = num2 + 1;
int num4 = this.l_buf;
num4 += num;
num += 2;
num++;
byte[] length_code = ZTree._length_code;
int length2 = ltree.Length;
short num5 = ltree[length_code];
short num6 = ltree[length_code];
this.send_bits((int)num6, (int)num5);
int[] extra_lbits = ZTree.extra_lbits;
int num7;
if (num7 != 0)
{
int[] base_length = ZTree.base_length;
byte b;
this.send_bits((int)b, num7);
}
byte b2;
int num8 = ZTree.d_code((int)b2);
this.send_bits(1, (int)num5);
if (ZTree.extra_dbits[num8] != 0)
{
int[] base_dist = ZTree.base_dist;
int length3 = ltree.Length;
num4++;
short num9 = ltree[num4];
short num10 = ltree[num4];
this.send_bits((int)num10, (int)num9);
}
if (num < this.last_lit)
{
}
}
int length4 = ltree.Length;
short num11 = ltree[128];
short num12 = ltree[128];
this.send_bits((int)num12, (int)num11);
this.last_eob_len = length4;
}
// Token: 0x06009C5C RID: 40028 RVA: 0x00200480 File Offset: 0x001FE680
[Token(Token = "0x6009C5C")]
[Address(RVA = "0x4E6550", Offset = "0x4E5550", VA = "0x1804E6550")]
internal void set_data_type()
{
short[] array = this.dyn_ltree;
int num = 0;
int length = array.Length;
num++;
num += 2;
num += this;
if (num < 128)
{
num++;
num += this;
}
if (num < 256)
{
num += this;
}
bool flag = num <= num;
this.data_type = (flag ? 1 : 0);
}
// Token: 0x06009C5D RID: 40029 RVA: 0x002004DC File Offset: 0x001FE6DC
[Token(Token = "0x6009C5D")]
[Address(RVA = "0x4E29C0", Offset = "0x4E19C0", VA = "0x1804E29C0")]
internal void bi_flush()
{
if (this.bi_valid != 16)
{
int num = this.pending;
byte[] array = this.pending_buf;
uint num2 = this.bi_buf;
int num3 = num + 1;
this.pending = num3;
this.bi_buf = (uint)num3;
return;
}
int num4 = this.pending;
byte[] array2 = this.pending_buf;
uint num5 = this.bi_buf;
int num6 = num4 + 1;
this.pending = num6;
int num7 = this.pending;
byte[] array3 = this.pending_buf;
uint num8 = this.bi_buf;
int num9 = num7 + 1;
this.pending = num9;
int num10 = 0;
this.bi_buf = (uint)num10;
}
// Token: 0x06009C5E RID: 40030 RVA: 0x00200578 File Offset: 0x001FE778
[Token(Token = "0x6009C5E")]
[Address(RVA = "0x4E2AB0", Offset = "0x4E1AB0", VA = "0x1804E2AB0")]
internal void bi_windup()
{
if (this.bi_valid > 0)
{
int num = this.pending;
byte[] array = this.pending_buf;
uint num2 = this.bi_buf;
int num3 = num + 1;
this.pending = num3;
int num4 = 0;
this.bi_buf = (uint)num4;
return;
}
int num5 = 0;
this.bi_buf = (uint)num5;
}
// Token: 0x06009C5F RID: 40031 RVA: 0x00200618 File Offset: 0x001FE818
[Token(Token = "0x6009C5F")]
[Address(RVA = "0x4E31A0", Offset = "0x4E21A0", VA = "0x1804E31A0")]
internal void copy_block(int buf, int len, bool header)
{
int num = 0;
this.bi_windup();
this.last_eob_len = (int)((ulong)8L);
if (header)
{
this.put_short(num);
this.put_short(num);
}
int num2 = this.pending;
byte[] array = this.pending_buf;
Array.Copy(this.window, buf, array, num2, len);
}
// Token: 0x06009C60 RID: 40032 RVA: 0x00200668 File Offset: 0x001FE868
[Token(Token = "0x6009C60")]
[Address(RVA = "0x4E5040", Offset = "0x4E4040", VA = "0x1804E5040")]
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);
ZStream zstream = this.strm;
int num3 = this.strstart;
this.block_start = num3;
zstream.flush_pending();
}
// Token: 0x06009C61 RID: 40033 RVA: 0x002006B4 File Offset: 0x001FE8B4
[Token(Token = "0x6009C61")]
[Address(RVA = "0x4E4C30", Offset = "0x4E3C30", VA = "0x1804E4C30")]
internal int deflate_stored(int flush)
{
int num2;
do
{
int num = this.pending_buf_size;
num += -5;
num2 = 0;
int num3 = this.lookahead;
this.fill_window();
int num4 = this.lookahead;
if (num4 == 0)
{
if (flush == 0)
{
break;
}
if (num4 == 0)
{
goto IL_107;
}
}
int num5 = this.block_start;
int num6 = this.strstart;
this.lookahead = num2;
if (num4 != 0)
{
}
num6 -= this;
this.strstart = this;
this.lookahead = num6;
int num7 = 0;
num5 = num;
this._tr_flush_block(num5, num5, num7 != 0);
ZStream zstream = this.strm;
int num8 = this.strstart;
this.block_start = num8;
zstream.flush_pending();
if (this.strm.avail_out == num2)
{
break;
}
int num9 = this.strstart;
int num10 = this.w_size;
int num11 = this.block_start;
num9 -= num11;
int num12 = 0;
this._tr_flush_block(num11, num9, num12 != 0);
ZStream zstream2 = this.strm;
int num13 = this.strstart;
this.block_start = num13;
zstream2.flush_pending();
}
while (this.strm.avail_out != num2);
return 0;
IL_107:
bool flag = flush == 4;
this.flush_block_only(flag);
if (this.strm.avail_out != num2)
{
}
while (flush != 4)
{
}
throw new NullReferenceException();
}
// Token: 0x06009C62 RID: 40034 RVA: 0x002007F0 File Offset: 0x001FE9F0
[Token(Token = "0x6009C62")]
[Address(RVA = "0x4E25E0", Offset = "0x4E15E0", VA = "0x1804E25E0")]
internal void _tr_stored_block(int buf, int stored_len, bool eof)
{
this.send_bits(eof ? 1 : 0, 3);
int num = 0;
this.bi_windup();
this.last_eob_len = (int)((ulong)8L);
this.put_short(num);
this.put_short(num);
int num2 = this.pending;
byte[] array = this.pending_buf;
Array.Copy(this.window, buf, array, num2, stored_len);
}
// Token: 0x06009C63 RID: 40035 RVA: 0x00200848 File Offset: 0x001FEA48
[Token(Token = "0x6009C63")]
[Address(RVA = "0x4E20C0", Offset = "0x4E10C0", VA = "0x1804E20C0")]
internal void _tr_flush_block(int buf, int stored_len, bool eof)
{
int num = 0;
int length = this.dyn_ltree.Length;
num++;
num += 2;
if (num < 128)
{
num++;
}
if (num < 256)
{
}
bool flag = num <= num;
this.data_type = (flag ? 1 : 0);
this.l_desc.build_tree(this);
this.d_desc.build_tree(this);
int max_code = this.l_desc.max_code;
short[] array = this.dyn_ltree;
this.scan_tree(array, max_code);
int max_code2 = this.d_desc.max_code;
short[] array2 = this.dyn_dtree;
this.scan_tree(array2, max_code2);
this.bl_desc.build_tree(this);
short[] array3 = this.bl_tree;
byte[] bl_order = ZTree.bl_order;
uint num2;
if ("{il2cpp array field local23->}" == num)
{
while (num2 >= (uint)3)
{
}
}
int num3 = this.static_len;
num2 += num2;
num3 += 10;
int num4 = this.opt_len;
num4 += 10;
if (num3 <= num4)
{
num4 = num3;
}
if (buf != -1)
{
num4 = buf;
this._tr_stored_block(num4, stored_len, eof);
}
if (this != num4)
{
this.send_bits(num4, 3);
ZTree ztree = this.l_desc;
ZTree ztree2 = this.d_desc;
uint num5 = num2 + 1U;
int max_code3 = ztree.max_code;
this.send_bits(num4, 5);
this.send_bits(num4, 5);
this.send_bits(num4, 4);
if (num5 > (uint)0)
{
short[] array4 = this.bl_tree;
byte[] bl_order2 = ZTree.bl_order;
this.send_bits(num4, 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[] static_dtree = StaticTree.static_dtree;
short[] static_ltree = StaticTree.static_ltree;
this.compress_block(static_ltree, static_dtree);
this.init_block();
if (eof)
{
this.bi_windup();
}
}
// Token: 0x06009C64 RID: 40036 RVA: 0x00200A0C File Offset: 0x001FEC0C
[Token(Token = "0x6009C64")]
[Address(RVA = "0x4E4DE0", Offset = "0x4E3DE0", VA = "0x1804E4DE0")]
internal void fill_window()
{
int num2;
int num18;
do
{
int num = this.lookahead;
num2 = 0;
int num3 = this.window_size;
int num4 = this.strstart;
num3 -= num4;
num3 -= num;
int num13;
if (num4 != 0 || num != 0 || this.w_size != -1)
{
int num5 = this.w_size;
byte[] array = this.window;
int num6 = 0;
Array.Copy(array, num5, array, num6, num5);
int num7 = this.hash_size;
num5 = num7;
short[] array2 = this.head;
short num8 = array2[num5];
int num9 = this.w_size;
num8 = (short)((int)num8 - num9);
array2[0] = (short)num2;
int num10 = num7 - 1;
while (num10 != 0)
{
}
int num11 = this.w_size;
num5 = num11;
short[] array3 = this.prev;
short num12 = array3[num5];
num13 = this.w_size;
num12 = (short)((int)num12 - num13);
array3[0] = (short)num2;
int num14 = num11 - 1;
while (num14 != 0)
{
}
}
ZStream zstream = this.strm;
if (zstream.avail_in == num2)
{
break;
}
int num15 = this.lookahead;
byte[] array4 = this.window;
uint num17;
int num16 = zstream.read_buf(array4, num15, (int)num17);
num18 = this.lookahead;
byte[] array5 = this.window;
num13 = this.strstart;
byte b;
this.ins_h = (int)b;
num13++;
this.ins_h = (int)b;
}
while (num18 < 262 && this.strm.avail_in != num2);
}
// Token: 0x06009C65 RID: 40037 RVA: 0x00200B7C File Offset: 0x001FED7C
[Token(Token = "0x6009C65")]
[Address(RVA = "0x4E3CC0", Offset = "0x4E2CC0", VA = "0x1804E3CC0")]
internal int deflate_fast(int flush)
{
int num;
do
{
num = 0;
if (this.lookahead < 262)
{
this.fill_window();
int num2 = this.lookahead;
if (num2 < 262 && flush == 0)
{
break;
}
if (num2 == 0)
{
goto IL_27F;
}
}
byte[] array = this.window;
int num3 = this.strstart;
int num4 = this.ins_h;
short[] array2 = this.head;
this.ins_h = num4;
short num5 = array2[num4];
short[] array3 = this.prev;
int num6 = this.w_mask;
array3[0] = num5;
short[] array4 = this.head;
int num7 = this.ins_h;
int num8 = this.strstart;
array4[0] = (short)num8;
int num9 = this.strstart;
num9 -= (int)num5;
int num10 = this.w_size;
if (this.strategy != 2)
{
int num11 = this.longest_match((int)num5);
this.match_length = num11;
}
bool flag;
int num14;
if (this.match_length < 3)
{
byte[] array5 = this.window;
int num12 = this.strstart;
int num13 = 0;
byte b;
flag = this._tr_tally(num13, (int)b);
num14 = this.strstart;
}
int num15 = this.strstart;
num14 += -3;
bool flag2 = this._tr_tally(num15, num14);
int num16 = this.match_length;
flag = flag2;
int num17 = this.lookahead;
num17 -= num16;
this.lookahead = num17;
int num18 = num16 - 1;
this.match_length = num18;
int num19 = this.strstart;
byte[] array6 = this.window;
int num20 = num19 + 1;
this.strstart = num20;
int num21 = this.ins_h;
short[] array7 = this.head;
this.ins_h = num21;
short num22 = array7[num21];
short[] array8 = this.prev;
int num23 = this.w_mask;
array8[0] = num22;
short[] array9 = this.head;
int num24 = this.ins_h;
num23 = num24;
int num25 = this.strstart;
array9[0] = (short)num25;
while (num24 != array9.Length)
{
}
int num26 = this.strstart;
byte[] array10 = this.window;
num26 += num23;
this.strstart = num26;
this.match_length = num;
num3 = num26;
byte b2 = array10[num3];
this.ins_h = (int)b2;
num3++;
this.ins_h = (int)b2;
while (!flag)
{
}
int num27 = this.block_start;
num26 -= num27;
int num28 = 0;
this._tr_flush_block(num27, num26, num28 != 0);
ZStream zstream = this.strm;
int num29 = this.strstart;
this.block_start = num29;
zstream.flush_pending();
}
while (this.strm.avail_out != num);
return 0;
IL_27F:
int num30 = this.block_start;
int num31 = this.strstart;
bool flag3 = flush == 4;
num31 -= num30;
this._tr_flush_block(num30, num31, flag3);
ZStream zstream2 = this.strm;
int num32 = this.strstart;
this.block_start = num32;
zstream2.flush_pending();
if (this.strm.avail_out != num)
{
}
throw new NullReferenceException();
}
// Token: 0x06009C66 RID: 40038 RVA: 0x00200E64 File Offset: 0x001FF064
[Token(Token = "0x6009C66")]
[Address(RVA = "0x4E46B0", Offset = "0x4E36B0", VA = "0x1804E46B0")]
internal int deflate_slow(int flush)
{
int num;
do
{
num = 0;
if (this.lookahead < 262)
{
this.fill_window();
int num2 = this.lookahead;
if (num2 < 262 && flush == 0)
{
break;
}
if (num2 == 0)
{
goto IL_277;
}
}
byte[] array = this.window;
int num3 = this.strstart;
int num4 = this.ins_h;
short[] array2 = this.head;
this.ins_h = num4;
short num5 = array2[num4];
short[] array3 = this.prev;
int num6 = this.w_mask;
array3[0] = num5;
short[] array4 = this.head;
int num7 = this.ins_h;
int num8 = this.strstart;
array4[0] = (short)num8;
int num9 = this.match_length;
int num10 = this.match_start;
this.prev_length = num9;
this.prev_match = num10;
this.match_length = 2;
if (num9 < this.max_lazy_match)
{
int num11 = this.strstart;
num11 -= (int)num5;
int num12 = this.w_size;
if (this.strategy != 2)
{
int num13 = this.longest_match((int)num5);
this.match_length = num13;
}
if (this.strategy == 1 || (2 == 3 && this.strstart > 4096))
{
this.match_length = 2;
}
}
int num14 = this.strstart;
num9 += -3;
int num15 = this.lookahead;
num15 += -3;
num15 += num14;
bool flag = this._tr_tally(num14, num9);
int num16 = this.prev_length;
this.prev_length = 1;
int num17 = this.strstart;
int num18 = num17 + 1;
this.strstart = num18;
byte[] array5 = this.window;
int num19 = this.ins_h;
short[] array6 = this.head;
this.ins_h = num19;
short num20 = array6[num19];
short[] array7 = this.prev;
int num21 = this.w_mask;
array7[0] = num20;
short[] array8 = this.head;
int num22 = this.ins_h;
int num23 = this.strstart;
array8[0] = (short)num23;
while (num22 != array8.Length)
{
}
int num24 = this.strstart;
num24++;
this.match_available = num;
this.match_length = 2;
this.strstart = num24;
while (!flag)
{
}
int num25 = this.block_start;
num24 -= num25;
int num26 = 0;
this._tr_flush_block(num25, num24, num26 != 0);
ZStream zstream = this.strm;
int num27 = this.strstart;
this.block_start = num27;
zstream.flush_pending();
}
while (this.strm.avail_out != num);
return 0;
IL_277:
if (this.match_available != num)
{
byte[] array9 = this.window;
int num28 = this.strstart;
int num29 = 0;
byte b;
bool flag2 = this._tr_tally(num29, (int)b);
this.match_available = num;
}
bool flag3 = flush == 4;
this.flush_block_only(flag3);
if (this.strm.avail_out != num)
{
}
throw new NullReferenceException();
}
// Token: 0x06009C67 RID: 40039 RVA: 0x00201138 File Offset: 0x001FF338
[Token(Token = "0x6009C67")]
[Address(RVA = "0x4E5400", Offset = "0x4E4400", VA = "0x1804E5400")]
internal int longest_match(int cur_match)
{
int num = this.w_size;
int num2 = this.strstart;
int num3 = this.max_chain_length;
int num4 = this.prev_length;
num2 -= num;
num2 += 262;
int num5 = 0;
byte[] array = this.window;
int num6 = this.nice_match;
int length = array.Length;
int num7 = cur_match - 1;
int num8 = this.lookahead;
if (num6 <= num8)
{
}
int length2 = array.Length;
num8 = cur_match + 1;
int num9 = num2 + 1;
int length3 = array.Length;
num6 = num3;
int num10 = num6 + 1;
int num11 = cur_match + 1;
int num12 = cur_match + 1;
num12 = num3;
num12 += 3;
int num13 = cur_match + 1;
int num14 = cur_match + 1;
num14 = num3;
num14 += 5;
int num15 = cur_match + 1;
int num16 = cur_match + 1;
num16 = num3;
num16 += 7;
int num17 = cur_match + 1;
num3 += 8;
if (cur_match > num4)
{
this.match_start = cur_match;
int length4 = array.Length;
byte b2;
byte b = b2 - 1;
}
short[] array2 = this.prev;
int num18 = this.w_mask;
if ((int)array2[num18] > num5)
{
int num19 = num3 - 1;
if (num19 != 0)
{
}
}
return cur_match;
}
// Token: 0x06009C68 RID: 40040 RVA: 0x00201264 File Offset: 0x001FF464
[Token(Token = "0x6009C68")]
[Address(RVA = "0x4E35F0", Offset = "0x4E25F0", VA = "0x1804E35F0")]
internal int deflateInit(ZStream strm, int level, int bits)
{
int num = 0;
ulong num2;
return this.deflateInit2(strm, level, 8, bits, (int)num2, num);
}
// Token: 0x06009C69 RID: 40041 RVA: 0x00201280 File Offset: 0x001FF480
[Token(Token = "0x6009C69")]
[Address(RVA = "0x4E35C0", Offset = "0x4E25C0", VA = "0x1804E35C0")]
internal int deflateInit(ZStream strm, int level)
{
int num = 0;
ulong num2;
ulong num3;
return this.deflateInit2(strm, level, 8, (int)num2, (int)num3, num);
}
// Token: 0x06009C6A RID: 40042 RVA: 0x0020129C File Offset: 0x001FF49C
[Token(Token = "0x6009C6A")]
[Address(RVA = "0x4E3270", Offset = "0x4E2270", VA = "0x1804E3270")]
internal int deflateInit2(ZStream strm, int level, int method, int windowBits, int memLevel, int strategy)
{
int num = 0;
strm.msg = num;
if (method == 8 && level <= 9)
{
strm.dstate = this;
this.w_bits = 0;
this.noheader = 0;
uint num2;
this.w_size = (int)num2;
this.hash_bits = 0;
uint num3 = num2 - 1U;
this.w_mask = (int)num3;
uint num4;
this.hash_size = (int)num4;
uint num5 = num4 - 1U;
this.hash_mask = (int)num5;
byte[] array = new byte[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;
uint num8;
this.lit_bufsize = (int)num8;
byte[] array4 = new byte[1];
int num9 = this.lit_bufsize;
this.pending_buf = array4;
this.level = level;
this.strategy = 0;
this.method = (byte)method;
this.pending_buf_size = array4;
num9 -= (int)num8;
this.d_buf = num9;
this.l_buf = num9;
strm.total_out = (long)num;
strm.total_in = (long)num;
strm.msg = num;
strm.data_type = (int)((ulong)2L);
int num10 = this.noheader;
this.pending_out = num;
this.noheader = num;
uint num11;
this.status = (int)num11;
strm.adler = (long)((ulong)1L);
this.last_flush = num;
ZTree ztree = this.l_desc;
short[] array5 = this.dyn_ltree;
ztree.dyn_tree = array5;
ZTree ztree2 = this.l_desc;
StaticTree static_l_desc = StaticTree.static_l_desc;
ztree2.stat_desc = static_l_desc;
ZTree ztree3 = this.d_desc;
short[] array6 = this.dyn_dtree;
ztree3.dyn_tree = array6;
ZTree ztree4 = this.d_desc;
StaticTree static_d_desc = StaticTree.static_d_desc;
ztree4.stat_desc = static_d_desc;
ZTree ztree5 = this.bl_desc;
short[] array7 = this.bl_tree;
ztree5.dyn_tree = array7;
ZTree ztree6 = this.bl_desc;
StaticTree static_bl_desc = StaticTree.static_bl_desc;
ztree6.stat_desc = static_bl_desc;
this.bi_buf = (uint)num;
this.last_eob_len = (int)((ulong)8L);
this.init_block();
this.lm_init();
return 0;
}
throw new NullReferenceException();
}
// Token: 0x06009C6B RID: 40043 RVA: 0x0020149C File Offset: 0x001FF69C
[Token(Token = "0x6009C6B")]
[Address(RVA = "0x4E38E0", Offset = "0x4E28E0", VA = "0x1804E38E0")]
internal int deflateReset(ZStream strm)
{
int num = 0;
strm.data_type = (int)((ulong)2L);
strm.total_out = (long)num;
strm.total_in = (long)num;
strm.msg = num;
this.pending_out = num;
int num2 = this.noheader;
this.noheader = num;
this.status = (int)((uint)42);
strm.adler = (long)((ulong)1L);
this.last_flush = num;
ZTree ztree = this.l_desc;
short[] array = this.dyn_ltree;
ztree.dyn_tree = array;
ZTree ztree2 = this.l_desc;
StaticTree static_l_desc = StaticTree.static_l_desc;
ztree2.stat_desc = static_l_desc;
ZTree ztree3 = this.d_desc;
short[] array2 = this.dyn_dtree;
ztree3.dyn_tree = array2;
ZTree ztree4 = this.d_desc;
StaticTree static_d_desc = StaticTree.static_d_desc;
ztree4.stat_desc = static_d_desc;
ZTree ztree5 = this.bl_desc;
short[] array3 = this.bl_tree;
ztree5.dyn_tree = array3;
ZTree ztree6 = this.bl_desc;
StaticTree static_bl_desc = StaticTree.static_bl_desc;
ztree6.stat_desc = static_bl_desc;
this.bi_buf = (uint)num;
this.last_eob_len = (int)((ulong)8L);
this.init_block();
this.lm_init();
return 0;
}
// Token: 0x06009C6C RID: 40044 RVA: 0x002015AC File Offset: 0x001FF7AC
[Token(Token = "0x6009C6C")]
[Address(RVA = "0x4E3230", Offset = "0x4E2230", VA = "0x1804E3230")]
internal int deflateEnd()
{
int num = this.status;
if (num != 42 && num != 113 && num != 666)
{
return -2;
}
int num2 = 0;
this.pending_buf = num2;
this.head = num2;
this.prev = num2;
this.window = num2;
return -3;
}
// Token: 0x06009C6D RID: 40045 RVA: 0x002015F8 File Offset: 0x001FF7F8
[Token(Token = "0x6009C6D")]
[Address(RVA = "0x4E3620", Offset = "0x4E2620", VA = "0x1804E3620")]
internal int deflateParams(ZStream strm, int _level, int _strategy)
{
int num = 0;
if (_level <= 9 && _strategy <= 2)
{
Deflate.Config[] array = Deflate.config_table;
int num2 = this.level;
int length = array.Length;
int func = array[num2].func;
Deflate.Config config = array[_level];
if (func != config.func && strm.total_in != (long)num)
{
int num3 = strm.deflate(1);
}
if (num2 != _level)
{
this.level = _level;
Deflate.Config[] array2 = Deflate.config_table;
int num4 = this.level;
int max_lazy = array2[num4].max_lazy;
this.max_lazy_match = max_lazy;
int good_length = Deflate.config_table[num4].good_length;
this.good_match = good_length;
int nice_length = Deflate.config_table[num4].nice_length;
this.nice_match = nice_length;
int max_chain = Deflate.config_table[num4].max_chain;
this.max_chain_length = max_chain;
}
this.strategy = _strategy;
}
return -2;
}
// Token: 0x06009C6E RID: 40046 RVA: 0x002016F0 File Offset: 0x001FF8F0
[Token(Token = "0x6009C6E")]
[Address(RVA = "0x4E3A80", Offset = "0x4E2A80", VA = "0x1804E3A80")]
internal int deflateSetDictionary(ZStream strm, byte[] dictionary, int dictLength)
{
int i = 0;
if (dictionary != 0 && this.status == 42)
{
Adler32 adler = strm._adler;
long adler2 = strm.adler;
int num = 0;
long num2 = adler.adler32(adler2, dictionary, num, dictLength);
strm.adler = num2;
int num3 = this.w_size;
num3 += -262;
if (dictLength > num3)
{
}
byte[] array = this.window;
int num4 = 0;
Array.Copy(dictionary, i, array, num4, dictLength);
byte[] array2 = this.window;
this.strstart = dictLength;
this.block_start = dictLength;
byte b = array2[0];
this.ins_h = (int)b;
this.ins_h = (int)b;
byte[] array3 = this.window;
int num5 = this.ins_h;
short[] array4 = this.head;
this.ins_h = num5;
short[] array5 = this.prev;
int num6 = this.w_mask;
short num7 = array4[num5];
array5[0] = num7;
short[] array6 = this.head;
int num8 = this.ins_h;
array6[0] = (short)i;
i++;
while (i <= dictLength)
{
}
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009C6F RID: 40047 RVA: 0x00201800 File Offset: 0x001FFA00
[Token(Token = "0x6009C6F")]
[Address(RVA = "0x4E41C0", Offset = "0x4E31C0", VA = "0x1804E41C0")]
internal int deflate(ZStream strm, int flush)
{
if (flush <= 4)
{
if (strm.next_out != (ulong)0L && (strm.next_in != (ulong)0L || strm.avail_in == 0))
{
int num = this.status;
if (num != 666 || flush == 4)
{
if (strm.avail_out != 0)
{
int num2 = this.last_flush;
this.last_flush = flush;
this.strm = strm;
if (num == 42)
{
int num3 = this.level;
this.status = (int)((ulong)113L);
ulong num4;
num4 += (ulong)1L;
num4 += num4;
long num5 = (long)(num4 * (ulong)((uint)31));
this.putShortMSB((int)num5);
if (this.strstart != 0)
{
long adler = strm.adler;
this.putShortMSB((int)adler);
long adler2 = strm.adler;
this.putShortMSB((int)adler2);
}
strm.adler = (long)((ulong)1L);
}
if (this.pending == 0)
{
if (strm.avail_in != 0 || flush == 4)
{
goto IL_F9;
}
string[] array = Deflate.z_errmsg;
}
strm.flush_pending();
if (strm.avail_out == 0)
{
goto IL_259;
}
IL_F9:
string[] array2;
if (this.status == 666)
{
if (strm.avail_in == 0)
{
goto IL_11F;
}
array2 = Deflate.z_errmsg;
}
if (strm.avail_in != 0)
{
goto IL_13D;
}
IL_11F:
if (this.lookahead == 0 && (flush == 0 || array2 == (ulong)666L))
{
goto IL_204;
}
IL_13D:
Deflate.Config[] array3 = Deflate.config_table;
int num6 = this.level;
int func = array3[num6].func;
if (func != 0)
{
if (func != 0)
{
if (func != 1)
{
goto IL_19D;
}
int num7 = this.deflate_slow(flush);
}
int num8 = this.deflate_fast(flush);
}
int num9 = this.deflate_stored(flush);
if (num9 == 2 || num9 == 3)
{
this.status = (int)((ulong)666L);
}
IL_19D:
if (num9 == 0 || num9 == 2)
{
goto IL_250;
}
if (num9 == 1)
{
if (flush != num9)
{
int num10 = 0;
int num11 = 0;
int num12 = 0;
int num13 = 0;
this._tr_stored_block(num13, num12, num11 != 0);
if (flush == 3 && this.hash_size > num10)
{
short[] array4 = this.head;
num10++;
array4[0] = (short)num10;
}
}
strm.flush_pending();
if (strm.avail_out == 0)
{
goto IL_259;
}
}
IL_204:
if (flush != 4)
{
goto IL_259;
}
if (this.noheader == 0)
{
long adler3 = strm.adler;
this.putShortMSB((int)adler3);
long adler4 = strm.adler;
this.putShortMSB((int)adler4);
strm.flush_pending();
this.noheader = (int)((ulong)4294967295L);
if (this.pending != 0)
{
goto IL_259;
}
}
IL_250:
if (strm.avail_out == 0)
{
}
}
IL_259:
string text = Deflate.z_errmsg[7];
strm.msg = text;
}
}
string text2 = Deflate.z_errmsg[4];
strm.msg = text2;
}
throw new IndexOutOfRangeException();
}
// Token: 0x040068A5 RID: 26789
[Token(Token = "0x40068A5")]
private const int MAX_MEM_LEVEL = 9;
// Token: 0x040068A6 RID: 26790
[Token(Token = "0x40068A6")]
private const int Z_DEFAULT_COMPRESSION = -1;
// Token: 0x040068A7 RID: 26791
[Token(Token = "0x40068A7")]
private const int MAX_WBITS = 15;
// Token: 0x040068A8 RID: 26792
[Token(Token = "0x40068A8")]
private const int DEF_MEM_LEVEL = 8;
// Token: 0x040068A9 RID: 26793
[Token(Token = "0x40068A9")]
private const int STORED = 0;
// Token: 0x040068AA RID: 26794
[Token(Token = "0x40068AA")]
private const int FAST = 1;
// Token: 0x040068AB RID: 26795
[Token(Token = "0x40068AB")]
private const int SLOW = 2;
// Token: 0x040068AC RID: 26796
[Token(Token = "0x40068AC")]
private static readonly Deflate.Config[] config_table;
// Token: 0x040068AD RID: 26797
[Token(Token = "0x40068AD")]
private static readonly string[] z_errmsg;
// Token: 0x040068AE RID: 26798
[Token(Token = "0x40068AE")]
private const int NeedMore = 0;
// Token: 0x040068AF RID: 26799
[Token(Token = "0x40068AF")]
private const int BlockDone = 1;
// Token: 0x040068B0 RID: 26800
[Token(Token = "0x40068B0")]
private const int FinishStarted = 2;
// Token: 0x040068B1 RID: 26801
[Token(Token = "0x40068B1")]
private const int FinishDone = 3;
// Token: 0x040068B2 RID: 26802
[Token(Token = "0x40068B2")]
private const int PRESET_DICT = 32;
// Token: 0x040068B3 RID: 26803
[Token(Token = "0x40068B3")]
private const int Z_FILTERED = 1;
// Token: 0x040068B4 RID: 26804
[Token(Token = "0x40068B4")]
private const int Z_HUFFMAN_ONLY = 2;
// Token: 0x040068B5 RID: 26805
[Token(Token = "0x40068B5")]
private const int Z_DEFAULT_STRATEGY = 0;
// Token: 0x040068B6 RID: 26806
[Token(Token = "0x40068B6")]
private const int Z_NO_FLUSH = 0;
// Token: 0x040068B7 RID: 26807
[Token(Token = "0x40068B7")]
private const int Z_PARTIAL_FLUSH = 1;
// Token: 0x040068B8 RID: 26808
[Token(Token = "0x40068B8")]
private const int Z_SYNC_FLUSH = 2;
// Token: 0x040068B9 RID: 26809
[Token(Token = "0x40068B9")]
private const int Z_FULL_FLUSH = 3;
// Token: 0x040068BA RID: 26810
[Token(Token = "0x40068BA")]
private const int Z_FINISH = 4;
// Token: 0x040068BB RID: 26811
[Token(Token = "0x40068BB")]
private const int Z_OK = 0;
// Token: 0x040068BC RID: 26812
[Token(Token = "0x40068BC")]
private const int Z_STREAM_END = 1;
// Token: 0x040068BD RID: 26813
[Token(Token = "0x40068BD")]
private const int Z_NEED_DICT = 2;
// Token: 0x040068BE RID: 26814
[Token(Token = "0x40068BE")]
private const int Z_ERRNO = -1;
// Token: 0x040068BF RID: 26815
[Token(Token = "0x40068BF")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x040068C0 RID: 26816
[Token(Token = "0x40068C0")]
private const int Z_DATA_ERROR = -3;
// Token: 0x040068C1 RID: 26817
[Token(Token = "0x40068C1")]
private const int Z_MEM_ERROR = -4;
// Token: 0x040068C2 RID: 26818
[Token(Token = "0x40068C2")]
private const int Z_BUF_ERROR = -5;
// Token: 0x040068C3 RID: 26819
[Token(Token = "0x40068C3")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x040068C4 RID: 26820
[Token(Token = "0x40068C4")]
private const int INIT_STATE = 42;
// Token: 0x040068C5 RID: 26821
[Token(Token = "0x40068C5")]
private const int BUSY_STATE = 113;
// Token: 0x040068C6 RID: 26822
[Token(Token = "0x40068C6")]
private const int FINISH_STATE = 666;
// Token: 0x040068C7 RID: 26823
[Token(Token = "0x40068C7")]
private const int Z_DEFLATED = 8;
// Token: 0x040068C8 RID: 26824
[Token(Token = "0x40068C8")]
private const int STORED_BLOCK = 0;
// Token: 0x040068C9 RID: 26825
[Token(Token = "0x40068C9")]
private const int STATIC_TREES = 1;
// Token: 0x040068CA RID: 26826
[Token(Token = "0x40068CA")]
private const int DYN_TREES = 2;
// Token: 0x040068CB RID: 26827
[Token(Token = "0x40068CB")]
private const int Z_BINARY = 0;
// Token: 0x040068CC RID: 26828
[Token(Token = "0x40068CC")]
private const int Z_ASCII = 1;
// Token: 0x040068CD RID: 26829
[Token(Token = "0x40068CD")]
private const int Z_UNKNOWN = 2;
// Token: 0x040068CE RID: 26830
[Token(Token = "0x40068CE")]
private const int Buf_size = 16;
// Token: 0x040068CF RID: 26831
[Token(Token = "0x40068CF")]
private const int REP_3_6 = 16;
// Token: 0x040068D0 RID: 26832
[Token(Token = "0x40068D0")]
private const int REPZ_3_10 = 17;
// Token: 0x040068D1 RID: 26833
[Token(Token = "0x40068D1")]
private const int REPZ_11_138 = 18;
// Token: 0x040068D2 RID: 26834
[Token(Token = "0x40068D2")]
private const int MIN_MATCH = 3;
// Token: 0x040068D3 RID: 26835
[Token(Token = "0x40068D3")]
private const int MAX_MATCH = 258;
// Token: 0x040068D4 RID: 26836
[Token(Token = "0x40068D4")]
private const int MIN_LOOKAHEAD = 262;
// Token: 0x040068D5 RID: 26837
[Token(Token = "0x40068D5")]
private const int MAX_BITS = 15;
// Token: 0x040068D6 RID: 26838
[Token(Token = "0x40068D6")]
private const int D_CODES = 30;
// Token: 0x040068D7 RID: 26839
[Token(Token = "0x40068D7")]
private const int BL_CODES = 19;
// Token: 0x040068D8 RID: 26840
[Token(Token = "0x40068D8")]
private const int LENGTH_CODES = 29;
// Token: 0x040068D9 RID: 26841
[Token(Token = "0x40068D9")]
private const int LITERALS = 256;
// Token: 0x040068DA RID: 26842
[Token(Token = "0x40068DA")]
private const int L_CODES = 286;
// Token: 0x040068DB RID: 26843
[Token(Token = "0x40068DB")]
private const int HEAP_SIZE = 573;
// Token: 0x040068DC RID: 26844
[Token(Token = "0x40068DC")]
private const int END_BLOCK = 256;
// Token: 0x040068DD RID: 26845
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068DD")]
internal ZStream strm;
// Token: 0x040068DE RID: 26846
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40068DE")]
internal int status;
// Token: 0x040068DF RID: 26847
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40068DF")]
internal byte[] pending_buf;
// Token: 0x040068E0 RID: 26848
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40068E0")]
internal int pending_buf_size;
// Token: 0x040068E1 RID: 26849
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40068E1")]
internal int pending_out;
// Token: 0x040068E2 RID: 26850
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40068E2")]
internal int pending;
// Token: 0x040068E3 RID: 26851
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x40068E3")]
internal int noheader;
// Token: 0x040068E4 RID: 26852
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40068E4")]
internal byte data_type;
// Token: 0x040068E5 RID: 26853
[FieldOffset(Offset = "0x39")]
[Token(Token = "0x40068E5")]
internal byte method;
// Token: 0x040068E6 RID: 26854
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40068E6")]
internal int last_flush;
// Token: 0x040068E7 RID: 26855
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40068E7")]
internal int w_size;
// Token: 0x040068E8 RID: 26856
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x40068E8")]
internal int w_bits;
// Token: 0x040068E9 RID: 26857
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40068E9")]
internal int w_mask;
// Token: 0x040068EA RID: 26858
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40068EA")]
internal byte[] window;
// Token: 0x040068EB RID: 26859
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40068EB")]
internal int window_size;
// Token: 0x040068EC RID: 26860
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40068EC")]
internal short[] prev;
// Token: 0x040068ED RID: 26861
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x40068ED")]
internal short[] head;
// Token: 0x040068EE RID: 26862
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x40068EE")]
internal int ins_h;
// Token: 0x040068EF RID: 26863
[FieldOffset(Offset = "0x74")]
[Token(Token = "0x40068EF")]
internal int hash_size;
// Token: 0x040068F0 RID: 26864
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40068F0")]
internal int hash_bits;
// Token: 0x040068F1 RID: 26865
[FieldOffset(Offset = "0x7C")]
[Token(Token = "0x40068F1")]
internal int hash_mask;
// Token: 0x040068F2 RID: 26866
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x40068F2")]
internal int hash_shift;
// Token: 0x040068F3 RID: 26867
[FieldOffset(Offset = "0x84")]
[Token(Token = "0x40068F3")]
internal int block_start;
// Token: 0x040068F4 RID: 26868
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40068F4")]
internal int match_length;
// Token: 0x040068F5 RID: 26869
[FieldOffset(Offset = "0x8C")]
[Token(Token = "0x40068F5")]
internal int prev_match;
// Token: 0x040068F6 RID: 26870
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40068F6")]
internal int match_available;
// Token: 0x040068F7 RID: 26871
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x40068F7")]
internal int strstart;
// Token: 0x040068F8 RID: 26872
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40068F8")]
internal int match_start;
// Token: 0x040068F9 RID: 26873
[FieldOffset(Offset = "0x9C")]
[Token(Token = "0x40068F9")]
internal int lookahead;
// Token: 0x040068FA RID: 26874
[FieldOffset(Offset = "0xA0")]
[Token(Token = "0x40068FA")]
internal int prev_length;
// Token: 0x040068FB RID: 26875
[FieldOffset(Offset = "0xA4")]
[Token(Token = "0x40068FB")]
internal int max_chain_length;
// Token: 0x040068FC RID: 26876
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x40068FC")]
internal int max_lazy_match;
// Token: 0x040068FD RID: 26877
[FieldOffset(Offset = "0xAC")]
[Token(Token = "0x40068FD")]
internal int level;
// Token: 0x040068FE RID: 26878
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x40068FE")]
internal int strategy;
// Token: 0x040068FF RID: 26879
[FieldOffset(Offset = "0xB4")]
[Token(Token = "0x40068FF")]
internal int good_match;
// Token: 0x04006900 RID: 26880
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x4006900")]
internal int nice_match;
// Token: 0x04006901 RID: 26881
[FieldOffset(Offset = "0xC0")]
[Token(Token = "0x4006901")]
internal short[] dyn_ltree;
// Token: 0x04006902 RID: 26882
[FieldOffset(Offset = "0xC8")]
[Token(Token = "0x4006902")]
internal short[] dyn_dtree;
// Token: 0x04006903 RID: 26883
[FieldOffset(Offset = "0xD0")]
[Token(Token = "0x4006903")]
internal short[] bl_tree;
// Token: 0x04006904 RID: 26884
[FieldOffset(Offset = "0xD8")]
[Token(Token = "0x4006904")]
internal ZTree l_desc;
// Token: 0x04006905 RID: 26885
[FieldOffset(Offset = "0xE0")]
[Token(Token = "0x4006905")]
internal ZTree d_desc;
// Token: 0x04006906 RID: 26886
[FieldOffset(Offset = "0xE8")]
[Token(Token = "0x4006906")]
internal ZTree bl_desc;
// Token: 0x04006907 RID: 26887
[FieldOffset(Offset = "0xF0")]
[Token(Token = "0x4006907")]
internal short[] bl_count;
// Token: 0x04006908 RID: 26888
[FieldOffset(Offset = "0xF8")]
[Token(Token = "0x4006908")]
internal int[] heap;
// Token: 0x04006909 RID: 26889
[FieldOffset(Offset = "0x100")]
[Token(Token = "0x4006909")]
internal int heap_len;
// Token: 0x0400690A RID: 26890
[FieldOffset(Offset = "0x104")]
[Token(Token = "0x400690A")]
internal int heap_max;
// Token: 0x0400690B RID: 26891
[FieldOffset(Offset = "0x108")]
[Token(Token = "0x400690B")]
internal byte[] depth;
// Token: 0x0400690C RID: 26892
[FieldOffset(Offset = "0x110")]
[Token(Token = "0x400690C")]
internal int l_buf;
// Token: 0x0400690D RID: 26893
[FieldOffset(Offset = "0x114")]
[Token(Token = "0x400690D")]
internal int lit_bufsize;
// Token: 0x0400690E RID: 26894
[FieldOffset(Offset = "0x118")]
[Token(Token = "0x400690E")]
internal int last_lit;
// Token: 0x0400690F RID: 26895
[FieldOffset(Offset = "0x11C")]
[Token(Token = "0x400690F")]
internal int d_buf;
// Token: 0x04006910 RID: 26896
[FieldOffset(Offset = "0x120")]
[Token(Token = "0x4006910")]
internal int opt_len;
// Token: 0x04006911 RID: 26897
[FieldOffset(Offset = "0x124")]
[Token(Token = "0x4006911")]
internal int static_len;
// Token: 0x04006912 RID: 26898
[FieldOffset(Offset = "0x128")]
[Token(Token = "0x4006912")]
internal int matches;
// Token: 0x04006913 RID: 26899
[FieldOffset(Offset = "0x12C")]
[Token(Token = "0x4006913")]
internal int last_eob_len;
// Token: 0x04006914 RID: 26900
[FieldOffset(Offset = "0x130")]
[Token(Token = "0x4006914")]
internal uint bi_buf;
// Token: 0x04006915 RID: 26901
[FieldOffset(Offset = "0x134")]
[Token(Token = "0x4006915")]
internal int bi_valid;
// Token: 0x02001A0B RID: 6667
[Token(Token = "0x2001A0B")]
internal class Config
{
// Token: 0x06009C70 RID: 40048 RVA: 0x00201A98 File Offset: 0x001FFC98
[Token(Token = "0x6009C70")]
[Address(RVA = "0x4E0F80", Offset = "0x4DFF80", VA = "0x1804E0F80")]
internal Config(int good_length, int max_lazy, int nice_length, int max_chain, int func)
{
this.max_chain = 0;
this.good_length = good_length;
this.nice_length = nice_length;
this.func = 0;
this.max_lazy = max_lazy;
}
// Token: 0x04006916 RID: 26902
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006916")]
internal int good_length;
// Token: 0x04006917 RID: 26903
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4006917")]
internal int max_lazy;
// Token: 0x04006918 RID: 26904
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006918")]
internal int nice_length;
// Token: 0x04006919 RID: 26905
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4006919")]
internal int max_chain;
// Token: 0x0400691A RID: 26906
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400691A")]
internal int func;
}
}
}
@@ -0,0 +1,825 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A0C RID: 6668
[Token(Token = "0x2001A0C")]
internal sealed class InfBlocks
{
// Token: 0x06009C71 RID: 40049 RVA: 0x00201AD0 File Offset: 0x001FFCD0
[Token(Token = "0x6009C71")]
[Address(RVA = "0x4E9670", Offset = "0x4E8670", VA = "0x1804E9670")]
internal InfBlocks(ZStream z, object checkfn, int w)
{
int[] array = new int[1];
this.bb = array;
int[] array2 = new int[1];
this.tb = array2;
int num = 0;
InfCodes infCodes;
infCodes.free(num);
this.codes = infCodes;
InfTree infTree = new InfTree();
this.inftree = infTree;
base..ctor();
int[] array3 = new int[4320];
this.hufts = array3;
byte[] array4 = new byte[w];
this.window = array4;
this.end = w;
this.checkfn = checkfn;
int num2 = 0;
this.mode = num2;
this.bitk = num2;
this.read = num2;
if (checkfn != 0)
{
this.check = (long)((ulong)1L);
z.adler = (long)((ulong)1L);
}
}
// Token: 0x06009C72 RID: 40050 RVA: 0x00201B88 File Offset: 0x001FFD88
[Token(Token = "0x6009C72")]
[Address(RVA = "0x4EAE50", Offset = "0x4E9E50", VA = "0x1804EAE50")]
internal void reset(ZStream z, long[] c)
{
if (c != 0)
{
long num = this.check;
c[0] = num;
}
if (this.mode == 6)
{
}
int num2 = 0;
this.mode = num2;
this.bitk = num2;
this.read = num2;
if (this.checkfn != num2)
{
this.check = (long)((ulong)1L);
z.adler = (long)((ulong)1L);
}
}
// Token: 0x06009C73 RID: 40051 RVA: 0x00201BEC File Offset: 0x001FFDEC
[Token(Token = "0x6009C73")]
[Address(RVA = "0x4E9990", Offset = "0x4E8990", VA = "0x1804E9990")]
internal int proc(ZStream z, int r)
{
int num = this.write;
int num2 = this.read;
int num3 = z.next_in_index;
int avail_in = z.avail_in;
int num4 = this.bitb;
int num5 = this.bitk;
if (num < num2)
{
num2 -= num;
}
int num6 = this.end;
num6 -= num;
int num7 = this.mode;
int num19;
if (num7 <= 9)
{
if (num5 >= 3)
{
goto IL_77;
}
if (avail_in != 0)
{
byte[] next_in = z.next_in;
num3++;
num5 += 8;
goto IL_77;
}
goto IL_79C;
IL_87A:
uint num8;
while (num8 != (uint)(-3))
{
}
this.blens = (ulong)0L;
this.mode = (int)((ulong)9L);
int num9;
this.bitb = num9;
int num10;
this.bitk = num10;
int num11;
this.write = num11;
goto IL_8AC;
IL_77:
num7 = num4;
num5 = num4;
this.last = num7;
if (num5 != 3)
{
if (num5 != 3)
{
if (num5 != 3)
{
if (num5 != 1)
{
goto IL_1A6;
}
this.mode = (int)((ulong)9L);
z.msg = "invalid block type";
this.bitk = "invalid block type";
}
this.mode = 3;
}
int[] array = new int[1];
int[] array2 = new int[1];
int[][] array3 = new int[1][];
int[][] array4 = new int[1][];
array[0] = (int)((ulong)9L);
array2[0] = (int)((ulong)5L);
int[] fixed_tl = InfTree.fixed_tl;
if (fixed_tl != 0)
{
}
array3[0] = fixed_tl;
int[] fixed_td = InfTree.fixed_td;
if (fixed_td != 0)
{
}
array4[0] = fixed_td;
int num12 = array[0];
int num13 = array2[0];
int[] array5 = array3[0];
InfCodes infCodes = this.codes;
infCodes.mode = (int)((ulong)0L);
infCodes.lbits = (byte)num12;
infCodes.dbits = (byte)num13;
infCodes.ltree = array5;
infCodes.ltree_index = (int)((ulong)0L);
infCodes.dtree = fixed_td;
infCodes.dtree_index = (int)((ulong)0L);
infCodes.tree = (ulong)0L;
this.mode = (int)((ulong)6L);
IL_1A6:
int i = this.mode;
while (i <= 9)
{
}
goto IL_1B4;
}
this.mode = (int)((ulong)1L);
int num14 = 0;
this.left = 0;
int num15 = 0;
uint num16;
this.mode = (int)num16;
int num17 = this.last;
this.mode = num17;
int num18 = this.end;
int num21;
int num22;
if (num19 == num18)
{
int num20 = this.read;
if (num20 != 0)
{
num21 = 0;
if (num20 > 0)
{
num22 = num20 - 1;
}
if (num22 != 0)
{
goto IL_295;
}
}
}
this.write = num21;
int num23 = this.write;
int num24 = this.read;
int num25 = this.end;
if (num23 < num24)
{
num22 = num24;
num22 -= num23;
}
num22 = num25;
num22 -= num23;
int num26;
int num27;
if (num23 == num25 && num24 != 0)
{
num26 = 0;
num27 = num24 - 1;
if (num24 <= 0)
{
num27 = num25;
}
}
if (num27 == 0)
{
goto IL_784;
}
IL_295:
int num28;
if (num28 <= num27)
{
num27 = num28;
}
num26 += num27;
num27 -= num27;
while (num28 != num27)
{
}
this.mode = num28;
if (num14 < 14)
{
num14 += 8;
}
this.table = num15;
if (num15 > 29 || num15 > 29)
{
goto IL_7B4;
}
if (this.blens != 0)
{
int num29 = 0;
int[] array6 = this.blens;
num29++;
}
int[] array7 = new int[0];
this.blens = array7;
this.index = (int)((ulong)0L);
this.mode = (int)((ulong)4L);
int num30 = this.table;
int num31 = this.index;
num30 += 4;
int num36;
if (num31 < num30)
{
if (num14 < 3)
{
num14 += 8;
}
int[] array8 = this.blens;
int num32 = this.index;
int[] array9 = InfBlocks.border;
int num33 = num32 + 1;
this.index = num33;
int num34 = array9[num32];
array8[0] = num15;
int num35 = this.table;
num36 = this.index;
num35 += 4;
}
if (num36 < 19)
{
int[] array10 = this.blens;
int num37 = this.index;
int[] array11 = InfBlocks.border;
int num38 = num37 + 1;
this.index = num38;
num38 = num37;
int num39 = array11[num38];
int num40 = this.index;
}
int[] array12 = this.bb;
int[] array13 = this.tb;
InfTree infTree = this.inftree;
int[] array14 = this.bb;
int[] array15 = this.hufts;
infTree.initWorkArea(19);
int[] hn = infTree.hn;
int num41 = 0;
hn[0] = num41;
int[] v = infTree.v;
int[] hn2 = infTree.hn;
int num42;
if (num42 == -3 || num42 == -5 || "{il2cpp array field local78->}" == (ulong)0L)
{
goto IL_7F4;
}
if (num42 != 0)
{
goto IL_7EE;
}
this.index = num42;
this.mode = (int)((ulong)5L);
int num43 = this.table;
num42 = num43;
num43 += 258;
num42 += num43;
int num49;
if (this.index < num42)
{
int num44 = this.bb[0];
if (num14 < num44)
{
num14 += 8;
}
int[] array16 = this.tb;
int[] array17 = this.hufts;
int num45 = array16[0];
int[] array18 = InfBlocks.inflate_mask;
int length = array18.Length;
int num46 = array18[num44];
num46 += num45;
int[] array19 = this.tb;
int[] array20 = this.hufts;
int num47;
if (num47 != 18)
{
}
if (num14 < array18)
{
num14 += 8;
}
int num48;
num14 -= num48;
int[] array21 = InfBlocks.inflate_mask;
num49 = this.index;
uint num50;
num14 -= (int)num50;
int num51 = array21[(int)num50];
uint num52;
num52 += (uint)num51;
int num53 = this.table;
num53 += 258;
num53 += num53;
if (num47 == 16)
{
int[] array22 = this.blens;
int num54 = num49 - 1;
}
int num55 = 0;
int[] array23 = this.blens;
num49++;
uint num56 = num52 - 1U;
array23[0] = num55;
while (num56 != (uint)0)
{
}
this.index = num49;
int num57 = this.index;
num14 -= num48;
int[] array24 = this.blens;
int num58 = num57 + 1;
this.index = num58;
array24[0] = num47;
int num59 = this.index;
int num60 = this.table;
num58 = num60;
num60 += 258;
num58 += num60;
}
int[] array25 = this.tb;
int[] array26 = new int[1];
int[] array27 = new int[1];
int[] array28 = new int[1];
int[] array29 = new int[1];
array26[0] = (int)((ulong)9L);
array27[0] = (int)((ulong)6L);
InfTree infTree2 = this.inftree;
int num61 = this.table;
num49 = num61;
int[] array30 = this.hufts;
num61 += 257;
num49++;
int num62;
if (num62 != 0)
{
goto IL_87A;
}
int num63 = array26[0];
int num64 = array27[0];
int[] array31 = this.hufts;
int num65 = array28[0];
int num66 = array29[0];
InfCodes infCodes2 = this.codes;
infCodes2.dbits = (byte)num64;
infCodes2.mode = (int)((ulong)0L);
infCodes2.lbits = (byte)num63;
infCodes2.ltree = array31;
infCodes2.ltree_index = num65;
infCodes2.dtree = array31;
infCodes2.dtree_index = num66;
infCodes2.tree = (ulong)0L;
this.mode = (int)((ulong)6L);
this.bitb = num15;
this.bitk = num14;
InfCodes infCodes3 = this.codes;
this.write = num26;
int num67;
if (num67 != 1)
{
goto IL_8F0;
}
int num68 = 0;
num11 = this.write;
int num69 = this.read;
num9 = this.bitb;
num10 = this.bitk;
if (num11 < num69)
{
num69 -= num11;
}
int num70 = this.end;
num70 -= num11;
if (this.last != num68)
{
goto IL_8AC;
}
this.mode = num68;
this.mode = (int)((ulong)9L);
IL_784:
this.bitb = num9;
this.bitk = num10;
this.write = num11;
IL_79C:
this.bitb = num9;
this.bitk = num10;
this.write = num11;
IL_7B4:
this.mode = (int)((ulong)9L);
this.bitk = num10;
this.bitb = num9;
this.write = num11;
this.bitb = num9;
this.bitk = num10;
this.write = num11;
IL_7EE:
if (num11 != -3)
{
goto IL_807;
}
IL_7F4:
this.blens = (ulong)0L;
this.mode = (int)((ulong)9L);
IL_807:
this.bitb = num9;
this.bitk = num10;
this.write = num11;
this.bitb = num9;
this.bitk = num10;
this.write = num11;
this.bitb = num9;
this.bitk = num10;
this.write = num11;
this.blens = (ulong)0L;
this.mode = (int)((ulong)9L);
this.bitb = num9;
this.bitk = num10;
this.write = num11;
goto IL_87A;
IL_8AC:
this.mode = (int)((ulong)7L);
this.write = num11;
int num71 = this.write;
while (this.read != num71)
{
}
this.mode = (int)((ulong)8L);
this.bitb = num9;
this.bitk = num10;
this.write = num71;
IL_8F0:
throw new NullReferenceException();
}
IL_1B4:
this.bitb = num4;
this.bitk = num5;
this.write = num;
num19 = 0;
int num72;
return num72;
}
// Token: 0x06009C74 RID: 40052 RVA: 0x002024F0 File Offset: 0x002006F0
[Token(Token = "0x6009C74")]
[Address(RVA = "0x4E97B0", Offset = "0x4E87B0", VA = "0x1804E97B0")]
internal void free(ZStream z)
{
if (this.mode == 6)
{
}
int num = 0;
this.mode = num;
this.bitk = num;
this.read = num;
if (this.checkfn != num)
{
this.check = (long)((ulong)1L);
z.adler = (long)((ulong)1L);
}
this.window = num;
this.hufts = num;
}
// Token: 0x06009C75 RID: 40053 RVA: 0x0020254C File Offset: 0x0020074C
[Token(Token = "0x6009C75")]
[Address(RVA = "0x4EAED0", Offset = "0x4E9ED0", VA = "0x1804EAED0")]
internal void set_dictionary(byte[] d, int start, int n)
{
byte[] array = this.window;
int num = 0;
Array.Copy(d, start, array, num, n);
this.write = n;
this.read = n;
}
// Token: 0x06009C76 RID: 40054 RVA: 0x0020257C File Offset: 0x0020077C
[Token(Token = "0x6009C76")]
[Address(RVA = "0x4EAF20", Offset = "0x4E9F20", VA = "0x1804EAF20")]
internal int sync_point()
{
/*
An exception occurred when decompiling this method (06009C76)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.InfBlocks::sync_point()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:bool(var_0_09, ceq:bool(ldfld:int32(InfBlocks::mode, ldloc:InfBlocks(this)), ldc.i4:int32(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: 0x06009C77 RID: 40055 RVA: 0x00202594 File Offset: 0x00200794
[Token(Token = "0x6009C77")]
[Address(RVA = "0x4E9810", Offset = "0x4E8810", VA = "0x1804E9810")]
internal int inflate_flush(ZStream z, int r)
{
int num = this.read;
int num2 = this.write;
int num3 = z.next_out_index;
if (num > num2)
{
}
int num4 = z.avail_out;
num2 -= num;
if (num2 <= num4)
{
num4 = num2;
}
int num5 = 0;
if (num4 != 0)
{
}
num4 -= num4;
z.avail_out = num4;
if (this.checkfn != num5)
{
Adler32 adler = z._adler;
byte[] array = this.window;
long num6 = this.check;
long num7 = adler.adler32(num6, array, num, num4);
this.check = num7;
z.adler = num7;
}
byte[] next_out = z.next_out;
num = num3;
Array.Copy(this.window, num, next_out, num, num4);
int num8 = this.end;
num3 += num4;
num += num4;
if (num == num8)
{
if (this.write == num8)
{
this.write = num5;
}
int num9 = z.avail_out;
if (num5 != 0)
{
}
num9 -= num5;
z.avail_out = num9;
if (this.checkfn != num5)
{
Adler32 adler2 = z._adler;
byte[] array2 = this.window;
int num10 = 0;
long num11 = this.check;
long num12 = adler2.adler32(num11, array2, num10, num5);
this.check = num12;
z.adler = num12;
}
byte[] next_out2 = z.next_out;
byte[] array3 = this.window;
int num13 = 0;
Array.Copy(array3, num13, next_out2, num3, num5);
num3 += num5;
}
z.next_out_index = num3;
this.read = num5;
return num5;
}
// Token: 0x06009C78 RID: 40056 RVA: 0x00202708 File Offset: 0x00200908
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C78")]
[Address(RVA = "0x4E95D0", Offset = "0x4E85D0", VA = "0x1804E95D0")]
static InfBlocks()
{
int[] array = new int[17];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.F584B6C7CCA3CD4ECC3B9B1E20D2F2EFB73DBBDF).FieldHandle);
InfBlocks.inflate_mask = array;
int[] array2 = new int[19];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.1FDC8DB567F5AAA7068D0D2A601CD71657CBDF38).FieldHandle);
InfBlocks.border = array2;
}
// Token: 0x0400691B RID: 26907
[Token(Token = "0x400691B")]
private const int MANY = 1440;
// Token: 0x0400691C RID: 26908
[Token(Token = "0x400691C")]
private static readonly int[] inflate_mask;
// Token: 0x0400691D RID: 26909
[Token(Token = "0x400691D")]
private static readonly int[] border;
// Token: 0x0400691E RID: 26910
[Token(Token = "0x400691E")]
private const int Z_OK = 0;
// Token: 0x0400691F RID: 26911
[Token(Token = "0x400691F")]
private const int Z_STREAM_END = 1;
// Token: 0x04006920 RID: 26912
[Token(Token = "0x4006920")]
private const int Z_NEED_DICT = 2;
// Token: 0x04006921 RID: 26913
[Token(Token = "0x4006921")]
private const int Z_ERRNO = -1;
// Token: 0x04006922 RID: 26914
[Token(Token = "0x4006922")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x04006923 RID: 26915
[Token(Token = "0x4006923")]
private const int Z_DATA_ERROR = -3;
// Token: 0x04006924 RID: 26916
[Token(Token = "0x4006924")]
private const int Z_MEM_ERROR = -4;
// Token: 0x04006925 RID: 26917
[Token(Token = "0x4006925")]
private const int Z_BUF_ERROR = -5;
// Token: 0x04006926 RID: 26918
[Token(Token = "0x4006926")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x04006927 RID: 26919
[Token(Token = "0x4006927")]
private const int TYPE = 0;
// Token: 0x04006928 RID: 26920
[Token(Token = "0x4006928")]
private const int LENS = 1;
// Token: 0x04006929 RID: 26921
[Token(Token = "0x4006929")]
private const int STORED = 2;
// Token: 0x0400692A RID: 26922
[Token(Token = "0x400692A")]
private const int TABLE = 3;
// Token: 0x0400692B RID: 26923
[Token(Token = "0x400692B")]
private const int BTREE = 4;
// Token: 0x0400692C RID: 26924
[Token(Token = "0x400692C")]
private const int DTREE = 5;
// Token: 0x0400692D RID: 26925
[Token(Token = "0x400692D")]
private const int CODES = 6;
// Token: 0x0400692E RID: 26926
[Token(Token = "0x400692E")]
private const int DRY = 7;
// Token: 0x0400692F RID: 26927
[Token(Token = "0x400692F")]
private const int DONE = 8;
// Token: 0x04006930 RID: 26928
[Token(Token = "0x4006930")]
private const int BAD = 9;
// Token: 0x04006931 RID: 26929
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006931")]
internal int mode;
// Token: 0x04006932 RID: 26930
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4006932")]
internal int left;
// Token: 0x04006933 RID: 26931
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006933")]
internal int table;
// Token: 0x04006934 RID: 26932
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4006934")]
internal int index;
// Token: 0x04006935 RID: 26933
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006935")]
internal int[] blens;
// Token: 0x04006936 RID: 26934
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006936")]
internal int[] bb;
// Token: 0x04006937 RID: 26935
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006937")]
internal int[] tb;
// Token: 0x04006938 RID: 26936
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006938")]
internal InfCodes codes;
// Token: 0x04006939 RID: 26937
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4006939")]
private int last;
// Token: 0x0400693A RID: 26938
[FieldOffset(Offset = "0x44")]
[Token(Token = "0x400693A")]
internal int bitk;
// Token: 0x0400693B RID: 26939
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x400693B")]
internal int bitb;
// Token: 0x0400693C RID: 26940
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400693C")]
internal int[] hufts;
// Token: 0x0400693D RID: 26941
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x400693D")]
internal byte[] window;
// Token: 0x0400693E RID: 26942
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400693E")]
internal int end;
// Token: 0x0400693F RID: 26943
[FieldOffset(Offset = "0x64")]
[Token(Token = "0x400693F")]
internal int read;
// Token: 0x04006940 RID: 26944
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4006940")]
internal int write;
// Token: 0x04006941 RID: 26945
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4006941")]
internal object checkfn;
// Token: 0x04006942 RID: 26946
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x4006942")]
internal long check;
// Token: 0x04006943 RID: 26947
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4006943")]
internal InfTree inftree;
}
}
@@ -0,0 +1,534 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A0D RID: 6669
[Token(Token = "0x2001A0D")]
internal sealed class InfCodes
{
// Token: 0x06009C79 RID: 40057 RVA: 0x00202748 File Offset: 0x00200948
[Token(Token = "0x6009C79")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
internal InfCodes()
{
int num = 0;
this.free(num);
}
// Token: 0x06009C7A RID: 40058 RVA: 0x00202760 File Offset: 0x00200960
[Token(Token = "0x6009C7A")]
[Address(RVA = "0x4EBB60", Offset = "0x4EAB60", VA = "0x1804EBB60")]
internal void init(int bl, int bd, int[] tl, int tl_index, int[] td, int td_index, ZStream z)
{
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: 0x06009C7B RID: 40059 RVA: 0x002027A8 File Offset: 0x002009A8
[Token(Token = "0x6009C7B")]
[Address(RVA = "0x4EBB90", Offset = "0x4EAB90", VA = "0x1804EBB90")]
internal int proc(InfBlocks s, ZStream z, int r)
{
int next_in_index = z.next_in_index;
int avail_in = z.avail_in;
int write = s.write;
int num = s.read;
int bitb = s.bitb;
int bitk = s.bitk;
if (write < num)
{
num -= write;
}
int num2 = s.end;
num2 -= write;
s.bitb = bitb;
s.bitk = bitk;
z.avail_in = avail_in;
z.next_in_index = next_in_index;
s.write = write;
int write2 = s.write;
int num3 = s.read;
int bitb2 = s.bitb;
int num4 = z.next_in_index;
int avail_in2 = z.avail_in;
int num5 = s.bitk;
if (write2 < num3)
{
num3 -= write2;
}
int num6 = s.end;
num6 -= write2;
int num7;
if (num7 != 0)
{
}
uint num8;
int num9;
if (num5 < (int)num8)
{
if (avail_in2 == 0)
{
goto IL_373;
}
num9 = 0;
byte[] next_in = z.next_in;
num4++;
num5 += 8;
}
int num10 = InfCodes.inflate_mask[(int)num8];
byte b;
num10 += (int)b;
num5 -= num9;
uint num11;
if (num5 < (int)num11)
{
if (avail_in2 == 0)
{
goto IL_373;
}
byte[] next_in2 = z.next_in;
num4++;
num5 += 8;
}
int num12 = InfCodes.inflate_mask[(int)num11];
byte b2;
num12 += (int)b2;
num5 -= (int)num11;
if (num5 < (int)num11)
{
if (avail_in2 == 0)
{
goto IL_373;
}
byte[] next_in3 = z.next_in;
num4++;
num5 += 8;
}
int num13 = InfCodes.inflate_mask[(int)num11];
byte b3;
num13 += (int)b3;
num5 -= r;
uint num14;
int num15;
if (num5 < (int)num14)
{
if (avail_in2 == 0)
{
goto IL_373;
}
num15 = 0;
byte[] next_in4 = z.next_in;
num4++;
num5 += 8;
}
int num16 = InfCodes.inflate_mask[(int)num14];
byte b4;
num16 += (int)b4;
num5 -= (int)num14;
int num18;
int num19;
int num20;
if (num6 == 0)
{
int num17 = s.end;
if (write2 == num17)
{
int read = s.read;
if (read != 0)
{
if (read > 0)
{
}
if (num17 != 0)
{
goto IL_258;
}
}
}
s.write = write2;
num18 = s.inflate_flush(z, num15);
int write3 = s.write;
int end = s.end;
int read2 = s.read;
if (write3 < read2)
{
num17 = read2;
num17 -= write3;
}
num17 -= write3;
if (write3 == end && read2 != 0)
{
num19 = 0;
num20 = read2 - 1;
if (read2 <= 0)
{
}
}
if (num20 == 0)
{
goto IL_3BD;
}
}
IL_258:
byte[] window = s.window;
int num21 = write2 + 1;
num19++;
int length = window.Length;
int end2 = s.end;
int i;
if (num20 == 0)
{
int end3 = s.end;
int num22;
if (num19 == end3)
{
int read3 = s.read;
if (read3 != 0)
{
num22 = 0;
int num23;
if (read3 > 0)
{
num23 = read3 - 1;
}
if (num23 != 0)
{
goto IL_32A;
}
}
}
s.write = num22;
num21 = num18;
int num24 = s.inflate_flush(z, num21);
int read4 = s.read;
int write4 = s.write;
if (write4 < read4)
{
int num23 = read4;
num23 -= write4;
}
int num25 = s.end;
num25 -= write4;
int end4 = s.end;
int num26;
if (write4 == end4 && read4 != 0)
{
i = 0;
num26 = read4 - 1;
num26 = end4;
}
if (num26 == 0)
{
goto IL_3D3;
}
}
IL_32A:
byte[] window2 = s.window;
int num27 = 0;
i++;
while (i <= 9)
{
}
s.bitb = bitb2;
s.bitk = num5;
z.avail_in = avail_in2;
z.next_in_index = num4;
s.write = i;
return s.inflate_flush(z, -2);
IL_373:
s.bitb = -2;
s.bitk = 0;
z.avail_in = (int)((ulong)0L);
z.next_in_index = 0;
s.write = 0;
z.msg = "invalid literal/length code";
s.bitb = 0;
z.msg = "invalid distance code";
s.bitb = 0;
IL_3BD:
s.bitb = bitb2;
s.bitk = 0;
z.avail_in = 0;
IL_3D3:
s.bitb = bitb2;
s.bitk = 0;
z.avail_in = 0;
z.next_in_index = 0;
s.write = 0;
s.write = 0;
int num28 = s.inflate_flush(z, num27);
int write5 = s.write;
while (s.read != write5)
{
}
s.bitb = bitb2;
s.bitk = 0;
z.avail_in = 0;
z.next_in_index = 0;
s.write = write5;
s.bitb = 1;
s.bitk = 0;
z.avail_in = 0;
z.next_in_index = 0;
s.write = write5;
throw new NullReferenceException();
}
// Token: 0x06009C7C RID: 40060 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009C7C")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
internal void free(ZStream z)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009C7D RID: 40061 RVA: 0x00202C20 File Offset: 0x00200E20
[Token(Token = "0x6009C7D")]
[Address(RVA = "0x4EAF90", Offset = "0x4E9F90", VA = "0x1804EAF90")]
internal int inflate_fast(int bl, int bd, int[] tl, int tl_index, int[] td, int td_index, InfBlocks s, ZStream z)
{
int[] array = InfCodes.inflate_mask;
int length = array.Length;
int num = array[bl];
int num2 = array[bd];
int num12;
if (bl != 0)
{
int num3 = bd + 1;
if (bl == 16)
{
if (bl != 64)
{
goto IL_FE;
}
int num4 = InfCodes.inflate_mask[bl];
num4 += bd;
while (bl != 0)
{
}
int num5 = bd + 1;
}
int num6 = InfCodes.inflate_mask[bl];
num6 += bd;
int num7 = bd + 1;
if (bl == 16)
{
if (bl != 64)
{
goto IL_10A;
}
int num8 = InfCodes.inflate_mask[bl];
num8 += bd;
}
int num9 = InfCodes.inflate_mask[bl];
num9 += bd;
int num10;
if (num6 > bd)
{
num6 -= bd;
num10 = bd - 1;
while (num10 != 0)
{
}
int num11 = 0;
num12 = 0;
if (num11 == 1)
{
goto IL_F0;
}
num12 += 2;
}
num10 -= num12;
if (num10 > 0 && num6 > num10)
{
num12++;
int num13 = num6 - 1;
num6 = num13;
while (num13 != 0)
{
}
}
IL_F0:
Array.Copy(num12, num12, num12, 1, num6);
}
IL_FE:
if (num12 == 32)
{
}
uint num14;
num14 -= tl;
IL_10A:
throw new NullReferenceException();
}
// Token: 0x06009C7E RID: 40062 RVA: 0x00202D3C File Offset: 0x00200F3C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C7E")]
[Address(RVA = "0x4EAF30", Offset = "0x4E9F30", VA = "0x1804EAF30")]
static InfCodes()
{
int[] array = new int[17];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.F584B6C7CCA3CD4ECC3B9B1E20D2F2EFB73DBBDF).FieldHandle);
InfCodes.inflate_mask = array;
}
// Token: 0x04006944 RID: 26948
[Token(Token = "0x4006944")]
private static readonly int[] inflate_mask;
// Token: 0x04006945 RID: 26949
[Token(Token = "0x4006945")]
private const int Z_OK = 0;
// Token: 0x04006946 RID: 26950
[Token(Token = "0x4006946")]
private const int Z_STREAM_END = 1;
// Token: 0x04006947 RID: 26951
[Token(Token = "0x4006947")]
private const int Z_NEED_DICT = 2;
// Token: 0x04006948 RID: 26952
[Token(Token = "0x4006948")]
private const int Z_ERRNO = -1;
// Token: 0x04006949 RID: 26953
[Token(Token = "0x4006949")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x0400694A RID: 26954
[Token(Token = "0x400694A")]
private const int Z_DATA_ERROR = -3;
// Token: 0x0400694B RID: 26955
[Token(Token = "0x400694B")]
private const int Z_MEM_ERROR = -4;
// Token: 0x0400694C RID: 26956
[Token(Token = "0x400694C")]
private const int Z_BUF_ERROR = -5;
// Token: 0x0400694D RID: 26957
[Token(Token = "0x400694D")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x0400694E RID: 26958
[Token(Token = "0x400694E")]
private const int START = 0;
// Token: 0x0400694F RID: 26959
[Token(Token = "0x400694F")]
private const int LEN = 1;
// Token: 0x04006950 RID: 26960
[Token(Token = "0x4006950")]
private const int LENEXT = 2;
// Token: 0x04006951 RID: 26961
[Token(Token = "0x4006951")]
private const int DIST = 3;
// Token: 0x04006952 RID: 26962
[Token(Token = "0x4006952")]
private const int DISTEXT = 4;
// Token: 0x04006953 RID: 26963
[Token(Token = "0x4006953")]
private const int COPY = 5;
// Token: 0x04006954 RID: 26964
[Token(Token = "0x4006954")]
private const int LIT = 6;
// Token: 0x04006955 RID: 26965
[Token(Token = "0x4006955")]
private const int WASH = 7;
// Token: 0x04006956 RID: 26966
[Token(Token = "0x4006956")]
private const int END = 8;
// Token: 0x04006957 RID: 26967
[Token(Token = "0x4006957")]
private const int BADCODE = 9;
// Token: 0x04006958 RID: 26968
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006958")]
private int mode;
// Token: 0x04006959 RID: 26969
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4006959")]
private int len;
// Token: 0x0400695A RID: 26970
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400695A")]
private int[] tree;
// Token: 0x0400695B RID: 26971
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400695B")]
private int tree_index;
// Token: 0x0400695C RID: 26972
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400695C")]
private int need;
// Token: 0x0400695D RID: 26973
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400695D")]
private int lit;
// Token: 0x0400695E RID: 26974
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x400695E")]
private int get;
// Token: 0x0400695F RID: 26975
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400695F")]
private int dist;
// Token: 0x04006960 RID: 26976
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4006960")]
private byte lbits;
// Token: 0x04006961 RID: 26977
[FieldOffset(Offset = "0x35")]
[Token(Token = "0x4006961")]
private byte dbits;
// Token: 0x04006962 RID: 26978
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006962")]
private int[] ltree;
// Token: 0x04006963 RID: 26979
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4006963")]
private int ltree_index;
// Token: 0x04006964 RID: 26980
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4006964")]
private int[] dtree;
// Token: 0x04006965 RID: 26981
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4006965")]
private int dtree_index;
}
}
@@ -0,0 +1,445 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A0E RID: 6670
[Token(Token = "0x2001A0E")]
internal sealed class InfTree
{
// Token: 0x06009C7F RID: 40063 RVA: 0x00202D64 File Offset: 0x00200F64
[Token(Token = "0x6009C7F")]
[Address(RVA = "0x4EC9C0", Offset = "0x4EB9C0", VA = "0x1804EC9C0")]
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)
{
}
this.x[0] = num10;
this.r[0] = num9;
this.r[0] = (int)num;
int[] array10 = this.u;
num13 -= (int)num;
int[] array11 = this.r;
num12 -= num10;
array11[1] = num12;
int num20 = this.u[(int)num16];
num20 += num10;
int[] array12 = this.r;
}
int[] array13 = this.r;
num -= (uint)num13;
array13[0] = (int)num;
if (num11 < num9)
{
int[] array14 = this.r;
num11++;
int num21;
num21 += 80;
array14[0] = num21;
int[] array15 = this.r;
int[] array16 = this.r;
num11++;
uint num22;
array16[0] = (int)num22;
this.r[1] = (int)num22;
}
int[] array17 = this.r;
uint num23;
if (num10 < (int)num23)
{
int[] array18 = this.r;
uint num24;
num10 += (int)num24;
}
uint num25;
if (num10 != (int)num25)
{
while (num10 != (int)num25)
{
}
}
int[] array19 = this.x;
uint num26;
if (num26 != "{il2cpp array field local78->}")
{
num13 -= (int)num;
}
while (num14 != 0)
{
}
}
num += (uint)1;
while (num <= num2)
{
}
if (num2 != (uint)1)
{
}
}
throw new NullReferenceException();
}
// Token: 0x06009C80 RID: 40064 RVA: 0x00203070 File Offset: 0x00201270
[Token(Token = "0x6009C80")]
[Address(RVA = "0x4ED5A0", Offset = "0x4EC5A0", VA = "0x1804ED5A0")]
internal int inflate_trees_bits(int[] c, int[] bb, int[] tb, int[] hp, ZStream 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: 0x06009C81 RID: 40065 RVA: 0x002030C4 File Offset: 0x002012C4
[Token(Token = "0x6009C81")]
[Address(RVA = "0x4ED6F0", Offset = "0x4EC6F0", VA = "0x1804ED6F0")]
internal int inflate_trees_dynamic(int nl, int nd, int[] c, int[] bl, int[] bd, int[] tl, int[] td, int[] hp, ZStream 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: 0x06009C82 RID: 40066 RVA: 0x00203164 File Offset: 0x00201364
[Token(Token = "0x6009C82")]
[Address(RVA = "0x4EDA00", Offset = "0x4ECA00", VA = "0x1804EDA00")]
internal static int inflate_trees_fixed(int[] bl, int[] bd, int[][] tl, int[][] td, ZStream 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: 0x06009C83 RID: 40067 RVA: 0x002031A0 File Offset: 0x002013A0
[Token(Token = "0x6009C83")]
[Address(RVA = "0x4EDB90", Offset = "0x4ECB90", VA = "0x1804EDB90")]
private void initWorkArea(int vsize)
{
if (this.cplens == (ulong)0L)
{
int[] array = new int[1];
this.hn = array;
int[] array2 = new int[vsize];
this.v = array2;
int[] array3 = new int[16];
this.c = array3;
int[] array4 = new int[3];
this.r = array4;
int[] array5 = new int[15];
this.u = array5;
int[] array6 = new int[16];
this.x = array6;
}
if (this.v.Length < vsize)
{
int[] array7 = new int[vsize];
this.v = array7;
}
int num = 0;
if (vsize > 0)
{
int[] array8 = this.v;
num++;
array8[0] = num;
}
int[] array9 = this.c;
num++;
array9[0] = num;
int[] array10 = this.r;
num++;
array10[0] = num;
int[] array11 = this.u;
int num2 = 0;
int[] array12 = this.c;
int num3 = 0;
ulong num4;
Array.Copy(array12, num3, array11, num2, (int)num4);
int[] array13 = this.x;
int num5 = 0;
int[] array14 = this.c;
int num6 = 0;
ulong num7;
Array.Copy(array14, num6, array13, num5, (int)num7);
}
// Token: 0x06009C84 RID: 40068 RVA: 0x002032D0 File Offset: 0x002014D0
[Token(Token = "0x6009C84")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public InfTree()
{
}
// Token: 0x06009C85 RID: 40069 RVA: 0x002032E4 File Offset: 0x002014E4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C85")]
[Address(RVA = "0x4EC840", Offset = "0x4EB840", VA = "0x1804EC840")]
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: 0x04006966 RID: 26982
[Token(Token = "0x4006966")]
private const int MANY = 1440;
// Token: 0x04006967 RID: 26983
[Token(Token = "0x4006967")]
private const int Z_OK = 0;
// Token: 0x04006968 RID: 26984
[Token(Token = "0x4006968")]
private const int Z_STREAM_END = 1;
// Token: 0x04006969 RID: 26985
[Token(Token = "0x4006969")]
private const int Z_NEED_DICT = 2;
// Token: 0x0400696A RID: 26986
[Token(Token = "0x400696A")]
private const int Z_ERRNO = -1;
// Token: 0x0400696B RID: 26987
[Token(Token = "0x400696B")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x0400696C RID: 26988
[Token(Token = "0x400696C")]
private const int Z_DATA_ERROR = -3;
// Token: 0x0400696D RID: 26989
[Token(Token = "0x400696D")]
private const int Z_MEM_ERROR = -4;
// Token: 0x0400696E RID: 26990
[Token(Token = "0x400696E")]
private const int Z_BUF_ERROR = -5;
// Token: 0x0400696F RID: 26991
[Token(Token = "0x400696F")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x04006970 RID: 26992
[Token(Token = "0x4006970")]
private const int fixed_bl = 9;
// Token: 0x04006971 RID: 26993
[Token(Token = "0x4006971")]
private const int fixed_bd = 5;
// Token: 0x04006972 RID: 26994
[Token(Token = "0x4006972")]
private static readonly int[] fixed_tl;
// Token: 0x04006973 RID: 26995
[Token(Token = "0x4006973")]
private static readonly int[] fixed_td;
// Token: 0x04006974 RID: 26996
[Token(Token = "0x4006974")]
private static readonly int[] cplens;
// Token: 0x04006975 RID: 26997
[Token(Token = "0x4006975")]
private static readonly int[] cplext;
// Token: 0x04006976 RID: 26998
[Token(Token = "0x4006976")]
private static readonly int[] cpdist;
// Token: 0x04006977 RID: 26999
[Token(Token = "0x4006977")]
private static readonly int[] cpdext;
// Token: 0x04006978 RID: 27000
[Token(Token = "0x4006978")]
private const int BMAX = 15;
// Token: 0x04006979 RID: 27001
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006979")]
private int[] hn;
// Token: 0x0400697A RID: 27002
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400697A")]
private int[] v;
// Token: 0x0400697B RID: 27003
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400697B")]
private int[] c;
// Token: 0x0400697C RID: 27004
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400697C")]
private int[] r;
// Token: 0x0400697D RID: 27005
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400697D")]
private int[] u;
// Token: 0x0400697E RID: 27006
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400697E")]
private int[] x;
}
}
@@ -0,0 +1,571 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A0F RID: 6671
[Token(Token = "0x2001A0F")]
internal sealed class Inflate
{
// Token: 0x06009C86 RID: 40070 RVA: 0x00203390 File Offset: 0x00201590
[Token(Token = "0x6009C86")]
[Address(RVA = "0x411770", Offset = "0x410770", VA = "0x180411770")]
internal int inflateReset(ZStream z)
{
if (z != 0)
{
Inflate istate = z.istate;
if (istate != 0)
{
int num = 0;
z.total_out = (long)num;
z.total_in = (long)num;
z.msg = num;
istate.mode = this;
InfBlocks infBlocks = z.istate.blocks;
return 0;
}
}
return -2;
}
// Token: 0x06009C87 RID: 40071 RVA: 0x002033E0 File Offset: 0x002015E0
[Token(Token = "0x6009C87")]
[Address(RVA = "0x411630", Offset = "0x410630", VA = "0x180411630")]
internal int inflateEnd(ZStream z)
{
InfBlocks infBlocks = this.blocks;
if (infBlocks != 0)
{
infBlocks.free(z);
}
int num = 0;
this.blocks = num;
return num;
}
// Token: 0x06009C88 RID: 40072 RVA: 0x0020340C File Offset: 0x0020160C
[Token(Token = "0x6009C88")]
[Address(RVA = "0x411660", Offset = "0x410660", VA = "0x180411660")]
internal int inflateInit(ZStream z, int w)
{
int num = 0;
z.msg = num;
this.blocks = num;
this.nowrap = num;
this.nowrap = 1;
this.wbits = w;
Inflate istate = z.istate;
int num2 = istate.nowrap;
InfBlocks infBlocks = new InfBlocks(z, this, 1);
istate.blocks = infBlocks;
int num3 = this.inflateReset(z);
return 0;
}
// Token: 0x06009C89 RID: 40073 RVA: 0x0020346C File Offset: 0x0020166C
[Token(Token = "0x6009C89")]
[Address(RVA = "0x411B80", Offset = "0x410B80", VA = "0x180411B80")]
internal int inflate(ZStream z, int f)
{
if (z != 0 && z.istate != (ulong)0L && z.next_in != (ulong)0L)
{
int num = 0;
if (z.istate.mode <= 13)
{
int avail_in = z.avail_in;
if (avail_in != 0)
{
z.avail_in = avail_in;
int next_in_index = z.next_in_index;
byte[] next_in = z.next_in;
Inflate istate = z.istate;
int num2 = next_in_index + 1;
z.next_in_index = num2;
byte b;
istate.method = (int)b;
Inflate istate2 = z.istate;
int num3 = istate2.method;
num3 += 8;
istate2.mode = (int)((ulong)1L);
int avail_in2 = z.avail_in;
if (avail_in2 != 0)
{
z.avail_in = avail_in2;
int next_in_index2 = z.next_in_index;
byte[] next_in2 = z.next_in;
int num4 = next_in_index2 + 1;
z.next_in_index = num4;
Inflate istate3 = z.istate;
int num5 = istate3.method;
byte b2;
num5 += (int)b2;
ulong num6;
num6 += num6;
long num7 = (long)(num6 * (ulong)((uint)31));
if ((long)num5 == num7)
{
istate3.mode = (int)((ulong)7L);
z.istate.mode = (int)((ulong)13L);
}
istate.mode = (int)((ulong)13L);
int num8;
if (num8 != -3)
{
if (num != 1)
{
goto IL_360;
}
Inflate istate4 = z.istate;
InfBlocks infBlocks = istate4.blocks;
long[] array = istate4.was;
infBlocks.reset(z, array);
Inflate istate5 = z.istate;
Inflate istate11;
if (istate5.nowrap == num)
{
istate5.mode = (int)((ulong)8L);
int avail_in3 = z.avail_in;
if (avail_in3 == 0)
{
goto IL_360;
}
z.avail_in = avail_in3;
int next_in_index3 = z.next_in_index;
byte[] next_in3 = z.next_in;
Inflate istate6 = z.istate;
int num9 = next_in_index3 + 1;
z.next_in_index = num9;
byte b3;
istate6.need = (long)b3;
z.istate.mode = (int)((ulong)9L);
int avail_in4 = z.avail_in;
if (avail_in4 == 0)
{
goto IL_360;
}
z.avail_in = avail_in4;
Inflate istate7 = z.istate;
int next_in_index4 = z.next_in_index;
byte[] next_in4 = z.next_in;
long num10 = istate7.need;
int num11 = next_in_index4 + 1;
z.next_in_index = num11;
byte b4 = (byte)((long)b4 + num10);
istate7.need = (long)b4;
z.istate.mode = (int)((ulong)10L);
int avail_in5 = z.avail_in;
if (avail_in5 == 0)
{
goto IL_360;
}
z.avail_in = avail_in5;
Inflate istate8 = z.istate;
int next_in_index5 = z.next_in_index;
byte[] next_in5 = z.next_in;
long num12 = istate8.need;
int num13 = next_in_index5 + 1;
z.next_in_index = num13;
byte b5 = (byte)((long)b5 + num12);
istate8.need = (long)b5;
z.istate.mode = (int)((ulong)11L);
int avail_in6 = z.avail_in;
if (avail_in6 == 0)
{
goto IL_360;
}
z.avail_in = avail_in6;
Inflate istate9 = z.istate;
int next_in_index6 = z.next_in_index;
byte[] next_in6 = z.next_in;
long num14 = istate9.need;
int num15 = next_in_index6 + 1;
z.next_in_index = num15;
byte b6 = (byte)((long)b6 + num14);
istate9.need = (long)b6;
Inflate istate10 = z.istate;
long[] array2 = istate10.was;
long num16 = istate10.need;
if ("{il2cpp array field local64->}" == num16)
{
goto IL_39B;
}
istate10.mode = (int)((ulong)13L);
z.msg = "incorrect data check";
istate11 = z.istate;
istate11.marker = (int)((ulong)5L);
}
istate11.mode = (int)((ulong)12L);
}
z.istate.mode = (int)((ulong)13L);
z.istate.marker = num;
}
}
IL_360:
int avail_in7 = z.avail_in;
while (avail_in7 == 0)
{
}
z.avail_in = avail_in7;
int next_in_index7 = z.next_in_index;
byte[] next_in7 = z.next_in;
Inflate istate12 = z.istate;
int num17 = next_in_index7 + 1;
z.next_in_index = num17;
IL_39B:
byte b7;
istate12.need = (long)b7;
z.istate.mode = (int)((ulong)3L);
int avail_in8 = z.avail_in;
while (avail_in8 == 0)
{
}
z.avail_in = avail_in8;
Inflate istate13 = z.istate;
int next_in_index8 = z.next_in_index;
byte[] next_in8 = z.next_in;
long num18 = istate13.need;
int num19 = next_in_index8 + 1;
z.next_in_index = num19;
byte b8 = (byte)((long)b8 + num18);
istate13.need = (long)b8;
z.istate.mode = (int)((ulong)4L);
int avail_in9 = z.avail_in;
while (avail_in9 == 0)
{
}
z.avail_in = avail_in9;
Inflate istate14 = z.istate;
int next_in_index9 = z.next_in_index;
byte[] next_in9 = z.next_in;
long num20 = istate14.need;
int num21 = next_in_index9 + 1;
z.next_in_index = num21;
byte b9 = (byte)((long)b9 + num20);
istate14.need = (long)b9;
z.istate.mode = (int)((ulong)5L);
int avail_in10 = z.avail_in;
while (avail_in10 == 0)
{
}
z.avail_in = avail_in10;
Inflate istate15 = z.istate;
int next_in_index10 = z.next_in_index;
byte[] next_in10 = z.next_in;
long num22 = istate15.need;
int num23 = next_in_index10 + 1;
z.next_in_index = num23;
byte b10 = (byte)((long)b10 + num22);
istate15.need = (long)b10;
Inflate istate16 = z.istate;
long num24 = istate16.need;
z.adler = num24;
istate16.mode = (int)((ulong)6L);
istate15.mode = (int)((ulong)13L);
z.msg = "need dictionary";
z.istate.marker = num;
}
}
throw new NullReferenceException();
}
// Token: 0x06009C8A RID: 40074 RVA: 0x00203990 File Offset: 0x00201B90
[Token(Token = "0x6009C8A")]
[Address(RVA = "0x4117E0", Offset = "0x4107E0", VA = "0x1804117E0")]
internal int inflateSetDictionary(ZStream z, byte[] dictionary, int dictLength)
{
if (z != 0)
{
Inflate istate = z.istate;
if (istate != 0 && istate.mode == 6)
{
Adler32 adler = z._adler;
int num = 0;
uint num2;
if (adler.adler32((long)num2, dictionary, num, dictLength) == z.adler)
{
Adler32 adler2 = z._adler;
Inflate istate2 = z.istate;
long num3;
z.adler = num3;
uint num4 = num2 - 1U;
istate2.blocks.set_dictionary(dictionary, dictLength, (int)num4);
z.istate.mode = (int)((ulong)7L);
return 0;
}
}
}
throw new NullReferenceException();
}
// Token: 0x06009C8B RID: 40075 RVA: 0x00203A18 File Offset: 0x00201C18
[Token(Token = "0x6009C8B")]
[Address(RVA = "0x411950", Offset = "0x410950", VA = "0x180411950")]
internal int inflateSync(ZStream z)
{
if (z != 0)
{
Inflate istate = z.istate;
if (istate != 0)
{
if (istate.mode != 13)
{
istate.mode = (int)((ulong)13L);
z.istate.marker = (int)((ulong)0L);
}
int avail_in = z.avail_in;
if (avail_in != 0)
{
Inflate istate2 = z.istate;
int num = z.next_in_index;
int num2 = istate2.marker;
int num4;
if (num2 < 4)
{
byte b = z.next_in[num];
byte[] array = Inflate.mark;
byte[] next_in = z.next_in;
if ("{il2cpp array field local11->}" == (ulong)0L)
{
uint num3;
num3 -= (uint)num2;
}
num4 = 0;
num4++;
num++;
while ("{il2cpp array field local11->}" != (ulong)0L)
{
}
}
Inflate istate3 = z.istate;
z.next_in_index = num;
z.avail_in = avail_in;
istate3.marker = num4;
if (num4 == 4)
{
long total_in = z.total_in;
long total_out = z.total_out;
int num5 = this.inflateReset(z);
Inflate istate4 = z.istate;
z.total_in = total_in;
z.total_out = total_out;
istate4.mode = (int)((ulong)7L);
return 0;
}
}
}
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009C8C RID: 40076 RVA: 0x00203B30 File Offset: 0x00201D30
[Token(Token = "0x6009C8C")]
[Address(RVA = "0x411920", Offset = "0x410920", VA = "0x180411920")]
internal int inflateSyncPoint(ZStream z)
{
if (z != 0)
{
Inflate istate = z.istate;
if (istate != 0)
{
InfBlocks infBlocks = istate.blocks;
if (infBlocks != 0)
{
return infBlocks.sync_point();
}
}
}
return -2;
}
// Token: 0x06009C8D RID: 40077 RVA: 0x00203B60 File Offset: 0x00201D60
[Token(Token = "0x6009C8D")]
[Address(RVA = "0x4115E0", Offset = "0x4105E0", VA = "0x1804115E0")]
public Inflate()
{
long[] array = new long[1];
this.was = array;
base..ctor();
}
// Token: 0x06009C8E RID: 40078 RVA: 0x00203B84 File Offset: 0x00201D84
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C8E")]
[Address(RVA = "0x411550", Offset = "0x410550", VA = "0x180411550")]
static Inflate()
{
byte[] array = new byte[4];
array[0] = (byte)((ulong)255L);
array[0] = (byte)((ulong)255L);
Inflate.mark = array;
}
// Token: 0x0400697F RID: 27007
[Token(Token = "0x400697F")]
private const int MAX_WBITS = 15;
// Token: 0x04006980 RID: 27008
[Token(Token = "0x4006980")]
private const int PRESET_DICT = 32;
// Token: 0x04006981 RID: 27009
[Token(Token = "0x4006981")]
internal const int Z_NO_FLUSH = 0;
// Token: 0x04006982 RID: 27010
[Token(Token = "0x4006982")]
internal const int Z_PARTIAL_FLUSH = 1;
// Token: 0x04006983 RID: 27011
[Token(Token = "0x4006983")]
internal const int Z_SYNC_FLUSH = 2;
// Token: 0x04006984 RID: 27012
[Token(Token = "0x4006984")]
internal const int Z_FULL_FLUSH = 3;
// Token: 0x04006985 RID: 27013
[Token(Token = "0x4006985")]
internal const int Z_FINISH = 4;
// Token: 0x04006986 RID: 27014
[Token(Token = "0x4006986")]
private const int Z_DEFLATED = 8;
// Token: 0x04006987 RID: 27015
[Token(Token = "0x4006987")]
private const int Z_OK = 0;
// Token: 0x04006988 RID: 27016
[Token(Token = "0x4006988")]
private const int Z_STREAM_END = 1;
// Token: 0x04006989 RID: 27017
[Token(Token = "0x4006989")]
private const int Z_NEED_DICT = 2;
// Token: 0x0400698A RID: 27018
[Token(Token = "0x400698A")]
private const int Z_ERRNO = -1;
// Token: 0x0400698B RID: 27019
[Token(Token = "0x400698B")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x0400698C RID: 27020
[Token(Token = "0x400698C")]
private const int Z_DATA_ERROR = -3;
// Token: 0x0400698D RID: 27021
[Token(Token = "0x400698D")]
private const int Z_MEM_ERROR = -4;
// Token: 0x0400698E RID: 27022
[Token(Token = "0x400698E")]
private const int Z_BUF_ERROR = -5;
// Token: 0x0400698F RID: 27023
[Token(Token = "0x400698F")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x04006990 RID: 27024
[Token(Token = "0x4006990")]
private const int METHOD = 0;
// Token: 0x04006991 RID: 27025
[Token(Token = "0x4006991")]
private const int FLAG = 1;
// Token: 0x04006992 RID: 27026
[Token(Token = "0x4006992")]
private const int DICT4 = 2;
// Token: 0x04006993 RID: 27027
[Token(Token = "0x4006993")]
private const int DICT3 = 3;
// Token: 0x04006994 RID: 27028
[Token(Token = "0x4006994")]
private const int DICT2 = 4;
// Token: 0x04006995 RID: 27029
[Token(Token = "0x4006995")]
private const int DICT1 = 5;
// Token: 0x04006996 RID: 27030
[Token(Token = "0x4006996")]
private const int DICT0 = 6;
// Token: 0x04006997 RID: 27031
[Token(Token = "0x4006997")]
private const int BLOCKS = 7;
// Token: 0x04006998 RID: 27032
[Token(Token = "0x4006998")]
private const int CHECK4 = 8;
// Token: 0x04006999 RID: 27033
[Token(Token = "0x4006999")]
private const int CHECK3 = 9;
// Token: 0x0400699A RID: 27034
[Token(Token = "0x400699A")]
private const int CHECK2 = 10;
// Token: 0x0400699B RID: 27035
[Token(Token = "0x400699B")]
private const int CHECK1 = 11;
// Token: 0x0400699C RID: 27036
[Token(Token = "0x400699C")]
private const int DONE = 12;
// Token: 0x0400699D RID: 27037
[Token(Token = "0x400699D")]
private const int BAD = 13;
// Token: 0x0400699E RID: 27038
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400699E")]
internal int mode;
// Token: 0x0400699F RID: 27039
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x400699F")]
internal int method;
// Token: 0x040069A0 RID: 27040
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40069A0")]
internal long[] was;
// Token: 0x040069A1 RID: 27041
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40069A1")]
internal long need;
// Token: 0x040069A2 RID: 27042
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069A2")]
internal int marker;
// Token: 0x040069A3 RID: 27043
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40069A3")]
internal int nowrap;
// Token: 0x040069A4 RID: 27044
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069A4")]
internal int wbits;
// Token: 0x040069A5 RID: 27045
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069A5")]
internal InfBlocks blocks;
// Token: 0x040069A6 RID: 27046
[Token(Token = "0x40069A6")]
private static readonly byte[] mark;
}
}
@@ -0,0 +1,113 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A10 RID: 6672
[Token(Token = "0x2001A10")]
public sealed class JZlib
{
// Token: 0x06009C8F RID: 40079 RVA: 0x00203BC0 File Offset: 0x00201DC0
[Token(Token = "0x6009C8F")]
[Address(RVA = "0x412380", Offset = "0x411380", VA = "0x180412380")]
public static string version()
{
return "1.0.7";
}
// Token: 0x06009C90 RID: 40080 RVA: 0x00203BD4 File Offset: 0x00201DD4
[Token(Token = "0x6009C90")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public JZlib()
{
}
// Token: 0x040069A7 RID: 27047
[Token(Token = "0x40069A7")]
private const string _version = "1.0.7";
// Token: 0x040069A8 RID: 27048
[Token(Token = "0x40069A8")]
public const int Z_NO_COMPRESSION = 0;
// Token: 0x040069A9 RID: 27049
[Token(Token = "0x40069A9")]
public const int Z_BEST_SPEED = 1;
// Token: 0x040069AA RID: 27050
[Token(Token = "0x40069AA")]
public const int Z_BEST_COMPRESSION = 9;
// Token: 0x040069AB RID: 27051
[Token(Token = "0x40069AB")]
public const int Z_DEFAULT_COMPRESSION = -1;
// Token: 0x040069AC RID: 27052
[Token(Token = "0x40069AC")]
public const int Z_FILTERED = 1;
// Token: 0x040069AD RID: 27053
[Token(Token = "0x40069AD")]
public const int Z_HUFFMAN_ONLY = 2;
// Token: 0x040069AE RID: 27054
[Token(Token = "0x40069AE")]
public const int Z_DEFAULT_STRATEGY = 0;
// Token: 0x040069AF RID: 27055
[Token(Token = "0x40069AF")]
public const int Z_NO_FLUSH = 0;
// Token: 0x040069B0 RID: 27056
[Token(Token = "0x40069B0")]
public const int Z_PARTIAL_FLUSH = 1;
// Token: 0x040069B1 RID: 27057
[Token(Token = "0x40069B1")]
public const int Z_SYNC_FLUSH = 2;
// Token: 0x040069B2 RID: 27058
[Token(Token = "0x40069B2")]
public const int Z_FULL_FLUSH = 3;
// Token: 0x040069B3 RID: 27059
[Token(Token = "0x40069B3")]
public const int Z_FINISH = 4;
// Token: 0x040069B4 RID: 27060
[Token(Token = "0x40069B4")]
public const int Z_OK = 0;
// Token: 0x040069B5 RID: 27061
[Token(Token = "0x40069B5")]
public const int Z_STREAM_END = 1;
// Token: 0x040069B6 RID: 27062
[Token(Token = "0x40069B6")]
public const int Z_NEED_DICT = 2;
// Token: 0x040069B7 RID: 27063
[Token(Token = "0x40069B7")]
public const int Z_ERRNO = -1;
// Token: 0x040069B8 RID: 27064
[Token(Token = "0x40069B8")]
public const int Z_STREAM_ERROR = -2;
// Token: 0x040069B9 RID: 27065
[Token(Token = "0x40069B9")]
public const int Z_DATA_ERROR = -3;
// Token: 0x040069BA RID: 27066
[Token(Token = "0x40069BA")]
public const int Z_MEM_ERROR = -4;
// Token: 0x040069BB RID: 27067
[Token(Token = "0x40069BB")]
public const int Z_BUF_ERROR = -5;
// Token: 0x040069BC RID: 27068
[Token(Token = "0x40069BC")]
public const int Z_VERSION_ERROR = -6;
}
}
@@ -0,0 +1,136 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A11 RID: 6673
[Token(Token = "0x2001A11")]
internal sealed class StaticTree
{
// Token: 0x06009C91 RID: 40081 RVA: 0x00203BE8 File Offset: 0x00201DE8
[Token(Token = "0x6009C91")]
[Address(RVA = "0x412D50", Offset = "0x411D50", VA = "0x180412D50")]
internal StaticTree(short[] static_tree, int[] extra_bits, int extra_base, int elems, int max_length)
{
this.elems = 0;
this.static_tree = static_tree;
this.extra_base = extra_base;
this.max_length = 0;
this.extra_bits = extra_bits;
}
// Token: 0x06009C92 RID: 40082 RVA: 0x00203C20 File Offset: 0x00201E20
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009C92")]
[Address(RVA = "0x412B50", Offset = "0x411B50", VA = "0x180412B50")]
static StaticTree()
{
short[] array = new short[576];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.EB6F545AEF284339D25594F900E7A395212460EB).FieldHandle);
StaticTree.static_ltree = array;
short[] array2 = new short[60];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.850D4DC092689E1F0D8A70B6281848B27DEC0014).FieldHandle);
StaticTree.static_dtree = array2;
short[] array3 = StaticTree.static_ltree;
int[] extra_lbits = ZTree.extra_lbits;
StaticTree staticTree;
staticTree.static_tree = array3;
staticTree.extra_bits = extra_lbits;
staticTree.extra_base = (int)((ulong)257L);
staticTree.elems = (int)((ulong)286L);
staticTree.max_length = (int)((ulong)15L);
StaticTree.static_l_desc = staticTree;
short[] array4 = StaticTree.static_dtree;
int[] extra_dbits = ZTree.extra_dbits;
StaticTree staticTree2;
staticTree2.static_tree = array4;
staticTree2.extra_bits = extra_dbits;
staticTree2.extra_base = (int)((ulong)0L);
staticTree2.elems = (int)((ulong)30L);
staticTree2.max_length = (int)((ulong)15L);
StaticTree.static_d_desc = staticTree2;
int[] extra_blbits = ZTree.extra_blbits;
StaticTree staticTree3;
staticTree3.extra_bits = extra_blbits;
staticTree3.static_tree = (ulong)0L;
staticTree3.extra_base = (int)((ulong)0L);
staticTree3.elems = (int)((ulong)19L);
staticTree3.max_length = (int)((ulong)7L);
StaticTree.static_bl_desc = staticTree3;
}
// Token: 0x040069BD RID: 27069
[Token(Token = "0x40069BD")]
private const int MAX_BITS = 15;
// Token: 0x040069BE RID: 27070
[Token(Token = "0x40069BE")]
private const int BL_CODES = 19;
// Token: 0x040069BF RID: 27071
[Token(Token = "0x40069BF")]
private const int D_CODES = 30;
// Token: 0x040069C0 RID: 27072
[Token(Token = "0x40069C0")]
private const int LITERALS = 256;
// Token: 0x040069C1 RID: 27073
[Token(Token = "0x40069C1")]
private const int LENGTH_CODES = 29;
// Token: 0x040069C2 RID: 27074
[Token(Token = "0x40069C2")]
private const int L_CODES = 286;
// Token: 0x040069C3 RID: 27075
[Token(Token = "0x40069C3")]
internal const int MAX_BL_BITS = 7;
// Token: 0x040069C4 RID: 27076
[Token(Token = "0x40069C4")]
internal static readonly short[] static_ltree;
// Token: 0x040069C5 RID: 27077
[Token(Token = "0x40069C5")]
internal static readonly short[] static_dtree;
// Token: 0x040069C6 RID: 27078
[Token(Token = "0x40069C6")]
internal static readonly StaticTree static_l_desc;
// Token: 0x040069C7 RID: 27079
[Token(Token = "0x40069C7")]
internal static readonly StaticTree static_d_desc;
// Token: 0x040069C8 RID: 27080
[Token(Token = "0x40069C8")]
internal static readonly StaticTree static_bl_desc;
// Token: 0x040069C9 RID: 27081
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40069C9")]
internal short[] static_tree;
// Token: 0x040069CA RID: 27082
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40069CA")]
internal int[] extra_bits;
// Token: 0x040069CB RID: 27083
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40069CB")]
internal int extra_base;
// Token: 0x040069CC RID: 27084
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x40069CC")]
internal int elems;
// Token: 0x040069CD RID: 27085
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069CD")]
internal int max_length;
}
}
@@ -0,0 +1,311 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A12 RID: 6674
[Token(Token = "0x2001A12")]
[Obsolete]
public class ZDeflaterOutputStream : Stream
{
// Token: 0x06009C93 RID: 40083 RVA: 0x00203D34 File Offset: 0x00201F34
[Token(Token = "0x6009C93")]
[Address(RVA = "0x424670", Offset = "0x423670", VA = "0x180424670")]
public ZDeflaterOutputStream(Stream outp)
{
}
// Token: 0x06009C94 RID: 40084 RVA: 0x00203D44 File Offset: 0x00201F44
[Token(Token = "0x6009C94")]
[Address(RVA = "0x424520", Offset = "0x423520", VA = "0x180424520")]
public ZDeflaterOutputStream(Stream outp, int level)
{
}
// Token: 0x06009C95 RID: 40085 RVA: 0x00203D54 File Offset: 0x00201F54
[Token(Token = "0x6009C95")]
[Address(RVA = "0x424540", Offset = "0x423540", VA = "0x180424540")]
public ZDeflaterOutputStream(Stream outp, int level, bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
this.z = zstream;
byte[] array = new byte[4192];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
ZStream zstream2 = this.z;
this.outp = outp;
int num = zstream2.deflateInit(level, 15, nowrap);
}
// Token: 0x170018E7 RID: 6375
// (get) Token: 0x06009C96 RID: 40086 RVA: 0x00203DC4 File Offset: 0x00201FC4
[Token(Token = "0x170018E7")]
public override bool CanRead
{
[Token(Token = "0x6009C96")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
get
{
}
}
// Token: 0x170018E8 RID: 6376
// (get) Token: 0x06009C97 RID: 40087 RVA: 0x00203DD4 File Offset: 0x00201FD4
[Token(Token = "0x170018E8")]
public override bool CanSeek
{
[Token(Token = "0x6009C97")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x170018E9 RID: 6377
// (get) Token: 0x06009C98 RID: 40088 RVA: 0x00203DE4 File Offset: 0x00201FE4
[Token(Token = "0x170018E9")]
public override bool CanWrite
{
[Token(Token = "0x6009C98")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "9")]
get
{
return true;
}
}
// Token: 0x170018EA RID: 6378
// (get) Token: 0x06009C99 RID: 40089 RVA: 0x00203DF4 File Offset: 0x00201FF4
[Token(Token = "0x170018EA")]
public override long Length
{
[Token(Token = "0x6009C99")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "10")]
get
{
}
}
// Token: 0x170018EB RID: 6379
// (get) Token: 0x06009C9A RID: 40090 RVA: 0x00203E04 File Offset: 0x00202004
// (set) Token: 0x06009C9B RID: 40091 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x170018EB")]
public override long Position
{
[Token(Token = "0x6009C9A")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "11")]
get
{
}
[Token(Token = "0x6009C9B")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "12")]
set
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x06009C9C RID: 40092 RVA: 0x00203E14 File Offset: 0x00202014
[Token(Token = "0x6009C9C")]
[Address(RVA = "0x424340", Offset = "0x423340", VA = "0x180424340", Slot = "29")]
public override void Write(byte[] b, int off, int len)
{
if (len != 0)
{
this.z.next_in = b;
this.z.next_in_index = off;
this.z.avail_in = len;
ZStream zstream = this.z;
int num = 0;
byte[] array = this.buf;
zstream.next_out = array;
this.z.next_out_index = num;
this.z.avail_out = (int)((ulong)4192L);
ZStream zstream2 = this.z;
Deflate dstate = zstream2.dstate;
if (dstate != 0)
{
int num2 = this.flushLevel;
if (dstate.deflate(zstream2, num2) == 0)
{
ZStream zstream3 = this.z;
int avail_out = zstream3.avail_out;
if (avail_out < 4192)
{
Stream stream = this.outp;
uint num3;
num3 -= (uint)avail_out;
int num4 = stream.ReadByte();
}
if (zstream3.avail_out == num)
{
return;
}
return;
}
}
throw new NullReferenceException();
}
}
// Token: 0x06009C9D RID: 40093 RVA: 0x00203EFC File Offset: 0x002020FC
[Token(Token = "0x6009C9D")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
}
// Token: 0x06009C9E RID: 40094 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009C9E")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "26")]
public override void SetLength(long value)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009C9F RID: 40095 RVA: 0x00203F0C File Offset: 0x0020210C
[Token(Token = "0x6009C9F")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
return 0;
}
// Token: 0x06009CA0 RID: 40096 RVA: 0x00203F1C File Offset: 0x0020211C
[Token(Token = "0x6009CA0")]
[Address(RVA = "0x424290", Offset = "0x423290", VA = "0x180424290", Slot = "17")]
public override void Flush()
{
bool canRead = this.outp.CanRead;
}
// Token: 0x06009CA1 RID: 40097 RVA: 0x00203F3C File Offset: 0x0020213C
[Token(Token = "0x6009CA1")]
[Address(RVA = "0x4242E0", Offset = "0x4232E0", VA = "0x1804242E0", Slot = "30")]
public override void WriteByte(byte b)
{
this.buf1[0] = b;
int num = this.ReadByte();
}
// Token: 0x06009CA2 RID: 40098 RVA: 0x00203F64 File Offset: 0x00202164
[Token(Token = "0x6009CA2")]
[Address(RVA = "0x4240E0", Offset = "0x4230E0", VA = "0x1804240E0")]
public void Finish()
{
ZStream zstream = this.z;
int num = 0;
byte[] array = this.buf;
zstream.next_out = array;
this.z.next_out_index = num;
this.z.avail_out = (int)((ulong)4192L);
ZStream zstream2 = this.z;
Deflate dstate = zstream2.dstate;
if (dstate != 0 && dstate.deflate(zstream2, 4) <= 1)
{
ZStream zstream3 = this.z;
uint num2;
if (num2 > (uint)0)
{
int num3 = this.outp.ReadByte();
}
if (zstream3.avail_out == num)
{
}
((IDisposable)this).Dispose();
return;
}
throw new NullReferenceException();
}
// Token: 0x06009CA3 RID: 40099 RVA: 0x00204000 File Offset: 0x00202200
[Token(Token = "0x6009CA3")]
[Address(RVA = "0x424070", Offset = "0x423070", VA = "0x180424070")]
public void End()
{
ZStream zstream = this.z;
if (zstream != 0)
{
Deflate dstate = zstream.dstate;
int num = 0;
if (dstate != 0)
{
int num2 = dstate.deflateEnd();
zstream.dstate = num;
}
zstream.next_in = num;
zstream.next_out = num;
zstream.msg = num;
zstream._adler = num;
this.z = num;
}
}
// Token: 0x06009CA4 RID: 40100 RVA: 0x0020405C File Offset: 0x0020225C
[Token(Token = "0x6009CA4")]
[Address(RVA = "0x423F40", Offset = "0x422F40", VA = "0x180423F40", Slot = "15")]
public override void Close()
{
int num;
do
{
this.Finish();
num = 0;
int num2 = 0;
ZStream zstream = this.z;
if (zstream != 0)
{
Deflate dstate = zstream.dstate;
if (dstate != 0)
{
int num3 = dstate.deflateEnd();
zstream.dstate = num2;
}
zstream.next_in = num2;
zstream.next_out = num2;
zstream.msg = num2;
zstream._adler = num2;
this.z = num2;
}
Platform.Dispose(this.outp);
this.outp = num2;
}
while (num != 0);
base.Close();
}
// Token: 0x040069CE RID: 27086
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069CE")]
protected ZStream z;
// Token: 0x040069CF RID: 27087
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069CF")]
protected int flushLevel;
// Token: 0x040069D0 RID: 27088
[Token(Token = "0x40069D0")]
private const int BUFSIZE = 4192;
// Token: 0x040069D1 RID: 27089
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069D1")]
protected byte[] buf;
// Token: 0x040069D2 RID: 27090
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40069D2")]
private byte[] buf1;
// Token: 0x040069D3 RID: 27091
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40069D3")]
protected Stream outp;
}
}
@@ -0,0 +1,266 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A13 RID: 6675
[Token(Token = "0x2001A13")]
[Obsolete]
public class ZInflaterInputStream : Stream
{
// Token: 0x06009CA5 RID: 40101 RVA: 0x002040D8 File Offset: 0x002022D8
[Token(Token = "0x6009CA5")]
[Address(RVA = "0x424990", Offset = "0x423990", VA = "0x180424990")]
public ZInflaterInputStream(Stream inp)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
this.z = zstream;
byte[] array = new byte[4192];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
ZStream zstream2 = this.z;
this.inp = inp;
int num = 0;
int num2 = zstream2.inflateInit(15, num != 0);
ZStream zstream3 = this.z;
byte[] array3 = this.buf;
zstream3.next_in = array3;
ZStream zstream4 = this.z;
int num3 = 0;
zstream4.next_in_index = num3;
this.z.avail_in = num3;
}
// Token: 0x06009CA6 RID: 40102 RVA: 0x00204184 File Offset: 0x00202384
[Token(Token = "0x6009CA6")]
[Address(RVA = "0x424AD0", Offset = "0x423AD0", VA = "0x180424AD0")]
public ZInflaterInputStream(Stream inp, bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
this.z = zstream;
byte[] array = new byte[4192];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
ZStream zstream2 = this.z;
this.inp = inp;
int num = zstream2.inflateInit(15, nowrap);
ZStream zstream3 = this.z;
byte[] array3 = this.buf;
zstream3.next_in = array3;
ZStream zstream4 = this.z;
int num2 = 0;
zstream4.next_in_index = num2;
this.z.avail_in = num2;
}
// Token: 0x170018EC RID: 6380
// (get) Token: 0x06009CA7 RID: 40103 RVA: 0x0020422C File Offset: 0x0020242C
[Token(Token = "0x170018EC")]
public override bool CanRead
{
[Token(Token = "0x6009CA7")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "7")]
get
{
return true;
}
}
// Token: 0x170018ED RID: 6381
// (get) Token: 0x06009CA8 RID: 40104 RVA: 0x0020423C File Offset: 0x0020243C
[Token(Token = "0x170018ED")]
public override bool CanSeek
{
[Token(Token = "0x6009CA8")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x170018EE RID: 6382
// (get) Token: 0x06009CA9 RID: 40105 RVA: 0x0020424C File Offset: 0x0020244C
[Token(Token = "0x170018EE")]
public override bool CanWrite
{
[Token(Token = "0x6009CA9")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
}
}
// Token: 0x170018EF RID: 6383
// (get) Token: 0x06009CAA RID: 40106 RVA: 0x0020425C File Offset: 0x0020245C
[Token(Token = "0x170018EF")]
public override long Length
{
[Token(Token = "0x6009CAA")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "10")]
get
{
}
}
// Token: 0x170018F0 RID: 6384
// (get) Token: 0x06009CAB RID: 40107 RVA: 0x0020426C File Offset: 0x0020246C
// (set) Token: 0x06009CAC RID: 40108 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x170018F0")]
public override long Position
{
[Token(Token = "0x6009CAB")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "11")]
get
{
}
[Token(Token = "0x6009CAC")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "12")]
set
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x06009CAD RID: 40109 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009CAD")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "29")]
public override void Write(byte[] b, int off, int len)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009CAE RID: 40110 RVA: 0x0020427C File Offset: 0x0020247C
[Token(Token = "0x6009CAE")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
}
// Token: 0x06009CAF RID: 40111 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009CAF")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "26")]
public override void SetLength(long value)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009CB0 RID: 40112 RVA: 0x0020428C File Offset: 0x0020248C
[Token(Token = "0x6009CB0")]
[Address(RVA = "0x424790", Offset = "0x423790", VA = "0x180424790", Slot = "27")]
public override int Read(byte[] b, int off, int len)
{
if (len != 0)
{
this.z.next_out = b;
this.z.next_out_index = off;
this.z.avail_out = len;
ZStream zstream = this.z;
int num = 0;
if (zstream.avail_in == num && (this.nomoreinput ? 1 : 0) == num)
{
zstream.next_in_index = num;
Stream stream = this.inp;
ZStream zstream2 = this.z;
this.z.avail_in = num;
this.nomoreinput = true;
}
Inflate istate = zstream.istate;
if (istate != 0)
{
int num2 = this.flushLevel;
int num3 = istate.inflate(zstream, num2);
}
bool flag = this.nomoreinput;
uint num4;
if (!flag || num4 != (uint)(-5))
{
if (num4 > (uint)1)
{
throw new NullReferenceException();
}
if (((flag || num4 == (uint)1) && this.z.avail_out == len) || this.z.avail_out != len || num4 == (uint)0)
{
}
}
}
return 0;
}
// Token: 0x06009CB1 RID: 40113 RVA: 0x00204388 File Offset: 0x00202588
[Token(Token = "0x6009CB1")]
[Address(RVA = "0x424290", Offset = "0x423290", VA = "0x180424290", Slot = "17")]
public override void Flush()
{
bool canRead = this.inp.CanRead;
}
// Token: 0x06009CB2 RID: 40114 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009CB2")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "30")]
public override void WriteByte(byte b)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009CB3 RID: 40115 RVA: 0x002043A8 File Offset: 0x002025A8
[Token(Token = "0x6009CB3")]
[Address(RVA = "0x4246B0", Offset = "0x4236B0", VA = "0x1804246B0", Slot = "15")]
public override void Close()
{
Platform.Dispose(this.inp);
base.Close();
}
// Token: 0x06009CB4 RID: 40116 RVA: 0x002043C8 File Offset: 0x002025C8
[Token(Token = "0x6009CB4")]
[Address(RVA = "0x424720", Offset = "0x423720", VA = "0x180424720", Slot = "28")]
public override int ReadByte()
{
byte b = this.buf1[0];
return -1;
}
// Token: 0x040069D4 RID: 27092
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069D4")]
protected ZStream z;
// Token: 0x040069D5 RID: 27093
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069D5")]
protected int flushLevel;
// Token: 0x040069D6 RID: 27094
[Token(Token = "0x40069D6")]
private const int BUFSIZE = 4192;
// Token: 0x040069D7 RID: 27095
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069D7")]
protected byte[] buf;
// Token: 0x040069D8 RID: 27096
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40069D8")]
private byte[] buf1;
// Token: 0x040069D9 RID: 27097
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40069D9")]
protected Stream inp;
// Token: 0x040069DA RID: 27098
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40069DA")]
private bool nomoreinput;
}
}
@@ -0,0 +1,547 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A14 RID: 6676
[Token(Token = "0x2001A14")]
public class ZInputStream : Stream
{
// Token: 0x06009CB5 RID: 40117 RVA: 0x002043EC File Offset: 0x002025EC
[Token(Token = "0x6009CB5")]
[Address(RVA = "0x424CA0", Offset = "0x423CA0", VA = "0x180424CA0")]
private static ZStream GetDefaultZStream(bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = zstream.inflateInit(15, nowrap);
return zstream;
}
// Token: 0x06009CB6 RID: 40118 RVA: 0x00204418 File Offset: 0x00202618
[Token(Token = "0x6009CB6")]
[Address(RVA = "0x425630", Offset = "0x424630", VA = "0x180425630")]
public ZInputStream(Stream input)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = 0;
int num2 = zstream.inflateInit(15, num != 0);
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
{
int num3 = 0;
int num4 = zstream.inflateInit(15, num3 != 0);
}
this.input = input;
this.z = zstream;
bool flag = zstream.istate == (ulong)0L;
this.compress = flag;
byte[] array3 = this.buf;
zstream.next_in = array3;
ZStream zstream2 = this.z;
int num5 = 0;
zstream2.next_in_index = num5;
this.z.avail_in = num5;
}
// Token: 0x06009CB7 RID: 40119 RVA: 0x002044F0 File Offset: 0x002026F0
[Token(Token = "0x6009CB7")]
[Address(RVA = "0x4254A0", Offset = "0x4244A0", VA = "0x1804254A0")]
public ZInputStream(Stream input, bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = zstream.inflateInit(15, nowrap);
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
{
int num2 = 0;
int num3 = zstream.inflateInit(15, num2 != 0);
}
this.input = input;
this.z = zstream;
bool flag = zstream.istate == (ulong)0L;
this.compress = flag;
byte[] array3 = this.buf;
zstream.next_in = array3;
ZStream zstream2 = this.z;
int num4 = 0;
zstream2.next_in_index = num4;
this.z.avail_in = num4;
}
// Token: 0x06009CB8 RID: 40120 RVA: 0x002045C4 File Offset: 0x002027C4
[Token(Token = "0x6009CB8")]
[Address(RVA = "0x425090", Offset = "0x424090", VA = "0x180425090")]
public ZInputStream(Stream input, ZStream z)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (z == 0)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
}
if (z.istate == (ulong)0L && z.dstate == (ulong)0L)
{
int num = 0;
int num2 = z.inflateInit(15, num != 0);
}
this.input = input;
bool flag = z.istate == (ulong)0L;
this.z = z;
this.compress = flag;
byte[] array3 = this.buf;
z.next_in = array3;
ZStream zstream2 = this.z;
int num3 = 0;
zstream2.next_in_index = num3;
this.z.avail_in = num3;
}
// Token: 0x06009CB9 RID: 40121 RVA: 0x00204690 File Offset: 0x00202890
[Token(Token = "0x6009CB9")]
[Address(RVA = "0x4251F0", Offset = "0x4241F0", VA = "0x1804251F0")]
public ZInputStream(Stream input, int level)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
this.input = input;
this.compress = true;
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = 0;
this.z = zstream;
int num2 = 0;
int num3 = zstream.deflateInit(level, 15, num2 != 0);
ZStream zstream2 = this.z;
byte[] array3 = this.buf;
zstream2.next_in = array3;
this.z.next_in_index = num;
this.z.avail_in = num;
}
// Token: 0x06009CBA RID: 40122 RVA: 0x00204738 File Offset: 0x00202938
[Token(Token = "0x6009CBA")]
[Address(RVA = "0x425340", Offset = "0x424340", VA = "0x180425340")]
public ZInputStream(Stream input, int level, bool nowrap)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
this.input = input;
this.compress = true;
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = 0;
this.z = zstream;
int num2 = zstream.deflateInit(level, 15, nowrap);
ZStream zstream2 = this.z;
byte[] array3 = this.buf;
zstream2.next_in = array3;
this.z.next_in_index = num;
this.z.avail_in = num;
}
// Token: 0x170018F1 RID: 6385
// (get) Token: 0x06009CBB RID: 40123 RVA: 0x002047DC File Offset: 0x002029DC
[Token(Token = "0x170018F1")]
public sealed override bool CanRead
{
[Token(Token = "0x6009CBB")]
[Address(RVA = "0x4257B0", Offset = "0x4247B0", VA = "0x1804257B0", Slot = "7")]
get
{
return !this.closed;
}
}
// Token: 0x170018F2 RID: 6386
// (get) Token: 0x06009CBC RID: 40124 RVA: 0x002047F4 File Offset: 0x002029F4
[Token(Token = "0x170018F2")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009CBC")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x170018F3 RID: 6387
// (get) Token: 0x06009CBD RID: 40125 RVA: 0x00204804 File Offset: 0x00202A04
[Token(Token = "0x170018F3")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009CBD")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
}
}
// Token: 0x06009CBE RID: 40126 RVA: 0x00204814 File Offset: 0x00202A14
[Token(Token = "0x6009CBE")]
[Address(RVA = "0x424C20", Offset = "0x423C20", VA = "0x180424C20", Slot = "15")]
public override void Close()
{
if (!this.closed)
{
Stream stream = this.input;
this.closed = true;
Platform.Dispose(stream);
base.Close();
}
}
// Token: 0x06009CBF RID: 40127 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009CBF")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
public sealed override void Flush()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x170018F4 RID: 6388
// (get) Token: 0x06009CC0 RID: 40128 RVA: 0x00204844 File Offset: 0x00202A44
// (set) Token: 0x06009CC1 RID: 40129 RVA: 0x00204858 File Offset: 0x00202A58
[Token(Token = "0x170018F4")]
public virtual int FlushMode
{
[Token(Token = "0x6009CC0")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0", Slot = "31")]
get
{
return this.flushLevel;
}
[Token(Token = "0x6009CC1")]
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0", Slot = "32")]
set
{
this.flushLevel = value;
}
}
// Token: 0x170018F5 RID: 6389
// (get) Token: 0x06009CC2 RID: 40130 RVA: 0x0020486C File Offset: 0x00202A6C
[Token(Token = "0x170018F5")]
public sealed override long Length
{
[Token(Token = "0x6009CC2")]
[Address(RVA = "0x4257D0", Offset = "0x4247D0", VA = "0x1804257D0", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (06009CC2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x170018F6 RID: 6390
// (get) Token: 0x06009CC3 RID: 40131 RVA: 0x00204880 File Offset: 0x00202A80
// (set) Token: 0x06009CC4 RID: 40132 RVA: 0x00204894 File Offset: 0x00202A94
[Token(Token = "0x170018F6")]
public sealed override long Position
{
[Token(Token = "0x6009CC3")]
[Address(RVA = "0x425820", Offset = "0x424820", VA = "0x180425820", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009CC3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::get_Position()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
[Token(Token = "0x6009CC4")]
[Address(RVA = "0x4258C0", Offset = "0x4248C0", VA = "0x1804258C0", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009CC4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009CC5 RID: 40133 RVA: 0x002048A8 File Offset: 0x00202AA8
[Token(Token = "0x6009CC5")]
[Address(RVA = "0x424D50", Offset = "0x423D50", VA = "0x180424D50", Slot = "27")]
public override int Read(byte[] b, int off, int len)
{
if (len != 0)
{
this.z.next_out = b;
this.z.next_out_index = off;
this.z.avail_out = len;
ZStream zstream = this.z;
int num = 0;
if (zstream.avail_in == num && (this.nomoreinput ? 1 : 0) == num)
{
zstream.next_in_index = num;
byte[] array = this.buf;
ZStream zstream2 = this.z;
Stream stream = this.input;
this.z.avail_in = num;
this.nomoreinput = true;
}
if ((this.compress ? 1 : 0) != num)
{
Deflate dstate = zstream.dstate;
if (dstate == 0)
{
goto IL_C1;
}
int num2 = this.flushLevel;
int num3 = dstate.deflate(zstream, num2);
}
Inflate istate = zstream.istate;
if (istate != 0)
{
int num4 = this.flushLevel;
int num5 = istate.inflate(zstream, num4);
}
IL_C1:
bool flag = this.nomoreinput;
uint num6;
if (!flag || num6 != (uint)(-5))
{
if (num6 > (uint)1)
{
throw new NullReferenceException();
}
if (((flag || num6 == (uint)1) && this.z.avail_out == len) || this.z.avail_out != len || num6 == (uint)0)
{
}
}
}
return 0;
}
// Token: 0x06009CC6 RID: 40134 RVA: 0x002049D4 File Offset: 0x00202BD4
[Token(Token = "0x6009CC6")]
[Address(RVA = "0x424720", Offset = "0x423720", VA = "0x180424720", Slot = "28")]
public override int ReadByte()
{
byte b = this.buf1[0];
return -1;
}
// Token: 0x06009CC7 RID: 40135 RVA: 0x002049F8 File Offset: 0x00202BF8
[Token(Token = "0x6009CC7")]
[Address(RVA = "0x424FA0", Offset = "0x423FA0", VA = "0x180424FA0", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009CC7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009CC8 RID: 40136 RVA: 0x00204A0C File Offset: 0x00202C0C
[Token(Token = "0x6009CC8")]
[Address(RVA = "0x424FF0", Offset = "0x423FF0", VA = "0x180424FF0", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009CC8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::SetLength(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x170018F7 RID: 6391
// (get) Token: 0x06009CC9 RID: 40137 RVA: 0x00204A20 File Offset: 0x00202C20
[Token(Token = "0x170018F7")]
public virtual long TotalIn
{
[Token(Token = "0x6009CC9")]
[Address(RVA = "0x425870", Offset = "0x424870", VA = "0x180425870", Slot = "33")]
get
{
return this.z.total_in;
}
}
// Token: 0x170018F8 RID: 6392
// (get) Token: 0x06009CCA RID: 40138 RVA: 0x00204A40 File Offset: 0x00202C40
[Token(Token = "0x170018F8")]
public virtual long TotalOut
{
[Token(Token = "0x6009CCA")]
[Address(RVA = "0x425890", Offset = "0x424890", VA = "0x180425890", Slot = "34")]
get
{
return this.z.total_out;
}
}
// Token: 0x06009CCB RID: 40139 RVA: 0x00204A60 File Offset: 0x00202C60
[Token(Token = "0x6009CCB")]
[Address(RVA = "0x425040", Offset = "0x424040", VA = "0x180425040", Slot = "29")]
public sealed override void Write(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009CCB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZInputStream::Write(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x040069DB RID: 27099
[Token(Token = "0x40069DB")]
private const int BufferSize = 512;
// Token: 0x040069DC RID: 27100
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069DC")]
protected ZStream z;
// Token: 0x040069DD RID: 27101
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069DD")]
protected int flushLevel;
// Token: 0x040069DE RID: 27102
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069DE")]
protected byte[] buf;
// Token: 0x040069DF RID: 27103
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40069DF")]
protected byte[] buf1;
// Token: 0x040069E0 RID: 27104
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40069E0")]
protected bool compress;
// Token: 0x040069E1 RID: 27105
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40069E1")]
protected Stream input;
// Token: 0x040069E2 RID: 27106
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40069E2")]
protected bool closed;
// Token: 0x040069E3 RID: 27107
[FieldOffset(Offset = "0x59")]
[Token(Token = "0x40069E3")]
private bool nomoreinput;
}
}
@@ -0,0 +1,631 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A15 RID: 6677
[Token(Token = "0x2001A15")]
public class ZOutputStream : Stream
{
// Token: 0x06009CCC RID: 40140 RVA: 0x00204A74 File Offset: 0x00202C74
[Token(Token = "0x6009CCC")]
[Address(RVA = "0x425D10", Offset = "0x424D10", VA = "0x180425D10")]
private static ZStream GetDefaultZStream(bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = zstream.inflateInit(15, nowrap);
return zstream;
}
// Token: 0x06009CCD RID: 40141 RVA: 0x00204AA0 File Offset: 0x00202CA0
[Token(Token = "0x6009CCD")]
[Address(RVA = "0x4261F0", Offset = "0x4251F0", VA = "0x1804261F0")]
public ZOutputStream(Stream output)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = 0;
int num2 = zstream.inflateInit(15, num != 0);
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
{
int num3 = 0;
int num4 = zstream.inflateInit(15, num3 != 0);
}
this.output = output;
bool flag = zstream.istate == (ulong)0L;
this.z = zstream;
this.compress = flag;
}
// Token: 0x06009CCE RID: 40142 RVA: 0x00204B40 File Offset: 0x00202D40
[Token(Token = "0x6009CCE")]
[Address(RVA = "0x426340", Offset = "0x425340", VA = "0x180426340")]
public ZOutputStream(Stream output, bool nowrap)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = zstream.inflateInit(15, nowrap);
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (zstream.istate == (ulong)0L && zstream.dstate == (ulong)0L)
{
int num2 = 0;
int num3 = zstream.inflateInit(15, num2 != 0);
}
this.output = output;
this.z = zstream;
bool flag = zstream.istate == (ulong)0L;
this.compress = flag;
}
// Token: 0x06009CCF RID: 40143 RVA: 0x00204BDC File Offset: 0x00202DDC
[Token(Token = "0x6009CCF")]
[Address(RVA = "0x4260C0", Offset = "0x4250C0", VA = "0x1804260C0")]
public ZOutputStream(Stream output, ZStream z)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
if (z == 0)
{
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
}
if (z.istate == (ulong)0L && z.dstate == (ulong)0L)
{
int num = 0;
int num2 = z.inflateInit(15, num != 0);
}
this.output = output;
bool flag = z.istate == (ulong)0L;
this.z = z;
this.compress = flag;
}
// Token: 0x06009CD0 RID: 40144 RVA: 0x00204C70 File Offset: 0x00202E70
[Token(Token = "0x6009CD0")]
[Address(RVA = "0x4264A0", Offset = "0x4254A0", VA = "0x1804264A0")]
public ZOutputStream(Stream output, int level)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
this.output = output;
this.compress = true;
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
int num = 0;
this.z = zstream;
int num2 = zstream.deflateInit(level, 15, num != 0);
}
// Token: 0x06009CD1 RID: 40145 RVA: 0x00204CDC File Offset: 0x00202EDC
[Token(Token = "0x6009CD1")]
[Address(RVA = "0x4265C0", Offset = "0x4255C0", VA = "0x1804265C0")]
public ZOutputStream(Stream output, int level, bool nowrap)
{
byte[] array = new byte[512];
this.buf = array;
byte[] array2 = new byte[1];
this.buf1 = array2;
base..ctor();
this.output = output;
this.compress = true;
ZStream zstream = new ZStream();
Adler32 adler = new Adler32();
zstream._adler = adler;
this.z = zstream;
int num = zstream.deflateInit(level, 15, nowrap);
}
// Token: 0x170018F9 RID: 6393
// (get) Token: 0x06009CD2 RID: 40146 RVA: 0x00204D44 File Offset: 0x00202F44
[Token(Token = "0x170018F9")]
public sealed override bool CanRead
{
[Token(Token = "0x6009CD2")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
get
{
}
}
// Token: 0x170018FA RID: 6394
// (get) Token: 0x06009CD3 RID: 40147 RVA: 0x00204D54 File Offset: 0x00202F54
[Token(Token = "0x170018FA")]
public sealed override bool CanSeek
{
[Token(Token = "0x6009CD3")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
}
}
// Token: 0x170018FB RID: 6395
// (get) Token: 0x06009CD4 RID: 40148 RVA: 0x00204D64 File Offset: 0x00202F64
[Token(Token = "0x170018FB")]
public sealed override bool CanWrite
{
[Token(Token = "0x6009CD4")]
[Address(RVA = "0x4257B0", Offset = "0x4247B0", VA = "0x1804257B0", Slot = "9")]
get
{
return !this.closed;
}
}
// Token: 0x06009CD5 RID: 40149 RVA: 0x00204D7C File Offset: 0x00202F7C
[Token(Token = "0x6009CD5")]
[Address(RVA = "0x425910", Offset = "0x424910", VA = "0x180425910", Slot = "15")]
public override void Close()
{
if (!this.closed)
{
this.DoClose();
base.Close();
return;
}
}
// Token: 0x06009CD6 RID: 40150 RVA: 0x00204DA0 File Offset: 0x00202FA0
[Token(Token = "0x6009CD6")]
[Address(RVA = "0x425940", Offset = "0x424940", VA = "0x180425940")]
private void DoClose()
{
int num;
do
{
num = 0;
this.End();
this.closed = true;
Platform.Dispose(this.output);
this.output = (ulong)0L;
}
while (num != 0);
}
// Token: 0x06009CD7 RID: 40151 RVA: 0x00204DD4 File Offset: 0x00202FD4
[Token(Token = "0x6009CD7")]
[Address(RVA = "0x425A50", Offset = "0x424A50", VA = "0x180425A50", Slot = "31")]
public virtual void End()
{
ZStream zstream = this.z;
if (zstream != 0)
{
int num = 0;
if ((this.compress ? 1 : 0) == num)
{
Inflate istate = zstream.istate;
if (istate == 0)
{
goto IL_61;
}
InfBlocks blocks = istate.blocks;
if (blocks != 0)
{
blocks.free(zstream);
}
istate.blocks = num;
zstream.istate = num;
}
Deflate dstate = zstream.dstate;
if (dstate != 0)
{
int num2 = dstate.deflateEnd();
zstream.dstate = num;
}
IL_61:
ZStream zstream2 = this.z;
zstream2.next_in = num;
zstream2.next_out = num;
zstream2.msg = num;
zstream2._adler = num;
this.z = num;
}
}
// Token: 0x06009CD8 RID: 40152 RVA: 0x00204E78 File Offset: 0x00203078
[Token(Token = "0x6009CD8")]
[Address(RVA = "0x425AF0", Offset = "0x424AF0", VA = "0x180425AF0", Slot = "32")]
public virtual void Finish()
{
int num;
for (;;)
{
ZStream zstream = this.z;
num = 0;
byte[] array = this.buf;
zstream.next_out = array;
this.z.next_out_index = num;
byte[] array2 = this.buf;
ZStream zstream2 = this.z;
int length = array2.Length;
zstream2.avail_out = length;
ZStream zstream3 = this.z;
if ((this.compress ? 1 : 0) == num)
{
goto IL_6E;
}
Deflate dstate = zstream3.dstate;
if (dstate != 0)
{
int num2 = dstate.deflate(zstream3, 4);
goto IL_6E;
}
IL_88:
uint num3;
if (num3 > (uint)1)
{
goto IL_CD;
}
byte[] array3 = this.buf;
ZStream zstream4 = this.z;
if (array3.Length > 0)
{
break;
}
continue;
IL_6E:
Inflate istate = zstream3.istate;
if (istate != 0)
{
int num4 = istate.inflate(zstream3, 4);
goto IL_88;
}
goto IL_88;
}
int num5 = this.output.ReadByte();
if (this.z.avail_out == num)
{
}
((IDisposable)this).Dispose();
return;
IL_CD:
if (this.compress)
{
}
throw new NullReferenceException();
}
// Token: 0x06009CD9 RID: 40153 RVA: 0x00204F78 File Offset: 0x00203178
[Token(Token = "0x6009CD9")]
[Address(RVA = "0x425CE0", Offset = "0x424CE0", VA = "0x180425CE0", Slot = "17")]
public override void Flush()
{
bool canRead = this.output.CanRead;
}
// Token: 0x170018FC RID: 6396
// (get) Token: 0x06009CDA RID: 40154 RVA: 0x00204F98 File Offset: 0x00203198
// (set) Token: 0x06009CDB RID: 40155 RVA: 0x00204FAC File Offset: 0x002031AC
[Token(Token = "0x170018FC")]
public virtual int FlushMode
{
[Token(Token = "0x6009CDA")]
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0", Slot = "33")]
get
{
return this.flushLevel;
}
[Token(Token = "0x6009CDB")]
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0", Slot = "34")]
set
{
this.flushLevel = value;
}
}
// Token: 0x170018FD RID: 6397
// (get) Token: 0x06009CDC RID: 40156 RVA: 0x00204FC0 File Offset: 0x002031C0
[Token(Token = "0x170018FD")]
public sealed override long Length
{
[Token(Token = "0x6009CDC")]
[Address(RVA = "0x4266F0", Offset = "0x4256F0", VA = "0x1804266F0", Slot = "10")]
get
{
/*
An exception occurred when decompiling this method (06009CDC)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::get_Length()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x170018FE RID: 6398
// (get) Token: 0x06009CDD RID: 40157 RVA: 0x00204FD4 File Offset: 0x002031D4
// (set) Token: 0x06009CDE RID: 40158 RVA: 0x00204FE8 File Offset: 0x002031E8
[Token(Token = "0x170018FE")]
public sealed override long Position
{
[Token(Token = "0x6009CDD")]
[Address(RVA = "0x426740", Offset = "0x425740", VA = "0x180426740", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009CDD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::get_Position()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
[Token(Token = "0x6009CDE")]
[Address(RVA = "0x426790", Offset = "0x425790", VA = "0x180426790", Slot = "12")]
set
{
/*
An exception occurred when decompiling this method (06009CDE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::set_Position(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x06009CDF RID: 40159 RVA: 0x00204FFC File Offset: 0x002031FC
[Token(Token = "0x6009CDF")]
[Address(RVA = "0x425DC0", Offset = "0x424DC0", VA = "0x180425DC0", Slot = "27")]
public sealed override int Read(byte[] buffer, int offset, int count)
{
/*
An exception occurred when decompiling this method (06009CDF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::Read(System.Byte[],System.Int32,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009CE0 RID: 40160 RVA: 0x00205010 File Offset: 0x00203210
[Token(Token = "0x6009CE0")]
[Address(RVA = "0x425E10", Offset = "0x424E10", VA = "0x180425E10", Slot = "25")]
public sealed override long Seek(long offset, SeekOrigin origin)
{
/*
An exception occurred when decompiling this method (06009CE0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::Seek(System.Int64,System.IO.SeekOrigin)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06009CE1 RID: 40161 RVA: 0x00205024 File Offset: 0x00203224
[Token(Token = "0x6009CE1")]
[Address(RVA = "0x425E60", Offset = "0x424E60", VA = "0x180425E60", Slot = "26")]
public sealed override void SetLength(long value)
{
/*
An exception occurred when decompiling this method (06009CE1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib.ZOutputStream::SetLength(System.Int64)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:NotSupportedException(var_0_05, newobj:NotSupportedException(NotSupportedException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x170018FF RID: 6399
// (get) Token: 0x06009CE2 RID: 40162 RVA: 0x00205038 File Offset: 0x00203238
[Token(Token = "0x170018FF")]
public virtual long TotalIn
{
[Token(Token = "0x6009CE2")]
[Address(RVA = "0x425870", Offset = "0x424870", VA = "0x180425870", Slot = "35")]
get
{
return this.z.total_in;
}
}
// Token: 0x17001900 RID: 6400
// (get) Token: 0x06009CE3 RID: 40163 RVA: 0x00205058 File Offset: 0x00203258
[Token(Token = "0x17001900")]
public virtual long TotalOut
{
[Token(Token = "0x6009CE3")]
[Address(RVA = "0x425890", Offset = "0x424890", VA = "0x180425890", Slot = "36")]
get
{
return this.z.total_out;
}
}
// Token: 0x06009CE4 RID: 40164 RVA: 0x00205078 File Offset: 0x00203278
[Token(Token = "0x6009CE4")]
[Address(RVA = "0x425EB0", Offset = "0x424EB0", VA = "0x180425EB0", Slot = "29")]
public override void Write(byte[] b, int off, int len)
{
if (len != 0)
{
this.z.next_in = b;
this.z.next_in_index = off;
this.z.avail_in = len;
ZStream zstream = this.z;
int num = 0;
byte[] array = this.buf;
zstream.next_out = array;
this.z.next_out_index = num;
byte[] array2 = this.buf;
ZStream zstream2 = this.z;
int length = array2.Length;
zstream2.avail_out = length;
ZStream zstream3 = this.z;
if ((this.compress ? 1 : 0) != num)
{
Deflate dstate = zstream3.dstate;
if (dstate == 0)
{
goto IL_C5;
}
int num2 = this.flushLevel;
int num3 = dstate.deflate(zstream3, num2);
}
Inflate istate = zstream3.istate;
if (istate != 0)
{
int num4 = this.flushLevel;
int num5 = istate.inflate(zstream3, num4);
}
IL_C5:
uint num6;
if (num6 != (uint)0)
{
if ("{il2cpp field on {'constant25' (constant value of type Cpp2IL.Core.Analysis.ResultModels.StackPointer)}, offset 0x48}" != (ulong)0L)
{
}
throw new NullReferenceException();
}
byte[] array3 = this.buf;
ZStream zstream4 = this.z;
int num7 = this.output.ReadByte();
if (this.z.avail_out == num)
{
}
}
}
// Token: 0x06009CE5 RID: 40165 RVA: 0x002051AC File Offset: 0x002033AC
[Token(Token = "0x6009CE5")]
[Address(RVA = "0x4242E0", Offset = "0x4232E0", VA = "0x1804242E0", Slot = "30")]
public override void WriteByte(byte b)
{
this.buf1[0] = b;
int num = this.ReadByte();
}
// Token: 0x040069E4 RID: 27108
[Token(Token = "0x40069E4")]
private const int BufferSize = 512;
// Token: 0x040069E5 RID: 27109
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40069E5")]
protected ZStream z;
// Token: 0x040069E6 RID: 27110
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40069E6")]
protected int flushLevel;
// Token: 0x040069E7 RID: 27111
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40069E7")]
protected byte[] buf;
// Token: 0x040069E8 RID: 27112
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40069E8")]
protected byte[] buf1;
// Token: 0x040069E9 RID: 27113
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40069E9")]
protected bool compress;
// Token: 0x040069EA RID: 27114
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40069EA")]
protected Stream output;
// Token: 0x040069EB RID: 27115
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40069EB")]
protected bool closed;
}
}
@@ -0,0 +1,452 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A16 RID: 6678
[Token(Token = "0x2001A16")]
public sealed class ZStream
{
// Token: 0x06009CE6 RID: 40166 RVA: 0x002051D4 File Offset: 0x002033D4
[Token(Token = "0x6009CE6")]
[Address(RVA = "0x426E10", Offset = "0x425E10", VA = "0x180426E10")]
public int inflateInit()
{
int num = 0;
return this.inflateInit(15, num != 0);
}
// Token: 0x06009CE7 RID: 40167 RVA: 0x002051EC File Offset: 0x002033EC
[Token(Token = "0x6009CE7")]
[Address(RVA = "0x426DF0", Offset = "0x425DF0", VA = "0x180426DF0")]
public int inflateInit(bool nowrap)
{
return this.inflateInit(15, nowrap);
}
// Token: 0x06009CE8 RID: 40168 RVA: 0x00205204 File Offset: 0x00203404
[Token(Token = "0x6009CE8")]
[Address(RVA = "0x426E00", Offset = "0x425E00", VA = "0x180426E00")]
public int inflateInit(int w)
{
int num = 0;
return this.inflateInit(w, num != 0);
}
// Token: 0x06009CE9 RID: 40169 RVA: 0x0020521C File Offset: 0x0020341C
[Token(Token = "0x6009CE9")]
[Address(RVA = "0x426C90", Offset = "0x425C90", VA = "0x180426C90")]
public int inflateInit(int w, bool nowrap)
{
Inflate inflate = new Inflate();
long[] array = new long[1];
inflate.was = array;
this.istate = inflate;
int num = 0;
this.msg = num;
inflate.blocks = num;
inflate.nowrap = num;
inflate.nowrap = 1;
if (array <= (ulong)7L)
{
inflate.wbits = w;
Inflate inflate2 = this.istate;
InfBlocks infBlocks = new InfBlocks(this, num, 1);
inflate2.blocks = infBlocks;
int num2 = inflate.inflateReset(this);
}
return -2;
}
// Token: 0x06009CEA RID: 40170 RVA: 0x0020529C File Offset: 0x0020349C
[Token(Token = "0x6009CEA")]
[Address(RVA = "0x426F80", Offset = "0x425F80", VA = "0x180426F80")]
public int inflate(int f)
{
Inflate inflate = this.istate;
if (inflate != 0)
{
return inflate.inflate(this, f);
}
return -2;
}
// Token: 0x06009CEB RID: 40171 RVA: 0x002052C0 File Offset: 0x002034C0
[Token(Token = "0x6009CEB")]
[Address(RVA = "0x426C40", Offset = "0x425C40", VA = "0x180426C40")]
public int inflateEnd()
{
Inflate inflate = this.istate;
if (inflate != 0)
{
InfBlocks blocks = inflate.blocks;
if (blocks != 0)
{
blocks.free(this);
}
int num = 0;
inflate.blocks = num;
this.istate = num;
return num;
}
return -2;
}
// Token: 0x06009CEC RID: 40172 RVA: 0x00205300 File Offset: 0x00203500
[Token(Token = "0x6009CEC")]
[Address(RVA = "0x426F60", Offset = "0x425F60", VA = "0x180426F60")]
public int inflateSync()
{
Inflate inflate = this.istate;
if (inflate != 0)
{
return inflate.inflateSync(this);
}
return -2;
}
// Token: 0x06009CED RID: 40173 RVA: 0x00205324 File Offset: 0x00203524
[Token(Token = "0x6009CED")]
[Address(RVA = "0x426E20", Offset = "0x425E20", VA = "0x180426E20")]
public int inflateSetDictionary(byte[] dictionary, int dictLength)
{
Inflate inflate = this.istate;
if (inflate != 0 && inflate.mode == 6)
{
Adler32 adler = this._adler;
int num = 0;
uint num2;
if (adler.adler32((long)num2, dictionary, num, dictLength) == this.adler)
{
Adler32 adler2 = this._adler;
Inflate inflate2 = this.istate;
long num3;
this.adler = num3;
uint num4 = num2 - 1U;
inflate2.blocks.set_dictionary(dictionary, dictLength, (int)num4);
this.istate.mode = (int)((ulong)7L);
}
}
throw new NullReferenceException();
}
// Token: 0x06009CEE RID: 40174 RVA: 0x002053A4 File Offset: 0x002035A4
[Token(Token = "0x6009CEE")]
[Address(RVA = "0x4269C0", Offset = "0x4259C0", VA = "0x1804269C0")]
public int deflateInit(int level)
{
Deflate deflate = new Deflate();
this.dstate = deflate;
return deflate.deflateInit(this, level, 15);
}
// Token: 0x06009CEF RID: 40175 RVA: 0x002053D0 File Offset: 0x002035D0
[Token(Token = "0x6009CEF")]
[Address(RVA = "0x426A50", Offset = "0x425A50", VA = "0x180426A50")]
public int deflateInit(int level, bool nowrap)
{
return this.deflateInit(level, 15, nowrap);
}
// Token: 0x06009CF0 RID: 40176 RVA: 0x002053E8 File Offset: 0x002035E8
[Token(Token = "0x6009CF0")]
[Address(RVA = "0x426930", Offset = "0x425930", VA = "0x180426930")]
public int deflateInit(int level, int bits)
{
Deflate deflate = new Deflate();
this.dstate = deflate;
return deflate.deflateInit(this, bits, bits);
}
// Token: 0x06009CF1 RID: 40177 RVA: 0x00205414 File Offset: 0x00203614
[Token(Token = "0x6009CF1")]
[Address(RVA = "0x426880", Offset = "0x425880", VA = "0x180426880")]
public int deflateInit(int level, int bits, bool nowrap)
{
Deflate deflate = new Deflate();
this.dstate = deflate;
return deflate.deflateInit(this, bits, bits);
}
// Token: 0x06009CF2 RID: 40178 RVA: 0x00205440 File Offset: 0x00203640
[Token(Token = "0x6009CF2")]
[Address(RVA = "0x426B00", Offset = "0x425B00", VA = "0x180426B00")]
public int deflate(int flush)
{
Deflate deflate = this.dstate;
if (deflate != 0)
{
return deflate.deflate(this, flush);
}
return -2;
}
// Token: 0x06009CF3 RID: 40179 RVA: 0x00205464 File Offset: 0x00203664
[Token(Token = "0x6009CF3")]
[Address(RVA = "0x426840", Offset = "0x425840", VA = "0x180426840")]
public int deflateEnd()
{
Deflate deflate = this.dstate;
if (deflate != 0)
{
int num = deflate.deflateEnd();
this.dstate = (ulong)0L;
return num;
}
return -2;
}
// Token: 0x06009CF4 RID: 40180 RVA: 0x00205490 File Offset: 0x00203690
[Token(Token = "0x6009CF4")]
[Address(RVA = "0x426A80", Offset = "0x425A80", VA = "0x180426A80")]
public int deflateParams(int level, int strategy)
{
Deflate deflate = this.dstate;
if (deflate != 0)
{
return deflate.deflateParams(this, strategy, strategy);
}
return -2;
}
// Token: 0x06009CF5 RID: 40181 RVA: 0x002054B4 File Offset: 0x002036B4
[Token(Token = "0x6009CF5")]
[Address(RVA = "0x426AC0", Offset = "0x425AC0", VA = "0x180426AC0")]
public int deflateSetDictionary(byte[] dictionary, int dictLength)
{
Deflate deflate = this.dstate;
if (deflate != 0)
{
return deflate.deflateSetDictionary(this, dictionary, dictLength);
}
return -2;
}
// Token: 0x06009CF6 RID: 40182 RVA: 0x002054D8 File Offset: 0x002036D8
[Token(Token = "0x6009CF6")]
[Address(RVA = "0x426B20", Offset = "0x425B20", VA = "0x180426B20")]
internal void flush_pending()
{
Deflate deflate = this.dstate;
int num = this.avail_out;
int pending;
if (deflate.pending <= num)
{
pending = deflate.pending;
}
if (pending != 0)
{
byte[] pending_buf = deflate.pending_buf;
int length = pending_buf.Length;
int pending_out = deflate.pending_out;
if (length > pending_out)
{
byte[] array = this.next_out;
int num2 = this.next_out_index;
if (array.Length > num2)
{
}
}
int num3 = this.next_out_index;
byte[] array2 = this.next_out;
Array.Copy(pending_buf, pending_out, array2, num3, pending);
Deflate deflate2 = this.dstate;
Deflate deflate3 = this.dstate;
Deflate deflate4 = this.dstate;
if (deflate4.pending == 0)
{
deflate4.pending_out = (int)((ulong)0L);
}
}
}
// Token: 0x06009CF7 RID: 40183 RVA: 0x00205594 File Offset: 0x00203794
[Token(Token = "0x6009CF7")]
[Address(RVA = "0x426FA0", Offset = "0x425FA0", VA = "0x180426FA0")]
internal int read_buf(byte[] buf, int start, int size)
{
int num = this.avail_in;
if (num > size)
{
num = size;
}
if (num != 0)
{
num -= num;
this.avail_in = num;
if (this.dstate.noheader == 0)
{
Adler32 adler = this._adler;
int num2 = this.next_in_index;
byte[] array = this.next_in;
long num3 = this.adler;
long num4 = adler.adler32(num3, array, num2, num);
this.adler = num4;
}
int num5 = this.next_in_index;
Array.Copy(this.next_in, num5, buf, size, num);
}
return 0;
}
// Token: 0x06009CF8 RID: 40184 RVA: 0x00205620 File Offset: 0x00203820
[Token(Token = "0x6009CF8")]
[Address(RVA = "0x426C20", Offset = "0x425C20", VA = "0x180426C20")]
public void free()
{
int num = 0;
this.next_in = num;
this.next_out = num;
this.msg = num;
this._adler = num;
}
// Token: 0x06009CF9 RID: 40185 RVA: 0x0020564C File Offset: 0x0020384C
[Token(Token = "0x6009CF9")]
[Address(RVA = "0x4267E0", Offset = "0x4257E0", VA = "0x1804267E0")]
public ZStream()
{
Adler32 adler = new Adler32();
this._adler = adler;
base..ctor();
}
// Token: 0x040069EC RID: 27116
[Token(Token = "0x40069EC")]
private const int MAX_WBITS = 15;
// Token: 0x040069ED RID: 27117
[Token(Token = "0x40069ED")]
private const int DEF_WBITS = 15;
// Token: 0x040069EE RID: 27118
[Token(Token = "0x40069EE")]
private const int Z_NO_FLUSH = 0;
// Token: 0x040069EF RID: 27119
[Token(Token = "0x40069EF")]
private const int Z_PARTIAL_FLUSH = 1;
// Token: 0x040069F0 RID: 27120
[Token(Token = "0x40069F0")]
private const int Z_SYNC_FLUSH = 2;
// Token: 0x040069F1 RID: 27121
[Token(Token = "0x40069F1")]
private const int Z_FULL_FLUSH = 3;
// Token: 0x040069F2 RID: 27122
[Token(Token = "0x40069F2")]
private const int Z_FINISH = 4;
// Token: 0x040069F3 RID: 27123
[Token(Token = "0x40069F3")]
private const int MAX_MEM_LEVEL = 9;
// Token: 0x040069F4 RID: 27124
[Token(Token = "0x40069F4")]
private const int Z_OK = 0;
// Token: 0x040069F5 RID: 27125
[Token(Token = "0x40069F5")]
private const int Z_STREAM_END = 1;
// Token: 0x040069F6 RID: 27126
[Token(Token = "0x40069F6")]
private const int Z_NEED_DICT = 2;
// Token: 0x040069F7 RID: 27127
[Token(Token = "0x40069F7")]
private const int Z_ERRNO = -1;
// Token: 0x040069F8 RID: 27128
[Token(Token = "0x40069F8")]
private const int Z_STREAM_ERROR = -2;
// Token: 0x040069F9 RID: 27129
[Token(Token = "0x40069F9")]
private const int Z_DATA_ERROR = -3;
// Token: 0x040069FA RID: 27130
[Token(Token = "0x40069FA")]
private const int Z_MEM_ERROR = -4;
// Token: 0x040069FB RID: 27131
[Token(Token = "0x40069FB")]
private const int Z_BUF_ERROR = -5;
// Token: 0x040069FC RID: 27132
[Token(Token = "0x40069FC")]
private const int Z_VERSION_ERROR = -6;
// Token: 0x040069FD RID: 27133
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40069FD")]
public byte[] next_in;
// Token: 0x040069FE RID: 27134
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40069FE")]
public int next_in_index;
// Token: 0x040069FF RID: 27135
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40069FF")]
public int avail_in;
// Token: 0x04006A00 RID: 27136
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A00")]
public long total_in;
// Token: 0x04006A01 RID: 27137
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006A01")]
public byte[] next_out;
// Token: 0x04006A02 RID: 27138
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006A02")]
public int next_out_index;
// Token: 0x04006A03 RID: 27139
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4006A03")]
public int avail_out;
// Token: 0x04006A04 RID: 27140
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4006A04")]
public long total_out;
// Token: 0x04006A05 RID: 27141
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4006A05")]
public string msg;
// Token: 0x04006A06 RID: 27142
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4006A06")]
internal Deflate dstate;
// Token: 0x04006A07 RID: 27143
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4006A07")]
internal Inflate istate;
// Token: 0x04006A08 RID: 27144
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4006A08")]
internal int data_type;
// Token: 0x04006A09 RID: 27145
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4006A09")]
public long adler;
// Token: 0x04006A0A RID: 27146
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4006A0A")]
internal Adler32 _adler;
}
}
@@ -0,0 +1,397 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
{
// Token: 0x02001A17 RID: 6679
[Token(Token = "0x2001A17")]
internal sealed class ZTree
{
// Token: 0x06009CFA RID: 40186 RVA: 0x0020566C File Offset: 0x0020386C
[Token(Token = "0x6009CFA")]
[Address(RVA = "0x427940", Offset = "0x426940", VA = "0x180427940")]
internal static int d_code(int dist)
{
if (dist < 256)
{
byte[] dist_code = ZTree._dist_code;
}
byte[] dist_code2 = ZTree._dist_code;
throw new NullReferenceException();
}
// Token: 0x06009CFB RID: 40187 RVA: 0x00205694 File Offset: 0x00203894
[Token(Token = "0x6009CFB")]
[Address(RVA = "0x427A30", Offset = "0x426A30", VA = "0x180427A30")]
internal void gen_bitlen(Deflate s)
{
StaticTree staticTree = this.stat_desc;
short[] array = this.dyn_tree;
short[] static_tree = staticTree.static_tree;
int i = 0;
int[] extra_bits = staticTree.extra_bits;
int extra_base = staticTree.extra_base;
int num = staticTree.max_length;
short[] bl_count = s.bl_count;
i++;
bl_count[0] = (short)i;
while (i <= 15)
{
}
int[] heap = s.heap;
int num2 = s.heap_max;
num2++;
array[0] = (short)i;
int num3 = s.heap_max;
num3++;
if (num3 < 573)
{
int[] heap2 = s.heap;
int num4 = array.Length;
num2 = num3;
int num5 = heap2[num2];
num2 += num2;
num2++;
num2++;
num4 = num;
if (num2 <= num)
{
num4 = num2;
}
array[0] = (short)num4;
short[] bl_count2 = s.bl_count;
num5 -= extra_base;
int num6 = extra_bits[num5];
int num7 = num5 * num5;
if (static_tree != 0)
{
num7 += num6;
}
num3++;
if (i != 0)
{
short[] bl_count3 = s.bl_count;
int num8 = num - 1;
short num9 = bl_count3[num8];
bl_count3[0] = num9;
short[] bl_count4 = s.bl_count;
num8++;
short[] bl_count5 = s.bl_count;
if (num != 0)
{
short[] bl_count6 = s.bl_count;
if (num8 != 0)
{
int[] heap3 = s.heap;
num = num3;
int num10 = heap3[num];
int num11 = array.Length;
num10 += num10;
int num12 = num10 + 1;
if (num4 != num)
{
num11 = num;
num11 -= num4;
array[0] = (short)num;
}
while (num8 != 0)
{
}
}
while (num8 != 0)
{
}
}
}
}
}
// Token: 0x06009CFC RID: 40188 RVA: 0x0020584C File Offset: 0x00203A4C
[Token(Token = "0x6009CFC")]
[Address(RVA = "0x427280", Offset = "0x426280", VA = "0x180427280")]
internal void build_tree(Deflate s)
{
StaticTree staticTree = this.stat_desc;
short[] array = this.dyn_tree;
short[] static_tree = staticTree.static_tree;
int num = staticTree.elems;
int num2 = 0;
s.heap_max = (int)((ulong)573L);
s.heap_len = num2;
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;
byte[] 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;
byte[] depth2 = s.depth;
while (static_tree == 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;
byte b2;
byte b3;
byte b = Math.Max(b2, 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: 0x06009CFD RID: 40189 RVA: 0x00205AEC File Offset: 0x00203CEC
[Token(Token = "0x6009CFD")]
[Address(RVA = "0x427EE0", Offset = "0x426EE0", VA = "0x180427EE0")]
internal static void gen_codes(short[] tree, int max_code, short[] bl_count)
{
short[] array = new short[16];
int i = 0;
i += i;
array[0] = (short)i;
while (1UL <= (ulong)15L)
{
}
if (bl_count != 0)
{
short num = array[bl_count] + 1;
array[0] = num;
int num2 = 0;
num2 += num2;
tree[0] = (short)num2;
}
i++;
i += 2;
while (i <= max_code)
{
}
}
// Token: 0x06009CFE RID: 40190 RVA: 0x00205B54 File Offset: 0x00203D54
[Token(Token = "0x6009CFE")]
[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: 0x06009CFF RID: 40191 RVA: 0x00205B6C File Offset: 0x00203D6C
[Token(Token = "0x6009CFF")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public ZTree()
{
}
// Token: 0x06009D00 RID: 40192 RVA: 0x00205B80 File Offset: 0x00203D80
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009D00")]
[Address(RVA = "0x427060", Offset = "0x426060", VA = "0x180427060")]
static ZTree()
{
int[] array = new int[29];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.67C0E784F3654B008A81E2988588CF4956CCF3DA).FieldHandle);
ZTree.extra_lbits = array;
int[] array2 = new int[30];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.79D521E6E3E55103005E9CC3FA43B3174FAF090F).FieldHandle);
ZTree.extra_dbits = array2;
int[] array3 = new int[19];
RuntimeHelpers.InitializeArray(array3, fieldof(<PrivateImplementationDetails>.8457F44B035C9073EE2D1F132D0A8AF5631DCDC8).FieldHandle);
ZTree.extra_blbits = array3;
byte[] array4 = new byte[19];
RuntimeHelpers.InitializeArray(array4, fieldof(<PrivateImplementationDetails>.9F8365E9D6C62D3B47026EC465B05A7B5526B5CD).FieldHandle);
ZTree.bl_order = array4;
byte[] array5 = new byte[512];
RuntimeHelpers.InitializeArray(array5, fieldof(<PrivateImplementationDetails>.3544182260B8A15D332367E48C7530FC0E901FD3).FieldHandle);
ZTree._dist_code = array5;
byte[] array6 = new byte[256];
RuntimeHelpers.InitializeArray(array6, fieldof(<PrivateImplementationDetails>.6A316789EED01119DE92841832701A40AB0CABD6).FieldHandle);
ZTree._length_code = array6;
int[] array7 = new int[29];
RuntimeHelpers.InitializeArray(array7, fieldof(<PrivateImplementationDetails>.2E868D9F2085DF93F11F58DE61C05E0D8A8F4A71).FieldHandle);
ZTree.base_length = array7;
int[] array8 = new int[30];
RuntimeHelpers.InitializeArray(array8, fieldof(<PrivateImplementationDetails>.5581A70566F03554D8048EDBFC6E6B399AF9BCB1).FieldHandle);
ZTree.base_dist = array8;
}
// Token: 0x04006A0B RID: 27147
[Token(Token = "0x4006A0B")]
private const int MAX_BITS = 15;
// Token: 0x04006A0C RID: 27148
[Token(Token = "0x4006A0C")]
private const int BL_CODES = 19;
// Token: 0x04006A0D RID: 27149
[Token(Token = "0x4006A0D")]
private const int D_CODES = 30;
// Token: 0x04006A0E RID: 27150
[Token(Token = "0x4006A0E")]
private const int LITERALS = 256;
// Token: 0x04006A0F RID: 27151
[Token(Token = "0x4006A0F")]
private const int LENGTH_CODES = 29;
// Token: 0x04006A10 RID: 27152
[Token(Token = "0x4006A10")]
private const int L_CODES = 286;
// Token: 0x04006A11 RID: 27153
[Token(Token = "0x4006A11")]
private const int HEAP_SIZE = 573;
// Token: 0x04006A12 RID: 27154
[Token(Token = "0x4006A12")]
internal const int MAX_BL_BITS = 7;
// Token: 0x04006A13 RID: 27155
[Token(Token = "0x4006A13")]
internal const int END_BLOCK = 256;
// Token: 0x04006A14 RID: 27156
[Token(Token = "0x4006A14")]
internal const int REP_3_6 = 16;
// Token: 0x04006A15 RID: 27157
[Token(Token = "0x4006A15")]
internal const int REPZ_3_10 = 17;
// Token: 0x04006A16 RID: 27158
[Token(Token = "0x4006A16")]
internal const int REPZ_11_138 = 18;
// Token: 0x04006A17 RID: 27159
[Token(Token = "0x4006A17")]
internal static readonly int[] extra_lbits;
// Token: 0x04006A18 RID: 27160
[Token(Token = "0x4006A18")]
internal static readonly int[] extra_dbits;
// Token: 0x04006A19 RID: 27161
[Token(Token = "0x4006A19")]
internal static readonly int[] extra_blbits;
// Token: 0x04006A1A RID: 27162
[Token(Token = "0x4006A1A")]
internal static readonly byte[] bl_order;
// Token: 0x04006A1B RID: 27163
[Token(Token = "0x4006A1B")]
internal const int Buf_size = 16;
// Token: 0x04006A1C RID: 27164
[Token(Token = "0x4006A1C")]
internal const int DIST_CODE_LEN = 512;
// Token: 0x04006A1D RID: 27165
[Token(Token = "0x4006A1D")]
internal static readonly byte[] _dist_code;
// Token: 0x04006A1E RID: 27166
[Token(Token = "0x4006A1E")]
internal static readonly byte[] _length_code;
// Token: 0x04006A1F RID: 27167
[Token(Token = "0x4006A1F")]
internal static readonly int[] base_length;
// Token: 0x04006A20 RID: 27168
[Token(Token = "0x4006A20")]
internal static readonly int[] base_dist;
// Token: 0x04006A21 RID: 27169
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A21")]
internal short[] dyn_tree;
// Token: 0x04006A22 RID: 27170
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A22")]
internal int max_code;
// Token: 0x04006A23 RID: 27171
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A23")]
internal StaticTree stat_desc;
}
}