98 lines
3.3 KiB
C#
98 lines
3.3 KiB
C#
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;
|
|
}
|
|
}
|