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

Method Set

cpp/src/Bitfield.cpp:71–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71bool Bitfield::Set( uint8 _idx )
72{
73 if (_idx > 0x1F) {
74 return false;
75 }
76
77 if( !IsSet(_idx) )
78 {
79 uint32 newSize = (_idx>>5)+1;
80 if( newSize > m_bits.size() )
81 {
82 m_bits.resize( newSize, 0 );
83 }
84 m_bits[_idx>>5] |= (1<<(_idx&0x1f));
85 ++m_numSetBits;
86 }
87 return true;
88}
89
90bool Bitfield::Clear( uint8 _idx )
91{

Callers 15

AddTestInfoFunction · 0.45
GetCurrentExecutableNameFunction · 0.45
AddAssociationMethod · 0.45
SetValueMethod · 0.45
~HttpClientMethod · 0.45
StartDownloadMethod · 0.45
SendMsgMethod · 0.45
WriteNextMsgMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 4

AddTestInfoFunction · 0.36
GetCurrentExecutableNameFunction · 0.36
TestNetworkMethod · 0.36