Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Utilities/Strings.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

128 lines
3.7 KiB
C#

using System;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities
{
// Token: 0x02001A07 RID: 6663
[Token(Token = "0x2001A07")]
public abstract class Strings
{
// Token: 0x06009C38 RID: 39992 RVA: 0x001FF3E8 File Offset: 0x001FD5E8
[Token(Token = "0x6009C38")]
[Address(RVA = "0x4F16C0", Offset = "0x4F06C0", VA = "0x1804F16C0")]
internal static bool IsOneOf(string s, params string[] candidates)
{
int num = 0;
int length = candidates.Length;
if (num < length)
{
string text = candidates[num];
if (!string.Equals(s, text))
{
num++;
}
return true;
}
throw new NullReferenceException();
}
// Token: 0x06009C39 RID: 39993 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009C39")]
[Address(RVA = "0x4F1570", Offset = "0x4F0570", VA = "0x1804F1570")]
public static string FromByteArray(byte[] bs)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009C3A RID: 39994 RVA: 0x001FF424 File Offset: 0x001FD624
[Token(Token = "0x6009C3A")]
[Address(RVA = "0x4F17D0", Offset = "0x4F07D0", VA = "0x1804F17D0")]
public static byte[] ToByteArray(char[] cs)
{
byte[] array = new byte[cs.Length];
int num = 0;
if (num < array.Length)
{
byte b = Convert.ToByte(cs[num]);
num++;
}
return array;
}
// Token: 0x06009C3B RID: 39995 RVA: 0x001FF460 File Offset: 0x001FD660
[Token(Token = "0x6009C3B")]
[Address(RVA = "0x4F18C0", Offset = "0x4F08C0", VA = "0x1804F18C0")]
public static byte[] ToByteArray(string s)
{
byte[] array = new byte[s.m_stringLength];
int num = 0;
if (num < array.Length)
{
byte b = Convert.ToByte(s[num]);
num++;
}
return array;
}
// Token: 0x06009C3C RID: 39996 RVA: 0x001FF49C File Offset: 0x001FD69C
[Token(Token = "0x6009C3C")]
[Address(RVA = "0x4F1520", Offset = "0x4F0520", VA = "0x1804F1520")]
public static string FromAsciiByteArray(byte[] bytes)
{
return Encoding.ASCII.GetString(bytes);
}
// Token: 0x06009C3D RID: 39997 RVA: 0x001FF4BC File Offset: 0x001FD6BC
[Token(Token = "0x6009C3D")]
[Address(RVA = "0x4F1750", Offset = "0x4F0750", VA = "0x1804F1750")]
public static byte[] ToAsciiByteArray(char[] cs)
{
Encoding ascii = Encoding.ASCII;
throw new NullReferenceException();
}
// Token: 0x06009C3E RID: 39998 RVA: 0x001FF4D8 File Offset: 0x001FD6D8
[Token(Token = "0x6009C3E")]
[Address(RVA = "0x4F1790", Offset = "0x4F0790", VA = "0x1804F1790")]
public static byte[] ToAsciiByteArray(string s)
{
Encoding ascii = Encoding.ASCII;
throw new NullReferenceException();
}
// Token: 0x06009C3F RID: 39999 RVA: 0x001FF4F4 File Offset: 0x001FD6F4
[Token(Token = "0x6009C3F")]
[Address(RVA = "0x4F1670", Offset = "0x4F0670", VA = "0x1804F1670")]
public static string FromUtf8ByteArray(byte[] bytes)
{
return Encoding.UTF8.GetString(bytes);
}
// Token: 0x06009C40 RID: 40000 RVA: 0x001FF514 File Offset: 0x001FD714
[Token(Token = "0x6009C40")]
[Address(RVA = "0x4F19A0", Offset = "0x4F09A0", VA = "0x1804F19A0")]
public static byte[] ToUtf8ByteArray(char[] cs)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x06009C41 RID: 40001 RVA: 0x001FF530 File Offset: 0x001FD730
[Token(Token = "0x6009C41")]
[Address(RVA = "0x4F19E0", Offset = "0x4F09E0", VA = "0x1804F19E0")]
public static byte[] ToUtf8ByteArray(string s)
{
Encoding utf = Encoding.UTF8;
throw new NullReferenceException();
}
// Token: 0x06009C42 RID: 40002 RVA: 0x001FF54C File Offset: 0x001FD74C
[Token(Token = "0x6009C42")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Strings()
{
}
}
}