C# Class DistributedFileSystem.LongBitCount

Utility class used to count the number of set bits in a ulong
Show file Open project: MarcFletcher/NetworkComms.Net

Public Methods

Method Description
CountBits ( ulong inputLong ) : byte

Returns the number of bits set to 1 in a ulong

Method Details

CountBits() public static method

Returns the number of bits set to 1 in a ulong
public static CountBits ( ulong inputLong ) : byte
inputLong ulong The ulong to count
return byte