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

Method strVectorToRepeatedField

library/RemoteTools.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95using google::protobuf::MessageLite;
96
97void DFHack::strVectorToRepeatedField(RepeatedPtrField<std::string> *pf,
98 const std::vector<std::string> &vec)
99{
100 for (size_t i = 0; i < vec.size(); ++i)
101 *pf->Add() = vec[i];
102}
103
104void DFHack::describeEnum(RepeatedPtrField<EnumItemName> *pf, int base,
105 int size, const char* const *names)

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected