UInt16.PopCount(UInt16) Methode

Definition

Berechnet die Anzahl der Bits, die in einem Wert festgelegt sind.

public:
 static System::UInt16 PopCount(System::UInt16 value) = System::Numerics::IBinaryInteger<System::UInt16>::PopCount;
public static ushort PopCount(ushort value);
static member PopCount : uint16 -> uint16
Public Shared Function PopCount (value As UShort) As UShort

Parameter

value
UInt16

Der Wert, dessen Setbits gezählt werden sollen.

Gibt zurück

Die Anzahl der festgelegten Bits in value.

Implementiert

Gilt für: