| 60 | } |
| 61 | |
| 62 | bool ipv4_option_impl::deserialize(vsomeip_v3::deserializer* _from) { |
| 63 | bool is_successful = option_impl::deserialize(_from) && length_ == VSOMEIP_SD_IPV4_OPTION_LENGTH; |
| 64 | uint8_t its_reserved(static_cast<std::uint8_t>(layer_four_protocol_e::UNKNOWN)); |
| 65 | _from->deserialize(address_.data(), 4); |
| 66 | _from->deserialize(its_reserved); |
| 67 | _from->deserialize(its_reserved); |
| 68 | switch (static_cast<layer_four_protocol_e>(its_reserved)) { |
| 69 | case layer_four_protocol_e::TCP: |
| 70 | case layer_four_protocol_e::UDP: |
| 71 | protocol_ = static_cast<layer_four_protocol_e>(its_reserved); |
| 72 | break; |
| 73 | default: |
| 74 | protocol_ = layer_four_protocol_e::UNKNOWN; |
| 75 | } |
| 76 | _from->deserialize(port_); |
| 77 | return is_successful; |
| 78 | } |
| 79 | |
| 80 | } // namespace sd |
| 81 | } // namespace vsomeip_v3 |
nothing calls this directly
no test coverage detected