Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

131 lines
4.2 KiB
C#

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;
}
}