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

Method IsSet

cpp/src/Bitfield.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool 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
115uint32 Bitfield::GetNumSetBits() const
116{

Callers 2

IsValueSetMethod · 0.45
IteratorMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected