struct IntPtr
A platform-specific type that is used to represent a pointer or a handle.
public IntPtr( int value )
Initializes a new instance of using the specified 32-bit pointer or handle.
valueA pointer or handle contained in a 32-bit signed integer.
public IntPtr( long value )
Initializes a new instance of using the specified 64-bit pointer.
valueA pointer or handle contained in a 64-bit signed integer.
public IntPtr( void* value )
Initializes a new instance of using the specified pointer to an unspecified type.
valueA pointer to an unspecified type.
public static IntPtr Add( IntPtr pointer, int offset )
Adds an offset to the value of a pointer.
pointerThe pointer to add the offset to.offsetThe offset to add.- Returns A new pointer that reflects the addition of to .
public bool Equals( object obj )
Returns a value indicating whether this instance is equal to a specified object.
objAn object to compare with this instance or .- Returns if is an instance of and equals the value of this instance; otherwise, .
public static IntPtr op_Addition( IntPtr pointer, int offset )
Adds an offset to the value of a pointer.
pointerThe pointer to add the offset to.offsetThe offset to add.- Returns A new pointer that reflects the addition of to .
public static bool op_Equality( IntPtr value1, IntPtr value2 )
Determines whether two specified instances of are equal.
value1The first pointer or handle to compare.value2The second pointer or handle to compare.- Returns if equals ; otherwise, .
public static bool op_Inequality( IntPtr value1, IntPtr value2 )
Determines whether two specified instances of are not equal.
value1The first pointer or handle to compare.value2The second pointer or handle to compare.- Returns if does not equal ; otherwise, .
public static IntPtr op_Subtraction( IntPtr pointer, int offset )
Subtracts an offset from the value of a pointer.
pointerThe pointer to subtract the offset from.offsetThe offset to subtract.- Returns A new pointer that reflects the subtraction of from .
public static int Size { get; }
Gets the size of this instance.
- Returns The size of a pointer or handle in this process, measured in bytes. The value of this property is 4 in a 32-bit process, and 8 in a 64-bit process. You can define the process type by setting the switch when you compile your code with the C# and Visual Basic compilers.
public static IntPtr Subtract( IntPtr pointer, int offset )
Subtracts an offset from the value of a pointer.
pointerThe pointer to subtract the offset from.offsetThe offset to subtract.- Returns A new pointer that reflects the subtraction of from .
public string ToString( string format )
Converts the numeric value of the current object to its equivalent string representation.
formatA format specification that governs how the current object is converted.- Returns The string representation of the value of the current object.
public static IntPtr Zero
A read-only field that represents a pointer or handle that has been initialized to zero.
public static long op_Explicit( IntPtr value )
😔 No documentation found.
public static IntPtr RotateLeft( IntPtr value, int rotateAmount )
😔 No documentation found.
public static IntPtr RotateRight( IntPtr value, int rotateAmount )
😔 No documentation found.
public static IntPtr TrailingZeroCount( IntPtr value )
😔 No documentation found.
public static bool IsPow2( IntPtr value )
😔 No documentation found.
public static IntPtr Log2( IntPtr value )
😔 No documentation found.
public static IntPtr Clamp( IntPtr value, IntPtr min, IntPtr max )
😔 No documentation found.
public static IntPtr CopySign( IntPtr value, IntPtr sign )
😔 No documentation found.
public static IntPtr Max( IntPtr x, IntPtr y )
😔 No documentation found.
public static IntPtr Min( IntPtr x, IntPtr y )
😔 No documentation found.
public static int Sign( IntPtr value )
😔 No documentation found.
public static IntPtr Abs( IntPtr value )
😔 No documentation found.
public static IntPtr CreateChecked( TOther value )
😔 No documentation found.
public static IntPtr CreateSaturating( TOther value )
😔 No documentation found.
public static IntPtr CreateTruncating( TOther value )
😔 No documentation found.
public static bool IsEvenInteger( IntPtr value )
😔 No documentation found.
public static bool IsNegative( IntPtr value )
😔 No documentation found.
public static bool IsOddInteger( IntPtr value )
😔 No documentation found.
public static bool IsPositive( IntPtr value )
😔 No documentation found.
public static IntPtr MaxMagnitude( IntPtr x, IntPtr y )
😔 No documentation found.
public static IntPtr MinMagnitude( IntPtr x, IntPtr y )
😔 No documentation found.
public static IntPtr Parse( ReadOnlySpan<byte> utf8Text, NumberStyles style = Integer, IFormatProvider provider = null )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.
public static IntPtr Parse( ReadOnlySpan<byte> utf8Text, IFormatProvider provider )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<byte> utf8Text, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public int ToInt32( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public static IntPtr PopCount( IntPtr value )
😔 No documentation found.
public static bool TryParse( string s, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.
public static IntPtr LeadingZeroCount( IntPtr value )
😔 No documentation found.
public static int op_Explicit( IntPtr value )
😔 No documentation found.
public static void* op_Explicit( IntPtr value )
😔 No documentation found.
public static IntPtr op_Explicit( void* value )
😔 No documentation found.
public static IntPtr op_Explicit( long value )
😔 No documentation found.
public void* ToPointer( )
😔 No documentation found.
public static IntPtr MaxValue { get; }
😔 No documentation found.
public static IntPtr MinValue { get; }
😔 No documentation found.
public int CompareTo( object value )
😔 No documentation found.
public int CompareTo( IntPtr value )
😔 No documentation found.
public bool Equals( IntPtr other )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public static IntPtr op_Explicit( int value )
😔 No documentation found.
public string ToString( IFormatProvider provider )
😔 No documentation found.
public string ToString( string format, IFormatProvider provider )
😔 No documentation found.
public bool TryFormat( Span<char> destination, ref int charsWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )
😔 No documentation found.
public bool TryFormat( Span<byte> utf8Destination, ref int bytesWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null )
😔 No documentation found.
public static IntPtr Parse( string s )
😔 No documentation found.
public static IntPtr Parse( string s, NumberStyles style )
😔 No documentation found.
public static IntPtr Parse( string s, IFormatProvider provider )
😔 No documentation found.
public static IntPtr Parse( string s, NumberStyles style, IFormatProvider provider )
😔 No documentation found.
public static IntPtr Parse( ReadOnlySpan<char> s, IFormatProvider provider )
😔 No documentation found.
public static IntPtr Parse( ReadOnlySpan<char> s, NumberStyles style = Integer, IFormatProvider provider = null )
😔 No documentation found.
public static bool TryParse( string s, ref IntPtr result )
😔 No documentation found.
public long ToInt64( )
😔 No documentation found.
public static bool TryParse( string s, NumberStyles style, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<char> s, ref IntPtr result )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<byte> utf8Text, ref IntPtr result )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<char> s, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.
public static ValueTuple<IntPtr,IntPtr> DivRem( IntPtr left, IntPtr right )
😔 No documentation found.
public static bool TryParse( ReadOnlySpan<char> s, NumberStyles style, IFormatProvider provider, ref IntPtr result )
😔 No documentation found.