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

Method MutableRepeatedString

depends/protobuf/google/protobuf/extension_set.cc:392–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392string* ExtensionSet::MutableRepeatedString(int number, int index) {
393 map<int, Extension>::iterator iter = extensions_.find(number);
394 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty).";
395 GOOGLE_DCHECK_TYPE(iter->second, REPEATED, STRING);
396 return iter->second.repeated_string_value->Mutable(index);
397}
398
399string* ExtensionSet::AddString(int number, FieldType type,
400 const FieldDescriptor* descriptor) {

Callers 1

MutableFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
MutableMethod · 0.45

Tested by

no test coverage detected