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

Method deserialize

implementation/protocol/src/resend_provided_events_command.cpp:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void resend_provided_events_command::deserialize(const std::vector<byte_t>& _buffer, error_e& _error) {
33
34 if (COMMAND_HEADER_SIZE + sizeof(remote_offer_id_) > _buffer.size()) {
35
36 _error = error_e::ERROR_NOT_ENOUGH_BYTES;
37 return;
38 }
39
40 // deserialize header
41 command::deserialize(_buffer, _error);
42 if (_error != error_e::ERROR_OK)
43 return;
44
45 // deserialize payload
46 std::memcpy(&remote_offer_id_, &_buffer[COMMAND_POSITION_PAYLOAD], sizeof(remote_offer_id_));
47}
48
49pending_remote_offer_id_t resend_provided_events_command::get_remote_offer_id() const {
50

Callers

nothing calls this directly

Calls 2

deserializeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected