Return Type | Function name | Arguments |
---|---|---|
bool | GetBits | (const unsigned char*,unsigned int,) |
Declared and defined in file: hdbIdset.cpp
Function Logic:
Function body:
bool GetBits (const unsigned char* pBitbuf, unsigned int nOset) { _hzfunc("__func__") ; if (!pBitbuf) return false ; switch (nOset%8) { case 0: return pBitbuf[nOset/8]& 0x80?true:false ; case 1: return pBitbuf[nOset/8]& 0x40?true:false ; case 2: return pBitbuf[nOset/8]& 0x20?true:false ; case 3: return pBitbuf[nOset/8]& 0x10?true:false ; case 4: return pBitbuf[nOset/8]& 0x08?true:false ; case 5: return pBitbuf[nOset/8]& 0x04?true:false ; case 6: return pBitbuf[nOset/8]& 0x02?true:false ; case 7: return pBitbuf[nOset/8]& 0x01?true:false ; } return false ; }