MCPcopy Create free account
hub / github.com/COVESA/vsomeip / set_data

Method set_data

implementation/message/src/serializer.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void serializer::set_data(byte_t* _data, uint32_t _capacity) {
82 data_.clear();
83 try {
84 data_.insert(data_.end(), _data, _data + _capacity);
85 } catch (const std::bad_alloc& e) {
86 VSOMEIP_ERROR << "Couldn't allocate memory in serializer::set_data" << e.what();
87 }
88}
89
90void serializer::reset() {
91 if (buffer_shrink_threshold_) {

Callers 15

sendMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
initMethod · 0.45
on_messageMethod · 0.45
initMethod · 0.45
on_messageMethod · 0.45
initMethod · 0.45
on_messageMethod · 0.45
sendMethod · 0.45
notifyMethod · 0.45
initMethod · 0.45

Calls 3

insertMethod · 0.80
endMethod · 0.80
clearMethod · 0.45

Tested by 15

initMethod · 0.36
on_messageMethod · 0.36
initMethod · 0.36
on_messageMethod · 0.36
initMethod · 0.36
on_messageMethod · 0.36
sendMethod · 0.36
notifyMethod · 0.36
initMethod · 0.36
TESTFunction · 0.36
send_messagesMethod · 0.36
run_testMethod · 0.36