| 101 | } |
| 102 | |
| 103 | bool Bitfield::IsSet( uint8 _idx )const |
| 104 | { |
| 105 | if (_idx > 0x1F) { |
| 106 | return false; |
| 107 | } |
| 108 | if( (unsigned int)(_idx>>5) < (unsigned int)m_bits.size() ) |
| 109 | { |
| 110 | return( ( m_bits[_idx>>5] & (1<<(_idx&0x1f)) ) !=0 ); |
| 111 | } |
| 112 | return false; |
| 113 | } |
| 114 | |
| 115 | uint32 Bitfield::GetNumSetBits() const |
| 116 | { |
no test coverage detected