Function rosidl_runtime_c__type_description__TypeSource__Sequence__init

Function Documentation

bool rosidl_runtime_c__type_description__TypeSource__Sequence__init(rosidl_runtime_c__type_description__TypeSource__Sequence *array, size_t size)

Initialize array of msg/TypeSource messages.

It allocates the memory for the number of elements and calls rosidl_runtime_c__type_description__TypeSource__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