Byte.PopCount(Byte) Metod

Definition

Beräknar antalet bitar som anges i ett värde.

public:
 static System::Byte PopCount(System::Byte value) = System::Numerics::IBinaryInteger<System::Byte>::PopCount;
public static byte PopCount(byte value);
static member PopCount : byte -> byte
Public Shared Function PopCount (value As Byte) As Byte

Parametrar

value
Byte

Värdet vars angivna bitar ska räknas.

Returer

Antalet angivna bitar i value.

Implementeringar

Gäller för