using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// Provides a way to access a managed object from unmanaged memory.
// 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)
{
}
/// Gets a value indicating whether the handle is allocated.
///
/// if the handle is allocated; otherwise, .
// 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);
}
}
/// Gets or sets the object this handle represents.
/// The object this handle represents.
/// The handle was freed, or never initialized.
// 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
{
}
}
/// Retrieves the address of an object in a handle.
/// The address of the pinned object as an .
/// The handle is any type other than .
// Token: 0x06002CEF RID: 11503 RVA: 0x00018E88 File Offset: 0x00017088
[Token(Token = "0x6002CEF")]
[Address(RVA = "0x2CEE0D0", Offset = "0x2CED0D0", VA = "0x182CEE0D0")]
public IntPtr AddrOfPinnedObject()
{
return 0;
}
/// Allocates a handle for the specified object.
/// The object that uses the .
/// A new that protects the object from garbage collection. This must be released with when it is no longer needed.
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
// 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);
}
/// Allocates a handle of the specified type for the specified object.
/// The object that uses the .
/// One of the values, indicating the type of to create.
/// A new of the specified type. This must be released with when it is no longer needed.
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
// 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);
}
/// Releases a .
/// The handle was freed or never initialized.
// Token: 0x06002CF2 RID: 11506 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002CF2")]
[Address(RVA = "0x2CEE270", Offset = "0x2CED270", VA = "0x182CEE270")]
public void Free()
{
}
/// A is stored using an internal integer representation.
/// The for which the integer is required.
/// The integer value.
// 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;
}
/// A is stored using an internal integer representation.
/// An that indicates the handle for which the conversion is required.
/// The stored object using an internal integer representation.
// 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;
}
/// Returns a value indicating whether two objects are equal.
/// A object to compare with the parameter.
/// A object to compare with the parameter.
///
/// if the and parameters are equal; otherwise, .
// 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);
}
/// Determines whether the specified object is equal to the current object.
/// The object to compare with the current object.
///
/// if the specified object is equal to the current object; otherwise, .
// 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);
}
/// Returns an identifier for the current object.
/// An identifier for the current object.
// 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;
}
/// Returns a new object created from a handle to a managed object.
/// An handle to a managed object to create a object from.
/// A new object that corresponds to the value parameter.
/// The value of the parameter is .
// 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);
}
/// Returns the internal integer representation of a object.
/// A object to retrieve an internal integer representation from.
/// An object that represents a object.
// 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;
}
}