using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// Provides a way to access a managed object from unmanaged memory.
// 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)
{
}
/// Gets a value indicating whether the handle is allocated.
///
/// if the handle is allocated; otherwise, .
// 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);
}
}
/// Gets or sets the object this handle represents.
/// The object this handle represents.
/// The handle was freed, or never initialized.
// 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
{
}
}
/// 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: 0x06002ADB RID: 10971 RVA: 0x00016AA0 File Offset: 0x00014CA0
[Token(Token = "0x6002ADB")]
[Address(RVA = "0x23799D0", Offset = "0x23787D0", VA = "0x1823799D0")]
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: 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);
}
/// 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: 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);
}
/// Releases a .
/// The handle was freed or never initialized.
// Token: 0x06002ADE RID: 10974 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002ADE")]
[Address(RVA = "0x2379B80", Offset = "0x2378980", VA = "0x182379B80")]
public void Free()
{
}
/// A is stored using an internal integer representation.
/// The for which the integer is required.
/// The integer value.
// 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;
}
/// 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: 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;
}
/// 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: 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);
}
/// 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: 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);
}
/// Returns an identifier for the current object.
/// An identifier for the current object.
// 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;
}
/// 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: 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);
}
/// Returns the internal integer representation of a object.
/// A object to retrieve an internal integer representation from.
/// An object that represents a object.
// 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;
}
}