Return TypeFunction nameArguments
unsigned intCountBits(const void*,unsigned int,)

Declared in file: hzDatabase.h
Defined in file : hdbIdset.cpp

Function Logic:

0:START 1:!buf 2:Return -1 3:uber nCount nBits 4:nCount 5:nBits 6:Return nBits

Function body:

unsigned int CountBits (const void* buf, unsigned int nBytes)
{
   const uchar*    uber ;
   uint32_t        nCount ;
   uint32_t        nBits ;
   if (!buf)
       return -1;
   uber = (uchar*) buf ;
   for (nBits = nCount = 0; nCount < nBytes ; nCount++)
       nBits += s_BitArray[uber[nCount]] ;
   return nBits ;
}