scripts
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib
|
||||
{
|
||||
// Token: 0x0200134C RID: 4940
|
||||
[Token(Token = "0x200134C")]
|
||||
[StructLayout(3)]
|
||||
internal sealed class Adler32
|
||||
{
|
||||
// Token: 0x06007C9E RID: 31902 RVA: 0x0019EB44 File Offset: 0x0019CD44
|
||||
[Token(Token = "0x6007C9E")]
|
||||
[Address(RVA = "0x2023640", Offset = "0x2022040", VA = "0x182023640")]
|
||||
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: 0x06007C9F RID: 31903 RVA: 0x0019EC48 File Offset: 0x0019CE48
|
||||
[Token(Token = "0x6007C9F")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public Adler32()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040058A7 RID: 22695
|
||||
[Token(Token = "0x40058A7")]
|
||||
private const int BASE = 65521;
|
||||
|
||||
// Token: 0x040058A8 RID: 22696
|
||||
[Token(Token = "0x40058A8")]
|
||||
private const int NMAX = 5552;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user