92 lines
2.9 KiB
C#
92 lines
2.9 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
|
|
{
|
|
// Token: 0x02001375 RID: 4981
|
|
[Token(Token = "0x2001375")]
|
|
[StructLayout(3)]
|
|
public class UrlBase64
|
|
{
|
|
// Token: 0x06007DFE RID: 32254 RVA: 0x001A732C File Offset: 0x001A552C
|
|
[Token(Token = "0x6007DFE")]
|
|
[Address(RVA = "0x20353E0", Offset = "0x2033DE0", VA = "0x1820353E0")]
|
|
public static byte[] Encode(byte[] data)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
int length = data.Length;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007DFF RID: 32255 RVA: 0x001A7358 File Offset: 0x001A5558
|
|
[Token(Token = "0x6007DFF")]
|
|
[Address(RVA = "0x2035340", Offset = "0x2033D40", VA = "0x182035340")]
|
|
public static int Encode(byte[] data, Stream outStr)
|
|
{
|
|
return data.Length;
|
|
}
|
|
|
|
// Token: 0x06007E00 RID: 32256 RVA: 0x001A7374 File Offset: 0x001A5574
|
|
[Token(Token = "0x6007E00")]
|
|
[Address(RVA = "0x20350B0", Offset = "0x2033AB0", VA = "0x1820350B0")]
|
|
public static byte[] Decode(byte[] data)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
int length = data.Length;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007E01 RID: 32257 RVA: 0x001A73A0 File Offset: 0x001A55A0
|
|
[Token(Token = "0x6007E01")]
|
|
[Address(RVA = "0x2035210", Offset = "0x2033C10", VA = "0x182035210")]
|
|
public static int Decode(byte[] data, Stream outStr)
|
|
{
|
|
return data.Length;
|
|
}
|
|
|
|
// Token: 0x06007E02 RID: 32258 RVA: 0x001A73BC File Offset: 0x001A55BC
|
|
[Token(Token = "0x6007E02")]
|
|
[Address(RVA = "0x2034F60", Offset = "0x2033960", VA = "0x182034F60")]
|
|
public static byte[] Decode(string data)
|
|
{
|
|
MemoryStream memoryStream = new MemoryStream();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007E03 RID: 32259 RVA: 0x001A73E0 File Offset: 0x001A55E0
|
|
[Token(Token = "0x6007E03")]
|
|
[Address(RVA = "0x20352B0", Offset = "0x2033CB0", VA = "0x1820352B0")]
|
|
public static int Decode(string data, Stream outStr)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06007E04 RID: 32260 RVA: 0x001A73F4 File Offset: 0x001A55F4
|
|
[Token(Token = "0x6007E04")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public UrlBase64()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06007E05 RID: 32261 RVA: 0x001A7408 File Offset: 0x001A5608
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6007E05")]
|
|
[Address(RVA = "0x2035540", Offset = "0x2033F40", VA = "0x182035540")]
|
|
static UrlBase64()
|
|
{
|
|
UrlBase64Encoder urlBase64Encoder = new UrlBase64Encoder();
|
|
int length = urlBase64Encoder.encodingTable.Length;
|
|
urlBase64Encoder.decodingTable = (ulong)45L;
|
|
int num = urlBase64Encoder.encodingTable.Length - 1;
|
|
urlBase64Encoder.padding = (byte)((ulong)46L);
|
|
urlBase64Encoder.InitialiseDecodingTable();
|
|
}
|
|
|
|
// Token: 0x04005A4A RID: 23114
|
|
[Token(Token = "0x4005A4A")]
|
|
private static readonly IEncoder encoder;
|
|
}
|
|
}
|