MCPcopy Create free account
hub / github.com/COVESA/vsomeip / operator==

Method operator==

implementation/message/src/payload_impl.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22payload_impl::payload_impl(const payload_impl& _payload) : data_(_payload.data_) { }
23
24bool payload_impl::operator==(const payload& _other) const {
25 bool is_equal{get_length() == _other.get_length()};
26 if (is_equal) {
27 is_equal = (0 == std::memcmp(get_data(), _other.get_data(), get_length()));
28 }
29 return is_equal;
30}
31
32byte_t* payload_impl::get_data() {
33 return data_.data();

Callers

nothing calls this directly

Calls 2

get_lengthMethod · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected