Function rosidl_runtime_c__U16String__assign

Function Documentation

bool rosidl_runtime_c__U16String__assign(rosidl_runtime_c__U16String *str, const uint16_t *value)

Assign the uint16_t pointer to the rosidl_runtime_c__U16String structure.

This function is identical to rosidl_runtime_c__U16String__assignn() except the length of the uint16_t does not have to be given. rosidl_runtime_c__U16String__len() is being used to determine the length of the passed string.

Parameters:
Returns:

true if successful, false if the passed string pointer is null or if the passed value pointer is null or if the size is higher than SIZE_MAX or if the memory reallocation failed.