mscorlib(4.0.0.0) API with additions
|
A platform-specific type that is used to represent a pointer or a handle. More...
Public Member Functions | |
unsafe | UIntPtr (uint value) |
Initializes a new instance of the T:System.UIntPtr structure using the specified 32-bit pointer or handle. More... | |
unsafe | UIntPtr (ulong value) |
Initializes a new instance of T:System.UIntPtr using the specified 64-bit pointer or handle. More... | |
unsafe | UIntPtr (void *value) |
Initializes a new instance of T:System.UIntPtr using the specified pointer to an unspecified type. More... | |
unsafe void ISerializable. | GetObjectData (SerializationInfo info, StreamingContext context) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data needed to serialize the current T:System.UIntPtr object. More... | |
unsafe override bool | Equals (object obj) |
Returns a value indicating whether this instance is equal to a specified object. More... | |
unsafe override int | GetHashCode () |
Returns the hash code for this instance. More... | |
unsafe uint | ToUInt32 () |
Converts the value of this instance to a 32-bit unsigned integer. More... | |
unsafe ulong | ToUInt64 () |
Converts the value of this instance to a 64-bit unsigned integer. More... | |
unsafe override string | ToString () |
Converts the numeric value of this instance to its equivalent string representation. More... | |
unsafe void * | ToPointer () |
Converts the value of this instance to a pointer to an unspecified type. More... | |
Static Public Member Functions | |
static | operator UIntPtr (uint value) |
Converts the value of a 32-bit unsigned integer to an T:System.UIntPtr. More... | |
static | operator UIntPtr (ulong value) |
Converts the value of a 64-bit unsigned integer to an T:System.UIntPtr. More... | |
static unsafe | operator uint (UIntPtr value) |
Converts the value of the specified T:System.UIntPtr to a 32-bit unsigned integer. More... | |
static unsafe | operator ulong (UIntPtr value) |
Converts the value of the specified T:System.UIntPtr to a 64-bit unsigned integer. More... | |
static unsafe | operator UIntPtr (void *value) |
Converts the specified pointer to an unspecified type to a T:System.UIntPtr. More... | |
static unsafe | operator void * (UIntPtr value) |
Converts the value of the specified T:System.UIntPtr to a pointer to an unspecified type. More... | |
static unsafe bool | operator== (UIntPtr value1, UIntPtr value2) |
Determines whether two specified instances of T:System.UIntPtr are equal. More... | |
static unsafe bool | operator != (UIntPtr value1, UIntPtr value2) |
Determines whether two specified instances of T:System.UIntPtr are not equal. More... | |
static UIntPtr | Add (UIntPtr pointer, int offset) |
Adds an offset to the value of an unsigned pointer. More... | |
static UIntPtr | operator+ (UIntPtr pointer, int offset) |
Adds an offset to the value of an unsigned pointer. More... | |
static UIntPtr | Subtract (UIntPtr pointer, int offset) |
Subtracts an offset from the value of an unsigned pointer. More... | |
static UIntPtr | operator - (UIntPtr pointer, int offset) |
Subtracts an offset from the value of an unsigned pointer. More... | |
Static Public Attributes | |
static readonly UIntPtr | Zero |
A read-only field that represents a pointer or handle that has been initialized to zero. More... | |
Properties | |
static int | Size [get] |
Gets the size of this instance. More... | |
A platform-specific type that is used to represent a pointer or a handle.
Definition at line 14 of file UIntPtr.cs.
unsafe System.UIntPtr.UIntPtr | ( | uint | value | ) |
Initializes a new instance of the T:System.UIntPtr structure using the specified 32-bit pointer or handle.
value | A pointer or handle contained in a 32-bit unsigned integer. |
Definition at line 40 of file UIntPtr.cs.
unsafe System.UIntPtr.UIntPtr | ( | ulong | value | ) |
Initializes a new instance of T:System.UIntPtr using the specified 64-bit pointer or handle.
value | A pointer or handle contained in a 64-bit unsigned integer. |
T:System.OverflowException | On a 32-bit platform, value is too large to represent as an T:System.UIntPtr. |
Definition at line 51 of file UIntPtr.cs.
unsafe System.UIntPtr.UIntPtr | ( | void * | value | ) |
Initializes a new instance of T:System.UIntPtr using the specified pointer to an unspecified type.
value | A pointer to an unspecified type. |
Definition at line 61 of file UIntPtr.cs.
Adds an offset to the value of an unsigned pointer.
pointer | The unsigned pointer to add the offset to. |
offset | The offset to add. |
Definition at line 239 of file UIntPtr.cs.
unsafe override bool System.UIntPtr.Equals | ( | object | obj | ) |
Returns a value indicating whether this instance is equal to a specified object.
obj | An object to compare with this instance or null . |
true
if obj is an instance of T:System.UIntPtr and equals the value of this instance; otherwise, false
.Definition at line 98 of file UIntPtr.cs.
unsafe override int System.UIntPtr.GetHashCode | ( | ) |
Returns the hash code for this instance.
Definition at line 111 of file UIntPtr.cs.
unsafe void ISerializable. System.UIntPtr.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Populates a T:System.Runtime.Serialization.SerializationInfo object with the data needed to serialize the current T:System.UIntPtr object.
info | The T:System.Runtime.Serialization.SerializationInfo object to populate with data. |
context | The destination for this serialization. (This parameter is not used; specify null .) |
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 83 of file UIntPtr.cs.
Determines whether two specified instances of T:System.UIntPtr are not equal.
value1 | The first pointer or handle to compare. |
value2 | The second pointer or handle to compare. |
true
if value1 does not equal value2 ; otherwise, false
.Definition at line 229 of file UIntPtr.cs.
Subtracts an offset from the value of an unsigned pointer.
pointer | The unsigned pointer to subtract the offset from. |
offset | The offset to subtract. |
Definition at line 269 of file UIntPtr.cs.
|
explicitstatic |
Converts the value of the specified T:System.UIntPtr to a 32-bit unsigned integer.
value | The pointer or handle to convert. |
T:System.OverflowException | On a 64-bit platform, the value of value is too large to represent as a 32-bit unsigned integer. |
Definition at line 171 of file UIntPtr.cs.
|
explicitstatic |
Converts the value of a 32-bit unsigned integer to an T:System.UIntPtr.
value | A 32-bit unsigned integer. |
Definition at line 150 of file UIntPtr.cs.
|
explicitstatic |
Converts the value of a 64-bit unsigned integer to an T:System.UIntPtr.
value | A 64-bit unsigned integer. |
T:System.OverflowException | On a 32-bit platform, value is too large to represent as an T:System.UIntPtr. |
Definition at line 160 of file UIntPtr.cs.
|
explicitstatic |
Converts the specified pointer to an unspecified type to a T:System.UIntPtr.
value | A pointer to an unspecified type. |
Definition at line 192 of file UIntPtr.cs.
|
explicitstatic |
Converts the value of the specified T:System.UIntPtr to a 64-bit unsigned integer.
value | The pointer or handle to convert. |
Definition at line 181 of file UIntPtr.cs.
|
explicitstatic |
Converts the value of the specified T:System.UIntPtr to a pointer to an unspecified type.
value | The pointer or handle to convert. |
Definition at line 203 of file UIntPtr.cs.
Adds an offset to the value of an unsigned pointer.
pointer | The unsigned pointer to add the offset to. |
offset | The offset to add. |
Definition at line 249 of file UIntPtr.cs.
Determines whether two specified instances of T:System.UIntPtr are equal.
value1 | The first pointer or handle to compare. |
value2 | The second pointer or handle to compare. |
true
if value1 equals value2 ; otherwise, false
.Definition at line 216 of file UIntPtr.cs.
Subtracts an offset from the value of an unsigned pointer.
pointer | The unsigned pointer to subtract the offset from. |
offset | The offset to subtract. |
Definition at line 259 of file UIntPtr.cs.
unsafe void* System.UIntPtr.ToPointer | ( | ) |
Converts the value of this instance to a pointer to an unspecified type.
Definition at line 279 of file UIntPtr.cs.
unsafe override string System.UIntPtr.ToString | ( | ) |
Converts the numeric value of this instance to its equivalent string representation.
Definition at line 141 of file UIntPtr.cs.
unsafe uint System.UIntPtr.ToUInt32 | ( | ) |
Converts the value of this instance to a 32-bit unsigned integer.
T:System.OverflowException | On a 64-bit platform, the value of this instance is too large to represent as a 32-bit unsigned integer. |
Definition at line 122 of file UIntPtr.cs.
unsafe ulong System.UIntPtr.ToUInt64 | ( | ) |
Converts the value of this instance to a 64-bit unsigned integer.
Definition at line 132 of file UIntPtr.cs.
|
static |
A read-only field that represents a pointer or handle that has been initialized to zero.
Definition at line 20 of file UIntPtr.cs.
|
staticget |
Gets the size of this instance.
Definition at line 26 of file UIntPtr.cs.