354 lines
19 KiB
C#
354 lines
19 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Converts base data types to an array of bytes, and an array of bytes to base data types.</summary>
|
|
// Token: 0x020000BB RID: 187
|
|
[Token(Token = "0x20000BB")]
|
|
public static class BitConverter
|
|
{
|
|
// Token: 0x0600054C RID: 1356 RVA: 0x00004350 File Offset: 0x00002550
|
|
[Token(Token = "0x600054C")]
|
|
[Address(RVA = "0x26C7D20", Offset = "0x26C6B20", VA = "0x1826C7D20")]
|
|
private static bool AmILittleEndian()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the specified Boolean value as a byte array.</summary>
|
|
/// <param name="value">A Boolean value.</param>
|
|
/// <returns>A byte array with length 1.</returns>
|
|
// Token: 0x0600054D RID: 1357 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600054D")]
|
|
[Address(RVA = "0x26C8080", Offset = "0x26C6E80", VA = "0x1826C8080")]
|
|
public static byte[] GetBytes(bool value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 16-bit signed integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 2.</returns>
|
|
// Token: 0x0600054E RID: 1358 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600054E")]
|
|
[Address(RVA = "0x26C80E0", Offset = "0x26C6EE0", VA = "0x1826C80E0")]
|
|
public static byte[] GetBytes(short value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 32-bit signed integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 4.</returns>
|
|
// Token: 0x0600054F RID: 1359 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600054F")]
|
|
[Address(RVA = "0x26C8020", Offset = "0x26C6E20", VA = "0x1826C8020")]
|
|
public static byte[] GetBytes(int value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 64-bit signed integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 8.</returns>
|
|
// Token: 0x06000550 RID: 1360 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000550")]
|
|
[Address(RVA = "0x26C7D40", Offset = "0x26C6B40", VA = "0x1826C7D40")]
|
|
public static byte[] GetBytes(long value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 16-bit unsigned integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 2.</returns>
|
|
// Token: 0x06000551 RID: 1361 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000551")]
|
|
[Address(RVA = "0x26C7ED0", Offset = "0x26C6CD0", VA = "0x1826C7ED0")]
|
|
[CLSCompliant(false)]
|
|
public static byte[] GetBytes(ushort value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 32-bit unsigned integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 4.</returns>
|
|
// Token: 0x06000552 RID: 1362 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000552")]
|
|
[Address(RVA = "0x26C7DA0", Offset = "0x26C6BA0", VA = "0x1826C7DA0")]
|
|
[CLSCompliant(false)]
|
|
public static byte[] GetBytes(uint value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified 64-bit unsigned integer value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 8.</returns>
|
|
// Token: 0x06000553 RID: 1363 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000553")]
|
|
[Address(RVA = "0x26C8140", Offset = "0x26C6F40", VA = "0x1826C8140")]
|
|
[CLSCompliant(false)]
|
|
public static byte[] GetBytes(ulong value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified single-precision floating point value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 4.</returns>
|
|
// Token: 0x06000554 RID: 1364 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000554")]
|
|
[Address(RVA = "0x26C7E30", Offset = "0x26C6C30", VA = "0x1826C7E30")]
|
|
public static byte[] GetBytes(float value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the specified double-precision floating point value as an array of bytes.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>An array of bytes with length 8.</returns>
|
|
// Token: 0x06000555 RID: 1365 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000555")]
|
|
[Address(RVA = "0x26C7F70", Offset = "0x26C6D70", VA = "0x1826C7F70")]
|
|
public static byte[] GetBytes(double value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 16-bit signed integer formed by two bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> equals the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x06000556 RID: 1366 RVA: 0x00004368 File Offset: 0x00002568
|
|
[Token(Token = "0x6000556")]
|
|
[Address(RVA = "0x26C83E0", Offset = "0x26C71E0", VA = "0x1826C83E0")]
|
|
public static short ToInt16(byte[] value, int startIndex)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 32-bit signed integer formed by four bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 3, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x06000557 RID: 1367 RVA: 0x00004380 File Offset: 0x00002580
|
|
[Token(Token = "0x6000557")]
|
|
[Address(RVA = "0x26C84F0", Offset = "0x26C72F0", VA = "0x1826C84F0")]
|
|
public static int ToInt32(byte[] value, int startIndex)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 64-bit signed integer formed by eight bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 7, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x06000558 RID: 1368 RVA: 0x00004398 File Offset: 0x00002598
|
|
[Token(Token = "0x6000558")]
|
|
[Address(RVA = "0x26C8630", Offset = "0x26C7430", VA = "0x1826C8630")]
|
|
public static long ToInt64(byte[] value, int startIndex)
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
/// <summary>Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">The array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 16-bit unsigned integer formed by two bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> equals the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x06000559 RID: 1369 RVA: 0x000043B0 File Offset: 0x000025B0
|
|
[Token(Token = "0x6000559")]
|
|
[Address(RVA = "0x26C8CC0", Offset = "0x26C7AC0", VA = "0x1826C8CC0")]
|
|
[CLSCompliant(false)]
|
|
public static ushort ToUInt16(byte[] value, int startIndex)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 32-bit unsigned integer formed by four bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 3, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x0600055A RID: 1370 RVA: 0x000043C8 File Offset: 0x000025C8
|
|
[Token(Token = "0x600055A")]
|
|
[Address(RVA = "0x26C8E60", Offset = "0x26C7C60", VA = "0x1826C8E60")]
|
|
[CLSCompliant(false)]
|
|
public static uint ToUInt32(byte[] value, int startIndex)
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
/// <summary>Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A 64-bit unsigned integer formed by the eight bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 7, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x0600055B RID: 1371 RVA: 0x000043E0 File Offset: 0x000025E0
|
|
[Token(Token = "0x600055B")]
|
|
[Address(RVA = "0x26C8F00", Offset = "0x26C7D00", VA = "0x1826C8F00")]
|
|
[CLSCompliant(false)]
|
|
public static ulong ToUInt64(byte[] value, int startIndex)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
/// <summary>Returns a single-precision floating point number converted from four bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A single-precision floating point number formed by four bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 3, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x0600055C RID: 1372 RVA: 0x000043F8 File Offset: 0x000025F8
|
|
[Token(Token = "0x600055C")]
|
|
[Address(RVA = "0x26C87D0", Offset = "0x26C75D0", VA = "0x1826C87D0")]
|
|
public static float ToSingle(byte[] value, int startIndex)
|
|
{
|
|
return 0f;
|
|
}
|
|
|
|
/// <summary>Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <returns>A double precision floating point number formed by eight bytes beginning at <paramref name="startIndex" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="value" /> minus 7, and is less than or equal to the length of <paramref name="value" /> minus 1.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x0600055D RID: 1373 RVA: 0x00004410 File Offset: 0x00002610
|
|
[Token(Token = "0x600055D")]
|
|
[Address(RVA = "0x26C8330", Offset = "0x26C7130", VA = "0x1826C8330")]
|
|
public static double ToDouble(byte[] value, int startIndex)
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
// Token: 0x0600055E RID: 1374 RVA: 0x00004428 File Offset: 0x00002628
|
|
[Token(Token = "0x600055E")]
|
|
[Address(RVA = "0x26C81E0", Offset = "0x26C6FE0", VA = "0x1826C81E0")]
|
|
private static char GetHexValue(int i)
|
|
{
|
|
return '\0';
|
|
}
|
|
|
|
/// <summary>Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <param name="startIndex">The starting position within <paramref name="value" />.</param>
|
|
/// <param name="length">The number of array elements in <paramref name="value" /> to convert.</param>
|
|
/// <returns>A string of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in a subarray of <paramref name="value" />; for example, "7F-2C-4A-00".</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> or <paramref name="length" /> is less than zero.
|
|
/// -or-
|
|
/// <paramref name="startIndex" /> is greater than zero and is greater than or equal to the length of <paramref name="value" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The combination of <paramref name="startIndex" /> and <paramref name="length" /> does not specify a position within <paramref name="value" />; that is, the <paramref name="startIndex" /> parameter is greater than the length of <paramref name="value" /> minus the <paramref name="length" /> parameter.</exception>
|
|
// Token: 0x0600055F RID: 1375 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600055F")]
|
|
[Address(RVA = "0x26C8910", Offset = "0x26C7710", VA = "0x1826C8910")]
|
|
public static string ToString(byte[] value, int startIndex, int length)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Converts the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation.</summary>
|
|
/// <param name="value">An array of bytes.</param>
|
|
/// <returns>A string of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in <paramref name="value" />; for example, "7F-2C-4A-00".</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000560 RID: 1376 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000560")]
|
|
[Address(RVA = "0x26C8880", Offset = "0x26C7680", VA = "0x1826C8880")]
|
|
public static string ToString(byte[] value)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a Boolean value converted from the byte at a specified position in a byte array.</summary>
|
|
/// <param name="value">A byte array.</param>
|
|
/// <param name="startIndex">The index of the byte within <paramref name="value" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the byte at <paramref name="startIndex" /> in <paramref name="value" /> is nonzero; otherwise, <see langword="false" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="value" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="startIndex" /> is less than zero or greater than the length of <paramref name="value" /> minus 1.</exception>
|
|
// Token: 0x06000561 RID: 1377 RVA: 0x00004440 File Offset: 0x00002640
|
|
[Token(Token = "0x6000561")]
|
|
[Address(RVA = "0x26C8200", Offset = "0x26C7000", VA = "0x1826C8200")]
|
|
public static bool ToBoolean(byte[] value, int startIndex)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Converts the specified double-precision floating point number to a 64-bit signed integer.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>A 64-bit signed integer whose value is equivalent to <paramref name="value" />.</returns>
|
|
// Token: 0x06000562 RID: 1378 RVA: 0x00004458 File Offset: 0x00002658
|
|
[Token(Token = "0x6000562")]
|
|
[Address(RVA = "0x462840", Offset = "0x461640", VA = "0x180462840")]
|
|
public static long DoubleToInt64Bits(double value)
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
/// <summary>Converts the specified 64-bit signed integer to a double-precision floating point number.</summary>
|
|
/// <param name="value">The number to convert.</param>
|
|
/// <returns>A double-precision floating point number whose value is equivalent to <paramref name="value" />.</returns>
|
|
// Token: 0x06000563 RID: 1379 RVA: 0x00004470 File Offset: 0x00002670
|
|
[Token(Token = "0x6000563")]
|
|
[Address(RVA = "0x26C81F0", Offset = "0x26C6FF0", VA = "0x1826C81F0")]
|
|
public static double Int64BitsToDouble(long value)
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
/// <summary>Indicates the byte order ("endianness") in which data is stored in this computer architecture.</summary>
|
|
// Token: 0x04000214 RID: 532
|
|
[Token(Token = "0x4000214")]
|
|
public static readonly bool IsLittleEndian;
|
|
}
|
|
}
|