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

Function flagarray_to_ints

library/include/RemoteTools.h:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 */
75 template<class T>
76 void flagarray_to_ints(RepeatedField<google::protobuf::int32> *pf, const BitArray<T> &val) {
77 for (size_t i = 0; i < size_t(val.size()*8); i++)
78 if (val.is_set(T(i)))
79 pf->Add(i);
80 }
81
82 using dfproto::EnumItemName;
83

Callers 1

describeMaterialMethod · 0.85

Calls 3

is_setMethod · 0.80
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected