Function rosidl_runtime_c__type_description__KeyValue__Sequence__init

Function Documentation

bool rosidl_runtime_c__type_description__KeyValue__Sequence__init(rosidl_runtime_c__type_description__KeyValue__Sequence *array, size_t size)

Initialize array of msg/KeyValue messages.

It allocates the memory for the number of elements and calls rosidl_runtime_c__type_description__KeyValue__init() for each element of the array.

to return true.

Parameters:
  • array[inout] The allocated array pointer.

  • size[in] The size / capacity of the array.

Returns:

true if initialization was successful, otherwise false If the array pointer is valid and the size is zero it is guaranteed