MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Clear

Method Clear

cpp/src/Bitfield.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool Bitfield::Clear( uint8 _idx )
91{
92 if (_idx > 0x1F) {
93 return false;
94 }
95 if( IsSet(_idx) )
96 {
97 m_bits[_idx>>5] &= ~(1<<(_idx&0x1f));
98 --m_numSetBits;
99 }
100 return true;
101}
102
103bool Bitfield::IsSet( uint8 _idx )const
104{

Callers 1

ClearBitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected