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

Method GetAsBinaryString

cpp/src/value_classes/ValueBitSet.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86string const ValueBitSet::GetAsBinaryString
87(
88) const
89{
90 uint32 n = GetValue();
91 std::string r;
92 while(n!=0) {r=(n%2==0 ?"0":"1")+r; n/=2;}
93 return "0b" + r;
94}
95
96uint32 ValueBitSet::GetValue
97(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected