Function rosidl_runtime_c__type_description__Field__copy

Function Documentation

bool rosidl_runtime_c__type_description__Field__copy(const rosidl_runtime_c__type_description__Field *input, rosidl_runtime_c__type_description__Field *output)

Copy a msg/Field message.

This functions performs a deep copy, as opposed to the shallow copy that plain assignment yields.

Parameters:
  • input[in] The source message pointer.

  • output[out] The target message pointer, which must have been initialized before calling this function.

Returns:

true if successful, or false if either pointer is null or memory allocation fails.