Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/InteropServices/GCHandle.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

243 lines
12 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// <summary>Provides a way to access a managed object from unmanaged memory.</summary>
// Token: 0x020005A5 RID: 1445
[Token(Token = "0x20005A5")]
[MonoTODO]
[ComVisible(true)]
[MonoTODO("Struct should be [StructLayout(LayoutKind.Sequential)] but will need to be reordered for that.")]
public struct GCHandle
{
// Token: 0x06002CE9 RID: 11497 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CE9")]
[Address(RVA = "0x2CEE460", Offset = "0x2CED460", VA = "0x182CEE460")]
private GCHandle(IntPtr h)
{
}
// Token: 0x06002CEA RID: 11498 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CEA")]
[Address(RVA = "0x2CEE400", Offset = "0x2CED400", VA = "0x182CEE400")]
private GCHandle(object obj)
{
}
// Token: 0x06002CEB RID: 11499 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CEB")]
[Address(RVA = "0x2CEE430", Offset = "0x2CED430", VA = "0x182CEE430")]
internal GCHandle(object value, GCHandleType type)
{
}
/// <summary>Gets a value indicating whether the handle is allocated.</summary>
/// <returns>
/// <see langword="true" /> if the handle is allocated; otherwise, <see langword="false" />.</returns>
// Token: 0x170006CD RID: 1741
// (get) Token: 0x06002CEC RID: 11500 RVA: 0x00018E70 File Offset: 0x00017070
[Token(Token = "0x170006CD")]
public bool IsAllocated
{
[Token(Token = "0x6002CEC")]
[Address(RVA = "0x14E4320", Offset = "0x14E3320", VA = "0x1814E4320")]
get
{
return default(bool);
}
}
/// <summary>Gets or sets the object this handle represents.</summary>
/// <returns>The object this handle represents.</returns>
/// <exception cref="T:System.InvalidOperationException">The handle was freed, or never initialized.</exception>
// Token: 0x170006CE RID: 1742
// (get) Token: 0x06002CED RID: 11501 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002CEE RID: 11502 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170006CE")]
public object Target
{
[Token(Token = "0x6002CED")]
[Address(RVA = "0x2CEE480", Offset = "0x2CED480", VA = "0x182CEE480")]
get
{
return null;
}
[Token(Token = "0x6002CEE")]
[Address(RVA = "0x2CEE500", Offset = "0x2CED500", VA = "0x182CEE500")]
set
{
}
}
/// <summary>Retrieves the address of an object in a <see cref="F:System.Runtime.InteropServices.GCHandleType.Pinned" /> handle.</summary>
/// <returns>The address of the pinned object as an <see cref="T:System.IntPtr" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The handle is any type other than <see cref="F:System.Runtime.InteropServices.GCHandleType.Pinned" />.</exception>
// Token: 0x06002CEF RID: 11503 RVA: 0x00018E88 File Offset: 0x00017088
[Token(Token = "0x6002CEF")]
[Address(RVA = "0x2CEE0D0", Offset = "0x2CED0D0", VA = "0x182CEE0D0")]
public IntPtr AddrOfPinnedObject()
{
return 0;
}
/// <summary>Allocates a <see cref="F:System.Runtime.InteropServices.GCHandleType.Normal" /> handle for the specified object.</summary>
/// <param name="value">The object that uses the <see cref="T:System.Runtime.InteropServices.GCHandle" />.</param>
/// <returns>A new <see cref="T:System.Runtime.InteropServices.GCHandle" /> that protects the object from garbage collection. This <see cref="T:System.Runtime.InteropServices.GCHandle" /> must be released with <see cref="M:System.Runtime.InteropServices.GCHandle.Free" /> when it is no longer needed.</returns>
/// <exception cref="T:System.ArgumentException">An instance with nonprimitive (non-blittable) members cannot be pinned.</exception>
// Token: 0x06002CF0 RID: 11504 RVA: 0x00018EA0 File Offset: 0x000170A0
[Token(Token = "0x6002CF0")]
[Address(RVA = "0x2CEE1D0", Offset = "0x2CED1D0", VA = "0x182CEE1D0")]
public static GCHandle Alloc(object value)
{
return default(GCHandle);
}
/// <summary>Allocates a handle of the specified type for the specified object.</summary>
/// <param name="value">The object that uses the <see cref="T:System.Runtime.InteropServices.GCHandle" />.</param>
/// <param name="type">One of the <see cref="T:System.Runtime.InteropServices.GCHandleType" /> values, indicating the type of <see cref="T:System.Runtime.InteropServices.GCHandle" /> to create.</param>
/// <returns>A new <see cref="T:System.Runtime.InteropServices.GCHandle" /> of the specified type. This <see cref="T:System.Runtime.InteropServices.GCHandle" /> must be released with <see cref="M:System.Runtime.InteropServices.GCHandle.Free" /> when it is no longer needed.</returns>
/// <exception cref="T:System.ArgumentException">An instance with nonprimitive (non-blittable) members cannot be pinned.</exception>
// Token: 0x06002CF1 RID: 11505 RVA: 0x00018EB8 File Offset: 0x000170B8
[Token(Token = "0x6002CF1")]
[Address(RVA = "0x2CEE1B0", Offset = "0x2CED1B0", VA = "0x182CEE1B0")]
public static GCHandle Alloc(object value, GCHandleType type)
{
return default(GCHandle);
}
/// <summary>Releases a <see cref="T:System.Runtime.InteropServices.GCHandle" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The handle was freed or never initialized.</exception>
// Token: 0x06002CF2 RID: 11506 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CF2")]
[Address(RVA = "0x2CEE270", Offset = "0x2CED270", VA = "0x182CEE270")]
public void Free()
{
}
/// <summary>A <see cref="T:System.Runtime.InteropServices.GCHandle" /> is stored using an internal integer representation.</summary>
/// <param name="value">The <see cref="T:System.Runtime.InteropServices.GCHandle" /> for which the integer is required.</param>
/// <returns>The integer value.</returns>
// Token: 0x06002CF3 RID: 11507 RVA: 0x00018ED0 File Offset: 0x000170D0
[Token(Token = "0x6002CF3")]
[Address(RVA = "0x2CEE3F0", Offset = "0x2CED3F0", VA = "0x182CEE3F0")]
public static explicit operator IntPtr(GCHandle value)
{
return 0;
}
/// <summary>A <see cref="T:System.Runtime.InteropServices.GCHandle" /> is stored using an internal integer representation.</summary>
/// <param name="value">An <see cref="T:System.IntPtr" /> that indicates the handle for which the conversion is required.</param>
/// <returns>The stored <see cref="T:System.Runtime.InteropServices.GCHandle" /> object using an internal integer representation.</returns>
// Token: 0x06002CF4 RID: 11508 RVA: 0x00018EE8 File Offset: 0x000170E8
[Token(Token = "0x6002CF4")]
[Address(RVA = "0x2CEE300", Offset = "0x2CED300", VA = "0x182CEE300")]
public static explicit operator GCHandle(IntPtr value)
{
return default(GCHandle);
}
// Token: 0x06002CF5 RID: 11509 RVA: 0x00018F00 File Offset: 0x00017100
[Token(Token = "0x6002CF5")]
[Address(RVA = "0xAE5C70", Offset = "0xAE4C70", VA = "0x180AE5C70")]
private static bool CheckCurrentDomain(int handle)
{
return default(bool);
}
// Token: 0x06002CF6 RID: 11510 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002CF6")]
[Address(RVA = "0x2CEE3E0", Offset = "0x2CED3E0", VA = "0x182CEE3E0")]
private static object GetTarget(int handle)
{
return null;
}
// Token: 0x06002CF7 RID: 11511 RVA: 0x00018F18 File Offset: 0x00017118
[Token(Token = "0x6002CF7")]
[Address(RVA = "0x2CEE3D0", Offset = "0x2CED3D0", VA = "0x182CEE3D0")]
private static int GetTargetHandle(object obj, int handle, GCHandleType type)
{
return 0;
}
// Token: 0x06002CF8 RID: 11512 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CF8")]
[Address(RVA = "0x2CEE260", Offset = "0x2CED260", VA = "0x182CEE260")]
private static void FreeHandle(int handle)
{
}
// Token: 0x06002CF9 RID: 11513 RVA: 0x00018F30 File Offset: 0x00017130
[Token(Token = "0x6002CF9")]
[Address(RVA = "0x2CEE3C0", Offset = "0x2CED3C0", VA = "0x182CEE3C0")]
private static IntPtr GetAddrOfPinnedObject(int handle)
{
return 0;
}
/// <summary>Returns a value indicating whether two <see cref="T:System.Runtime.InteropServices.GCHandle" /> objects are equal.</summary>
/// <param name="a">A <see cref="T:System.Runtime.InteropServices.GCHandle" /> object to compare with the <paramref name="b" /> parameter.</param>
/// <param name="b">A <see cref="T:System.Runtime.InteropServices.GCHandle" /> object to compare with the <paramref name="a" /> parameter.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="a" /> and <paramref name="b" /> parameters are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x06002CFA RID: 11514 RVA: 0x00018F48 File Offset: 0x00017148
[Token(Token = "0x6002CFA")]
[Address(RVA = "0x593050", Offset = "0x592050", VA = "0x180593050")]
public static bool operator ==(GCHandle a, GCHandle b)
{
return default(bool);
}
/// <summary>Determines whether the specified <see cref="T:System.Runtime.InteropServices.GCHandle" /> object is equal to the current <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</summary>
/// <param name="o">The <see cref="T:System.Runtime.InteropServices.GCHandle" /> object to compare with the current <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</param>
/// <returns>
/// <see langword="true" /> if the specified <see cref="T:System.Runtime.InteropServices.GCHandle" /> object is equal to the current <see cref="T:System.Runtime.InteropServices.GCHandle" /> object; otherwise, <see langword="false" />.</returns>
// Token: 0x06002CFB RID: 11515 RVA: 0x00018F60 File Offset: 0x00017160
[Token(Token = "0x6002CFB")]
[Address(RVA = "0x2CEE1E0", Offset = "0x2CED1E0", VA = "0x182CEE1E0", Slot = "0")]
public override bool Equals(object o)
{
return default(bool);
}
/// <summary>Returns an identifier for the current <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</summary>
/// <returns>An identifier for the current <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</returns>
// Token: 0x06002CFC RID: 11516 RVA: 0x00018F78 File Offset: 0x00017178
[Token(Token = "0x6002CFC")]
[Address(RVA = "0x592FE0", Offset = "0x591FE0", VA = "0x180592FE0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Returns a new <see cref="T:System.Runtime.InteropServices.GCHandle" /> object created from a handle to a managed object.</summary>
/// <param name="value">An <see cref="T:System.IntPtr" /> handle to a managed object to create a <see cref="T:System.Runtime.InteropServices.GCHandle" /> object from.</param>
/// <returns>A new <see cref="T:System.Runtime.InteropServices.GCHandle" /> object that corresponds to the value parameter.</returns>
/// <exception cref="T:System.InvalidOperationException">The value of the <paramref name="value" /> parameter is <see cref="F:System.IntPtr.Zero" />.</exception>
// Token: 0x06002CFD RID: 11517 RVA: 0x00018F90 File Offset: 0x00017190
[Token(Token = "0x6002CFD")]
[Address(RVA = "0x2CEE300", Offset = "0x2CED300", VA = "0x182CEE300")]
public static GCHandle FromIntPtr(IntPtr value)
{
return default(GCHandle);
}
/// <summary>Returns the internal integer representation of a <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</summary>
/// <param name="value">A <see cref="T:System.Runtime.InteropServices.GCHandle" /> object to retrieve an internal integer representation from.</param>
/// <returns>An <see cref="T:System.IntPtr" /> object that represents a <see cref="T:System.Runtime.InteropServices.GCHandle" /> object.</returns>
// Token: 0x06002CFE RID: 11518 RVA: 0x00018FA8 File Offset: 0x000171A8
[Token(Token = "0x6002CFE")]
[Address(RVA = "0x2CEE3F0", Offset = "0x2CED3F0", VA = "0x182CEE3F0")]
public static IntPtr ToIntPtr(GCHandle value)
{
return 0;
}
// Token: 0x040019FE RID: 6654
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40019FE")]
private int handle;
}
}