Files
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x02000586 RID: 1414
[Token(Token = "0x2000586")]
[MonoTODO]
[ComVisible(true)]
[MonoTODO("Struct should be [StructLayout(LayoutKind.Sequential)] but will need to be reordered for that.")]
public struct GCHandle
{
// Token: 0x06002AD5 RID: 10965 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AD5")]
[Address(RVA = "0x2379D70", Offset = "0x2378B70", VA = "0x182379D70")]
private GCHandle(IntPtr h)
{
}
// Token: 0x06002AD6 RID: 10966 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AD6")]
[Address(RVA = "0x2379D10", Offset = "0x2378B10", VA = "0x182379D10")]
private GCHandle(object obj)
{
}
// Token: 0x06002AD7 RID: 10967 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AD7")]
[Address(RVA = "0x2379D40", Offset = "0x2378B40", VA = "0x182379D40")]
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: 0x17000655 RID: 1621
// (get) Token: 0x06002AD8 RID: 10968 RVA: 0x00016A88 File Offset: 0x00014C88
[Token(Token = "0x17000655")]
public bool IsAllocated
{
[Token(Token = "0x6002AD8")]
[Address(RVA = "0x901960", Offset = "0x900760", VA = "0x180901960")]
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: 0x17000656 RID: 1622
// (get) Token: 0x06002AD9 RID: 10969 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002ADA RID: 10970 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000656")]
public object Target
{
[Token(Token = "0x6002AD9")]
[Address(RVA = "0x2379D90", Offset = "0x2378B90", VA = "0x182379D90")]
get
{
return null;
}
[Token(Token = "0x6002ADA")]
[Address(RVA = "0x2379E10", Offset = "0x2378C10", VA = "0x182379E10")]
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: 0x06002ADB RID: 10971 RVA: 0x00016AA0 File Offset: 0x00014CA0
[Token(Token = "0x6002ADB")]
[Address(RVA = "0x23799D0", Offset = "0x23787D0", VA = "0x1823799D0")]
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: 0x06002ADC RID: 10972 RVA: 0x00016AB8 File Offset: 0x00014CB8
[Token(Token = "0x6002ADC")]
[Address(RVA = "0x2379AD0", Offset = "0x23788D0", VA = "0x182379AD0")]
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: 0x06002ADD RID: 10973 RVA: 0x00016AD0 File Offset: 0x00014CD0
[Token(Token = "0x6002ADD")]
[Address(RVA = "0x2379AB0", Offset = "0x23788B0", VA = "0x182379AB0")]
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: 0x06002ADE RID: 10974 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002ADE")]
[Address(RVA = "0x2379B80", Offset = "0x2378980", VA = "0x182379B80")]
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: 0x06002ADF RID: 10975 RVA: 0x00016AE8 File Offset: 0x00014CE8
[Token(Token = "0x6002ADF")]
[Address(RVA = "0x2379D00", Offset = "0x2378B00", VA = "0x182379D00")]
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: 0x06002AE0 RID: 10976 RVA: 0x00016B00 File Offset: 0x00014D00
[Token(Token = "0x6002AE0")]
[Address(RVA = "0x2379C10", Offset = "0x2378A10", VA = "0x182379C10")]
public static explicit operator GCHandle(IntPtr value)
{
return default(GCHandle);
}
// Token: 0x06002AE1 RID: 10977 RVA: 0x00016B18 File Offset: 0x00014D18
[Token(Token = "0x6002AE1")]
[Address(RVA = "0x2379AE0", Offset = "0x23788E0", VA = "0x182379AE0")]
private static bool CheckCurrentDomain(int handle)
{
return default(bool);
}
// Token: 0x06002AE2 RID: 10978 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002AE2")]
[Address(RVA = "0x2379CF0", Offset = "0x2378AF0", VA = "0x182379CF0")]
private static object GetTarget(int handle)
{
return null;
}
// Token: 0x06002AE3 RID: 10979 RVA: 0x00016B30 File Offset: 0x00014D30
[Token(Token = "0x6002AE3")]
[Address(RVA = "0x2379CE0", Offset = "0x2378AE0", VA = "0x182379CE0")]
private static int GetTargetHandle(object obj, int handle, GCHandleType type)
{
return 0;
}
// Token: 0x06002AE4 RID: 10980 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AE4")]
[Address(RVA = "0x2379B70", Offset = "0x2378970", VA = "0x182379B70")]
private static void FreeHandle(int handle)
{
}
// Token: 0x06002AE5 RID: 10981 RVA: 0x00016B48 File Offset: 0x00014D48
[Token(Token = "0x6002AE5")]
[Address(RVA = "0x2379CD0", Offset = "0x2378AD0", VA = "0x182379CD0")]
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: 0x06002AE6 RID: 10982 RVA: 0x00016B60 File Offset: 0x00014D60
[Token(Token = "0x6002AE6")]
[Address(RVA = "0x164A970", Offset = "0x1649770", VA = "0x18164A970")]
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: 0x06002AE7 RID: 10983 RVA: 0x00016B78 File Offset: 0x00014D78
[Token(Token = "0x6002AE7")]
[Address(RVA = "0x2379AF0", Offset = "0x23788F0", VA = "0x182379AF0", 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: 0x06002AE8 RID: 10984 RVA: 0x00016B90 File Offset: 0x00014D90
[Token(Token = "0x6002AE8")]
[Address(RVA = "0x164A950", Offset = "0x1649750", VA = "0x18164A950", 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: 0x06002AE9 RID: 10985 RVA: 0x00016BA8 File Offset: 0x00014DA8
[Token(Token = "0x6002AE9")]
[Address(RVA = "0x2379C10", Offset = "0x2378A10", VA = "0x182379C10")]
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: 0x06002AEA RID: 10986 RVA: 0x00016BC0 File Offset: 0x00014DC0
[Token(Token = "0x6002AEA")]
[Address(RVA = "0x2379D00", Offset = "0x2378B00", VA = "0x182379D00")]
public static IntPtr ToIntPtr(GCHandle value)
{
return 0;
}
// Token: 0x0400193B RID: 6459
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400193B")]
private int handle;
}
}