13[
TypeForwardedFrom(
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
14public readonly
struct UIntPtr :
IEquatable<nuint>,
IComparable,
IComparable<nuint>,
ISpanFormattable,
IFormattable,
ISerializable,
IBinaryInteger<nuint>,
IBinaryNumber<nuint>,
IBitwiseOperators<nuint, nuint, nuint>,
INumber<nuint>,
IAdditionOperators<nuint, nuint, nuint>,
IAdditiveIdentity<nuint, nuint>,
IComparisonOperators<nuint, nuint>,
IEqualityOperators<nuint, nuint>,
IDecrementOperators<nuint>,
IDivisionOperators<nuint, nuint, nuint>,
IIncrementOperators<nuint>,
IModulusOperators<nuint, nuint, nuint>,
IMultiplicativeIdentity<nuint, nuint>,
IMultiplyOperators<nuint, nuint, nuint>,
ISpanParseable<nuint>,
IParseable<nuint>,
ISubtractionOperators<nuint, nuint, nuint>,
IUnaryNegationOperators<nuint, nuint>,
IUnaryPlusOperators<nuint, nuint>,
IShiftOperators<nuint, nuint>,
IMinMaxValue<nuint>,
IUnsignedNumber<nuint>
16 private unsafe readonly
void*
_value;
48 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
51 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
54 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
57 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
60 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
63 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
86 ulong
uInt =
info.GetUInt64(
"value");
113 ulong num = (ulong)
_value;
114 return (
int)num ^ (int)(num >> 32);
162 return (ulong)
value._value;
241 return ((ulong)
_value).ToString();
271 return (
UIntPtr)ulong.Parse(
s, style);
313 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
319 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
326 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
333 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
340 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
347 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
354 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
361 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
368 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
374 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
380 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
386 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
392 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
398 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
401 return left <= right;
404 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
410 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
413 return left >= right;
416 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
422 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
428 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
431 return left == right;
434 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
437 return left != right;
440 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
446 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
452 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
458 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
464 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
471 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
476 return (
byte)(object)
value;
480 return (
char)(object)
value;
486 return (nuint)(ulong)(decimal)(object)
value;
490 return (nuint)(double)(
object)
value;
498 return (nuint)(int)(
object)
value;
502 return (nuint)(long)(
object)
value;
510 return (nuint)(sbyte)(
object)
value;
514 return (nuint)(float)(
object)
value;
518 return (ushort)(object)
value;
522 return (uint)(object)
value;
526 return (nuint)(ulong)(
object)
value;
538 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
543 return (
byte)(object)
value;
547 return (
char)(object)
value;
551 decimal num = (decimal)(
object)
value;
552 if (!(num > (decimal)(ulong)
MaxValue))
556 return (nuint)(ulong)num;
610 return (nuint)(nint)
intPtr;
616 sbyte
b = (sbyte)(
object)
value;
638 return (ushort)(object)
value;
642 return (uint)(object)
value;
662 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
667 return (
byte)(object)
value;
671 return (
char)(object)
value;
675 return (nuint)(ulong)(decimal)(object)
value;
679 return (nuint)(double)(
object)
value;
687 return (nuint)(int)(
object)
value;
691 return (nuint)(long)(
object)
value;
699 return (nuint)(sbyte)(
object)
value;
703 return (nuint)(float)(
object)
value;
707 return (ushort)(object)
value;
711 return (uint)(object)
value;
715 return (nuint)(ulong)(
object)
value;
725 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
731 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
737 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
743 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
749 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
755 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
758 return (nuint)(int)((
value != 0) ? 1
u : 0
u);
762 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
767 result = (byte)(
object)
value;
772 result = (char)(
object)
value;
777 decimal num = (decimal)(
object)
value;
783 result = (nuint)(ulong)num;
794 result = (nuint)
num2;
805 result = (nuint)
num3;
816 result = (nuint)
num4;
827 result = (nuint)
num5;
838 result = (nuint)(nint)
intPtr;
843 sbyte
b = (sbyte)(
object)
value;
860 result = (nuint)
num6;
865 result = (ushort)(
object)
value;
870 result = (uint)(
object)
value;
881 result = (nuint)
num7;
894 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
900 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
906 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
912 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
918 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
924 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
930 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
936 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
942 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
948 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
954 [
RequiresPreviewFeatures(
"Generic Math is in preview.", Url =
"https://aka.ms/dotnet-warnings/generic-math-preview")]
static bool Is64BitProcess
static byte Clamp(byte value, byte min, byte max)
static byte Min(byte val1, byte val2)
static int DivRem(int a, int b, out int result)
static byte Max(byte val1, byte val2)
static int TrailingZeroCount(int value)
static bool IsPow2(int value)
static int PopCount(uint value)
static int Log2(uint value)
static uint RotateRight(uint value, int offset)
static int LeadingZeroCount(uint value)
static uint RotateLeft(uint value, int offset)
static string Arg_MustBeUIntPtr
static void ThrowNotSupportedException(ExceptionResource resource)
static TResult AdditiveIdentity
static TSelf RotateRight(TSelf value, int rotateAmount)
static TSelf LeadingZeroCount(TSelf value)
static TSelf PopCount(TSelf value)
static TSelf TrailingZeroCount(TSelf value)
static TSelf RotateLeft(TSelf value, int rotateAmount)
static bool IsPow2(TSelf value)
static TSelf Log2(TSelf value)
static TResult MultiplicativeIdentity
static TSelf Max(TSelf x, TSelf y)
static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out TSelf result)
static TSelf Parse(string s, NumberStyles style, IFormatProvider? provider)
static TSelf Sign(TSelf value)
static TSelf Min(TSelf x, TSelf y)
static TSelf Abs(TSelf value)
static TSelf Clamp(TSelf value, TSelf min, TSelf max)
static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out TSelf result)
static TSelf Parse(string s, IFormatProvider? provider)
static bool TryParse(ReadOnlySpan< char > s, IFormatProvider? provider, out TSelf result)
static TSelf Parse(ReadOnlySpan< char > s, IFormatProvider? provider)
void GetObjectData(SerializationInfo info, StreamingContext context)
unsafe string ToString(IFormatProvider? provider)
static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out UIntPtr result)
unsafe override bool Equals([NotNullWhen(true)] object? obj)
unsafe bool Equals(UIntPtr other)
static readonly UIntPtr Zero
static bool TryParse(ReadOnlySpan< char > s, NumberStyles style, IFormatProvider? provider, out UIntPtr result)
static unsafe bool operator!=(UIntPtr value1, UIntPtr value2)
unsafe bool TryFormat(Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? provider=null)
unsafe int CompareTo(object? value)
static UIntPtr Parse(string s, IFormatProvider? provider)
static nuint IMinMaxValue< UIntPtr >. MinValue
static UIntPtr Parse(string s, NumberStyles style, IFormatProvider? provider)
unsafe UIntPtr(ulong value)
static unsafe UIntPtr operator-(UIntPtr pointer, int offset)
unsafe void * ToPointer()
static unsafe bool operator==(UIntPtr value1, UIntPtr value2)
static unsafe UIntPtr operator+(UIntPtr pointer, int offset)
static nuint nuint Remainder INumber< UIntPtr >. DivRem(nuint left, nuint right)
static UIntPtr Parse(ReadOnlySpan< char > s, NumberStyles style=NumberStyles.Integer, IFormatProvider? provider=null)
static UIntPtr Subtract(UIntPtr pointer, int offset)
static bool TryParse([NotNullWhen(true)] string? s, out UIntPtr result)
unsafe readonly void * _value
unsafe override string ToString()
unsafe UIntPtr(void *value)
unsafe string ToString(string? format, IFormatProvider? provider)
unsafe override int GetHashCode()
static UIntPtr Parse(string s)
static nuint IMinMaxValue< UIntPtr >. MaxValue
unsafe string ToString(string? format)
static bool TryParse(ReadOnlySpan< char > s, out UIntPtr result)
unsafe int CompareTo(UIntPtr value)
unsafe UIntPtr(SerializationInfo info, StreamingContext context)
unsafe UIntPtr(uint value)
static UIntPtr Parse(string s, NumberStyles style)
static UIntPtr Add(UIntPtr pointer, int offset)