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

Method deserialize

implementation/service_discovery/src/option_impl.cpp:34–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool option_impl::deserialize(vsomeip_v3::deserializer* _from) {
35 uint8_t its_type, reserved;
36 bool l_result = (0 != _from && _from->deserialize(length_) && _from->deserialize(its_type) && _from->deserialize(reserved));
37
38 if (l_result) {
39 switch (static_cast<option_type_e>(its_type)) {
40 case option_type_e::CONFIGURATION:
41 case option_type_e::LOAD_BALANCING:
42 case option_type_e::PROTECTION:
43 case option_type_e::IP4_ENDPOINT:
44 case option_type_e::IP6_ENDPOINT:
45 case option_type_e::IP4_MULTICAST:
46 case option_type_e::IP6_MULTICAST:
47 case option_type_e::SELECTIVE:
48 type_ = static_cast<option_type_e>(its_type);
49 break;
50 default:
51 type_ = option_type_e::UNKNOWN;
52 }
53 }
54
55 return l_result;
56}
57
58} // namespace sd
59} // namespace vsomeip_v3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected