MCPcopy Create free account
hub / github.com/apache/mesos / Clear

Method Clear

src/tests/common/http_tests.pb.cc:321–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void TestSlaveMessage::Clear() {
322// @@protoc_insertion_point(message_clear_start:mesos.test.TestSlaveMessage)
323 ::google::protobuf::uint32 cached_has_bits = 0;
324 // Prevent compiler warnings about cached_has_bits being unused
325 (void) cached_has_bits;
326
327 some_slave_fields_.Clear();
328 some_slave_map_.Clear();
329 some_slave_enums_.Clear();
330 cached_has_bits = _has_bits_[0];
331 if (cached_has_bits & 3u) {
332 ::memset(&some_slave_field_, 0, static_cast<size_t>(
333 reinterpret_cast<char*>(&some_slave_enum_) -
334 reinterpret_cast<char*>(&some_slave_field_)) + sizeof(some_slave_enum_));
335 }
336 _has_bits_.Clear();
337 _internal_metadata_.Clear();
338}
339
340bool TestSlaveMessage::MergePartialFromCodedStream(
341 ::google::protobuf::io::CodedInputStream* input) {

Callers 12

foreachMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
clear_some_slave_mapMethod · 0.80
sendMethod · 0.80
AttributesClass · 0.80
AttributesClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected