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

Method deserialize

implementation/protocol/src/unsubscribe_command.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void unsubscribe_command::deserialize(const std::vector<byte_t>& _buffer, error_e& _error) {
33
34 size_t its_size(COMMAND_HEADER_SIZE + sizeof(service_) + sizeof(instance_) + sizeof(eventgroup_) + sizeof(major_) + sizeof(event_)
35 + sizeof(pending_id_));
36
37 if (its_size > _buffer.size()) {
38
39 _error = error_e::ERROR_NOT_ENOUGH_BYTES;
40 return;
41 }
42
43 // deserialize header
44 subscribe_command_base::deserialize(_buffer, _error);
45}
46
47} // namespace protocol
48} // namespace vsomeip

Callers

nothing calls this directly

Calls 2

deserializeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected