Skip to content

Commit

Permalink
Set initial values for output parameters.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Mar 23, 2021
1 parent 7c42eb6 commit c83f80a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,11 @@ if isinstance(type_, AbstractNestedType):

static size_t _@(message.structure.namespaced_type.name)__max_serialized_size(bool & full_bounded, bool & is_plain)
{
// Start considering the type is plain.
// Internal methods will set values to false when necessary.
full_bounded = true;
is_plain = true;

return max_serialized_size_@('__'.join([package_name] + list(interface_path.parents[0].parts) + [message.structure.namespaced_type.name]))(
full_bounded, is_plain, 0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ static uint32_t _@(message.structure.namespaced_type.name)__get_serialized_size(

static size_t _@(message.structure.namespaced_type.name)__max_serialized_size(bool & full_bounded, bool & is_plain)
{
// Start considering the type is plain.
// Internal methods will set values to false when necessary.
full_bounded = true;
is_plain = true;

return max_serialized_size_@(message.structure.namespaced_type.name)(full_bounded, is_plain, 0);
}

Expand Down

0 comments on commit c83f80a

Please sign in to comment.