BitOperations.IsPow2 Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| IsPow2(Int32) |
Bewertet, ob der angegebene Int32 Wert eine Leistung von zwei ist. |
| IsPow2(Int64) |
Bewertet, ob der angegebene Int64 Wert eine Leistung von zwei ist. |
| IsPow2(IntPtr) |
Bestimmt, ob der angegebene Integralwert eine Leistung von 2 ist. |
| IsPow2(UInt32) |
Bewertet, ob der angegebene UInt32 Wert eine Leistung von zwei ist. |
| IsPow2(UInt64) |
Bewertet, ob der angegebene UInt64 Wert eine Leistung von zwei ist. |
| IsPow2(UIntPtr) |
Bestimmt, ob der angegebene Integralwert eine Leistung von 2 ist. |
IsPow2(Int32)
Bewertet, ob der angegebene Int32 Wert eine Leistung von zwei ist.
public:
static bool IsPow2(int value);
public static bool IsPow2 (int value);
static member IsPow2 : int -> bool
Public Shared Function IsPow2 (value As Integer) As Boolean
Parameter
- value
- Int32
Der Wert, der als Macht von zwei ausgewertet werden soll.
Gibt zurück
true wenn der angegebene Wert eine Leistung von zwei ist; false Andernfalls.
Gilt für:
IsPow2(Int64)
Bewertet, ob der angegebene Int64 Wert eine Leistung von zwei ist.
public:
static bool IsPow2(long value);
public static bool IsPow2 (long value);
static member IsPow2 : int64 -> bool
Public Shared Function IsPow2 (value As Long) As Boolean
Parameter
- value
- Int64
Der Wert, der als Macht von zwei ausgewertet werden soll.
Gibt zurück
true wenn der angegebene Wert eine Leistung von zwei ist; false Andernfalls.
Gilt für:
IsPow2(IntPtr)
Bestimmt, ob der angegebene Integralwert eine Leistung von 2 ist.
public:
static bool IsPow2(IntPtr value);
public static bool IsPow2 (IntPtr value);
static member IsPow2 : nativeint -> bool
Public Shared Function IsPow2 (value As IntPtr) As Boolean
Parameter
- value
-
IntPtr
nativeint
Der Wert.
Gibt zurück
true wenn der Wert eine Leistung von 2 ist; false Andernfalls.
Gilt für:
IsPow2(UInt32)
Wichtig
Diese API ist nicht CLS-kompatibel.
Bewertet, ob der angegebene UInt32 Wert eine Leistung von zwei ist.
public:
static bool IsPow2(System::UInt32 value);
[System.CLSCompliant(false)]
public static bool IsPow2 (uint value);
[<System.CLSCompliant(false)>]
static member IsPow2 : uint32 -> bool
Public Shared Function IsPow2 (value As UInteger) As Boolean
Parameter
- value
- UInt32
Der Wert, der als Macht von zwei ausgewertet werden soll.
Gibt zurück
true wenn der angegebene Wert eine Leistung von zwei ist; false Andernfalls.
- Attribute
Gilt für:
IsPow2(UInt64)
Wichtig
Diese API ist nicht CLS-kompatibel.
Bewertet, ob der angegebene UInt64 Wert eine Leistung von zwei ist.
public:
static bool IsPow2(System::UInt64 value);
[System.CLSCompliant(false)]
public static bool IsPow2 (ulong value);
[<System.CLSCompliant(false)>]
static member IsPow2 : uint64 -> bool
Public Shared Function IsPow2 (value As ULong) As Boolean
Parameter
- value
- UInt64
Der Wert, der als Macht von zwei ausgewertet werden soll.
Gibt zurück
true wenn der angegebene Wert eine Leistung von zwei ist; false Andernfalls.
- Attribute
Gilt für:
IsPow2(UIntPtr)
Wichtig
Diese API ist nicht CLS-kompatibel.
Bestimmt, ob der angegebene Integralwert eine Leistung von 2 ist.
public:
static bool IsPow2(UIntPtr value);
[System.CLSCompliant(false)]
public static bool IsPow2 (UIntPtr value);
[<System.CLSCompliant(false)>]
static member IsPow2 : unativeint -> bool
Public Shared Function IsPow2 (value As UIntPtr) As Boolean
Parameter
- value
-
UIntPtr
unativeint
Der Wert.
Gibt zurück
true wenn der Wert eine Leistung von 2 ist; false Andernfalls.
- Attribute