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

Method MutableRepeatedMessage

depends/protobuf/google/protobuf/extension_set.cc:463–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463MessageLite* ExtensionSet::MutableRepeatedMessage(int number, int index) {
464 map<int, Extension>::iterator iter = extensions_.find(number);
465 GOOGLE_CHECK(iter != extensions_.end()) << "Index out-of-bounds (field is empty).";
466 GOOGLE_DCHECK_TYPE(iter->second, REPEATED, MESSAGE);
467 return iter->second.repeated_message_value->Mutable(index);
468}
469
470MessageLite* ExtensionSet::AddMessage(int number, FieldType type,
471 const MessageLite& prototype,

Callers 2

DiscardUnknownFieldsMethod · 0.45
MutableMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
MutableMethod · 0.45

Tested by

no test coverage detected