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

176 lines
8.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System
{
/// <summary>A platform-specific type that is used to represent a pointer or a handle.</summary>
// Token: 0x020001B3 RID: 435
[Token(Token = "0x20001B3")]
[ComVisible(true)]
[CLSCompliant(false)]
[Serializable]
public struct UIntPtr : ISerializable
{
/// <summary>Initializes a new instance of <see cref="T:System.UIntPtr" /> using the specified 64-bit pointer or handle.</summary>
/// <param name="value">A pointer or handle contained in a 64-bit unsigned integer.</param>
/// <exception cref="T:System.OverflowException">On a 32-bit platform, <paramref name="value" /> is too large to represent as an <see cref="T:System.UIntPtr" />.</exception>
// Token: 0x060010D7 RID: 4311 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010D7")]
[Address(RVA = "0x3BB7EF0", Offset = "0x3BB6EF0", VA = "0x183BB7EF0")]
public UIntPtr(ulong value)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.UIntPtr" /> structure using the specified 32-bit pointer or handle.</summary>
/// <param name="value">A pointer or handle contained in a 32-bit unsigned integer.</param>
// Token: 0x060010D8 RID: 4312 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010D8")]
[Address(RVA = "0x3BB7F60", Offset = "0x3BB6F60", VA = "0x183BB7F60")]
public UIntPtr(uint value)
{
}
/// <summary>Initializes a new instance of <see cref="T:System.UIntPtr" /> using the specified pointer to an unspecified type.</summary>
/// <param name="value">A pointer to an unspecified type.</param>
// Token: 0x060010D9 RID: 4313 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010D9")]
[Address(RVA = "0x593200", Offset = "0x592200", VA = "0x180593200")]
[CLSCompliant(false)]
public unsafe UIntPtr(void* value)
{
}
/// <summary>Returns a value indicating whether this instance is equal to a specified object.</summary>
/// <param name="obj">An object to compare with this instance or <see langword="null" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is an instance of <see cref="T:System.UIntPtr" /> and equals the value of this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060010DA RID: 4314 RVA: 0x0000D500 File Offset: 0x0000B700
[Token(Token = "0x60010DA")]
[Address(RVA = "0x3BB7D40", Offset = "0x3BB6D40", VA = "0x183BB7D40", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
// Token: 0x060010DB RID: 4315 RVA: 0x0000D518 File Offset: 0x0000B718
[Token(Token = "0x60010DB")]
[Address(RVA = "0x5C1530", Offset = "0x5C0530", VA = "0x1805C1530", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Converts the numeric value of this instance to its equivalent string representation.</summary>
/// <returns>The string representation of the value of this instance.</returns>
// Token: 0x060010DC RID: 4316 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60010DC")]
[Address(RVA = "0x3BB7E50", Offset = "0x3BB6E50", VA = "0x183BB7E50", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the data needed to serialize the current <see cref="T:System.UIntPtr" /> object.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object to populate with data.</param>
/// <param name="context">The destination for this serialization. (This parameter is not used; specify <see langword="null" />.)</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is <see langword="null" />.</exception>
// Token: 0x060010DD RID: 4317 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010DD")]
[Address(RVA = "0x3BB7DD0", Offset = "0x3BB6DD0", VA = "0x183BB7DD0", Slot = "4")]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Determines whether two specified instances of <see cref="T:System.UIntPtr" /> are equal.</summary>
/// <param name="value1">The first pointer or handle to compare.</param>
/// <param name="value2">The second pointer or handle to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value1" /> equals <paramref name="value2" />; otherwise, <see langword="false" />.</returns>
// Token: 0x060010DE RID: 4318 RVA: 0x0000D530 File Offset: 0x0000B730
[Token(Token = "0x60010DE")]
[Address(RVA = "0x52DD60", Offset = "0x52CD60", VA = "0x18052DD60")]
public static bool operator ==(UIntPtr value1, UIntPtr value2)
{
return default(bool);
}
/// <summary>Converts the value of the specified <see cref="T:System.UIntPtr" /> to a 64-bit unsigned integer.</summary>
/// <param name="value">The pointer or handle to convert.</param>
/// <returns>The contents of <paramref name="value" />.</returns>
// Token: 0x060010DF RID: 4319 RVA: 0x0000D548 File Offset: 0x0000B748
[Token(Token = "0x60010DF")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
public static explicit operator ulong(UIntPtr value)
{
return 0UL;
}
/// <summary>Converts the value of the specified <see cref="T:System.UIntPtr" /> to a 32-bit unsigned integer.</summary>
/// <param name="value">The pointer or handle to convert.</param>
/// <returns>The contents of <paramref name="value" />.</returns>
/// <exception cref="T:System.OverflowException">On a 64-bit platform, the value of <paramref name="value" /> is too large to represent as a 32-bit unsigned integer.</exception>
// Token: 0x060010E0 RID: 4320 RVA: 0x0000D560 File Offset: 0x0000B760
[Token(Token = "0x60010E0")]
[Address(RVA = "0x593060", Offset = "0x592060", VA = "0x180593060")]
public static explicit operator uint(UIntPtr value)
{
return 0U;
}
/// <summary>Converts the value of a 64-bit unsigned integer to an <see cref="T:System.UIntPtr" />.</summary>
/// <param name="value">A 64-bit unsigned integer.</param>
/// <returns>A new instance of <see cref="T:System.UIntPtr" /> initialized to <paramref name="value" />.</returns>
/// <exception cref="T:System.OverflowException">On a 32-bit platform, <paramref name="value" /> is too large to represent as an <see cref="T:System.UIntPtr" />.</exception>
// Token: 0x060010E1 RID: 4321 RVA: 0x0000D578 File Offset: 0x0000B778
[Token(Token = "0x60010E1")]
[Address(RVA = "0x3BB7F70", Offset = "0x3BB6F70", VA = "0x183BB7F70")]
public static explicit operator UIntPtr(ulong value)
{
return 0;
}
/// <summary>Converts the specified pointer to an unspecified type to an <see cref="T:System.UIntPtr" />.
/// This API is not CLS-compliant.</summary>
/// <param name="value">A pointer to an unspecified type.</param>
/// <returns>A new instance of <see cref="T:System.UIntPtr" /> initialized to <paramref name="value" />.</returns>
// Token: 0x060010E2 RID: 4322 RVA: 0x0000D590 File Offset: 0x0000B790
[Token(Token = "0x60010E2")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
[CLSCompliant(false)]
public unsafe static explicit operator UIntPtr(void* value)
{
return 0;
}
/// <summary>Gets the size of this instance.</summary>
/// <returns>The size of a pointer or handle on this platform, measured in bytes. The value of this property is 4 on a 32-bit platform, and 8 on a 64-bit platform.</returns>
// Token: 0x1700019A RID: 410
// (get) Token: 0x060010E3 RID: 4323 RVA: 0x0000D5A8 File Offset: 0x0000B7A8
[Token(Token = "0x1700019A")]
public static int Size
{
[Token(Token = "0x60010E3")]
[Address(RVA = "0x681E00", Offset = "0x680E00", VA = "0x180681E00")]
get
{
return 0;
}
}
/// <summary>A read-only field that represents a pointer or handle that has been initialized to zero.</summary>
// Token: 0x0400089E RID: 2206
[Token(Token = "0x400089E")]
public static readonly UIntPtr Zero;
// Token: 0x0400089F RID: 2207
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x400089F")]
private unsafe void* _pointer;
}
}