Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Runtime/CompilerServices/RuntimeHelpers.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

119 lines
4.7 KiB
C#

using System;
using System.Runtime.ConstrainedExecution;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.</summary>
// Token: 0x02000564 RID: 1380
[Token(Token = "0x2000564")]
public static class RuntimeHelpers
{
// Token: 0x06002A8A RID: 10890 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A8A")]
[Address(RVA = "0x295DBE0", Offset = "0x295C9E0", VA = "0x18295DBE0")]
private static void InitializeArray(Array array, IntPtr fldHandle)
{
}
/// <summary>Provides a fast way to initialize an array from data that is stored in a module.</summary>
/// <param name="array">The array to be initialized.</param>
/// <param name="fldHandle">A field handle that specifies the location of the data used to initialize the array.</param>
// Token: 0x06002A8B RID: 10891 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A8B")]
[Address(RVA = "0x295DB60", Offset = "0x295C960", VA = "0x18295DB60")]
public static void InitializeArray(Array array, RuntimeFieldHandle fldHandle)
{
}
/// <summary>Gets the offset, in bytes, to the data in the given string.</summary>
/// <returns>The byte offset, from the start of the <see cref="T:System.String" /> object to the first character in the string.</returns>
// Token: 0x1700064E RID: 1614
// (get) Token: 0x06002A8C RID: 10892 RVA: 0x00016998 File Offset: 0x00014B98
[Token(Token = "0x1700064E")]
public static int OffsetToStringData
{
[Token(Token = "0x6002A8C")]
[Address(RVA = "0x295DC80", Offset = "0x295CA80", VA = "0x18295DC80")]
get
{
return 0;
}
}
/// <summary>Serves as a hash function for a particular object, and is suitable for use in algorithms and data structures that use hash codes, such as a hash table.</summary>
/// <param name="o">An object to retrieve the hash code for.</param>
/// <returns>A hash code for the object identified by the <paramref name="o" /> parameter.</returns>
// Token: 0x06002A8D RID: 10893 RVA: 0x000169B0 File Offset: 0x00014BB0
[Token(Token = "0x6002A8D")]
[Address(RVA = "0x19424F0", Offset = "0x19412F0", VA = "0x1819424F0")]
public static int GetHashCode(object o)
{
return 0;
}
/// <summary>Boxes a value type.</summary>
/// <param name="obj">The value type to be boxed.</param>
/// <returns>A boxed copy of <paramref name="obj" /> if it is a value class; otherwise, <paramref name="obj" /> itself.</returns>
// Token: 0x06002A8E RID: 10894 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A8E")]
[Address(RVA = "0x295DB50", Offset = "0x295C950", VA = "0x18295DB50")]
public static object GetObjectValue(object obj)
{
return null;
}
// Token: 0x06002A8F RID: 10895 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A8F")]
[Address(RVA = "0x295DC70", Offset = "0x295CA70", VA = "0x18295DC70")]
private static void RunClassConstructor(IntPtr type)
{
}
/// <summary>Runs a specified class constructor method.</summary>
/// <param name="type">A type handle that specifies the class constructor method to run.</param>
/// <exception cref="T:System.TypeInitializationException">The class initializer throws an exception.</exception>
// Token: 0x06002A90 RID: 10896 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A90")]
[Address(RVA = "0x295DBF0", Offset = "0x295C9F0", VA = "0x18295DBF0")]
public static void RunClassConstructor(RuntimeTypeHandle type)
{
}
// Token: 0x06002A91 RID: 10897 RVA: 0x000169C8 File Offset: 0x00014BC8
[Token(Token = "0x6002A91")]
[Address(RVA = "0x2379AE0", Offset = "0x23788E0", VA = "0x182379AE0")]
private static bool SufficientExecutionStack()
{
return default(bool);
}
// Token: 0x06002A92 RID: 10898 RVA: 0x000169E0 File Offset: 0x00014BE0
[Token(Token = "0x6002A92")]
[Address(RVA = "0x2379AE0", Offset = "0x23788E0", VA = "0x182379AE0")]
public static bool TryEnsureSufficientExecutionStack()
{
return default(bool);
}
/// <summary>Designates a body of code as a constrained execution region (CER).</summary>
// Token: 0x06002A93 RID: 10899 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A93")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
[MonoTODO]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
[MonoTODO("Currently a no-op")]
public static void PrepareConstrainedRegions()
{
}
// Token: 0x06002A94 RID: 10900 RVA: 0x000169F8 File Offset: 0x00014BF8
[Token(Token = "0x6002A94")]
[Address(RVA = "0x190E080", Offset = "0x190CE80", VA = "0x18190E080")]
public static bool IsReferenceOrContainsReferences<T>()
{
return default(bool);
}
}
}