Files
T
2026-04-10 22:50:51 +02:00

131 lines
4.3 KiB
C#

using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders
{
// Token: 0x0200194D RID: 6477
[Token(Token = "0x200194D")]
public sealed class Hex
{
// Token: 0x060099BA RID: 39354 RVA: 0x001FE47C File Offset: 0x001FC67C
[Token(Token = "0x60099BA")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
private Hex()
{
}
// Token: 0x060099BB RID: 39355 RVA: 0x001FE490 File Offset: 0x001FC690
[Token(Token = "0x60099BB")]
[Address(RVA = "0x18DF0D0", Offset = "0x18DDED0", VA = "0x1818DF0D0")]
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: 0x060099BC RID: 39356 RVA: 0x001FE4C4 File Offset: 0x001FC6C4
[Token(Token = "0x60099BC")]
[Address(RVA = "0x18DF1C0", Offset = "0x18DDFC0", VA = "0x1818DF1C0")]
public static string ToHexString(byte[] data, int off, int length)
{
byte[] array = Hex.Encode(data, off, length);
return Encoding.ASCII.GetString(array);
}
// Token: 0x060099BD RID: 39357 RVA: 0x001FE4F0 File Offset: 0x001FC6F0
[Token(Token = "0x60099BD")]
[Address(RVA = "0x18DEF10", Offset = "0x18DDD10", VA = "0x1818DEF10")]
public static byte[] Encode(byte[] data)
{
int length = data.Length;
int num = 0;
return Hex.Encode(data, num, length);
}
// Token: 0x060099BE RID: 39358 RVA: 0x001FE514 File Offset: 0x001FC714
[Token(Token = "0x60099BE")]
[Address(RVA = "0x18DEE30", Offset = "0x18DDC30", VA = "0x1818DEE30")]
public static byte[] Encode(byte[] data, int off, int length)
{
MemoryStream memoryStream = new MemoryStream(off);
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x060099BF RID: 39359 RVA: 0x001FE538 File Offset: 0x001FC738
[Token(Token = "0x60099BF")]
[Address(RVA = "0x18DF030", Offset = "0x18DDE30", VA = "0x1818DF030")]
public static int Encode(byte[] data, Stream outStream)
{
return data.Length;
}
// Token: 0x060099C0 RID: 39360 RVA: 0x001FE554 File Offset: 0x001FC754
[Token(Token = "0x60099C0")]
[Address(RVA = "0x18DEF80", Offset = "0x18DDD80", VA = "0x1818DEF80")]
public static int Encode(byte[] data, int off, int length, Stream outStream)
{
throw new NullReferenceException();
}
// Token: 0x060099C1 RID: 39361 RVA: 0x001FE568 File Offset: 0x001FC768
[Token(Token = "0x60099C1")]
[Address(RVA = "0x18DECC0", Offset = "0x18DDAC0", VA = "0x1818DECC0")]
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: 0x060099C2 RID: 39362 RVA: 0x001FE59C File Offset: 0x001FC79C
[Token(Token = "0x60099C2")]
[Address(RVA = "0x18DEBE0", Offset = "0x18DD9E0", VA = "0x1818DEBE0")]
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: 0x060099C3 RID: 39363 RVA: 0x001FE5C8 File Offset: 0x001FC7C8
[Token(Token = "0x60099C3")]
[Address(RVA = "0x18DEDA0", Offset = "0x18DDBA0", VA = "0x1818DEDA0")]
public static int Decode(string data, Stream outStream)
{
throw new NullReferenceException();
}
// Token: 0x060099C4 RID: 39364 RVA: 0x001FE5DC File Offset: 0x001FC7DC
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x60099C4")]
[Address(RVA = "0x18DF270", Offset = "0x18DE070", VA = "0x1818DF270")]
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: 0x04006889 RID: 26761
[Token(Token = "0x4006889")]
private static readonly IEncoder encoder;
}
}