MCPcopy Create free account
hub / github.com/DFHack/dfhack / bitfield_to_json_array

Function bitfield_to_json_array

plugins/orders.cpp:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208template<typename B>
209static void bitfield_to_json_array(Json::Value & out, B bits)
210{
211 std::vector<std::string> names;
212 bitfield_to_string(&names, bits);
213
214 for (auto & it : names)
215 {
216 out.append(it);
217 }
218}
219
220template<typename B>
221static void json_array_to_bitfield(B & bits, Json::Value & arr)

Callers 1

orders_export_commandFunction · 0.85

Calls 1

bitfield_to_stringFunction · 0.50

Tested by

no test coverage detected