2 Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved
4 This file is part of Embedded Proto.
6 Embedded Proto is open source software: you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as published
8 by the Free Software Foundation, version 3 of the license.
10 Embedded Proto is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License
for more details.
15 You should have received a copy of the GNU General Public License
16 along with Embedded Proto. If
not, see <https:
18 For commercial and closed source application please visit:
26 Johan Huizingalaan 763a
32 {%
if field.oneof is
not none %}
33 if(
id::{{field.get_variable_id_name()}} != {{field.get_which_oneof()}})
35 init_{{field.get_oneof_name()}}(id::{{field.get_variable_id_name()}});
38 return_value = {{field.get_variable_name()}}.deserialize(buffer);
39 {%
if field.oneof is
not none %}
42 clear_{{field.get_name()}}();
49 return_value = ::EmbeddedProto::Error::INVALID_WIRETYPE;