Function rosidl_runtime_c__U16String__assign
Defined in File u16string_functions.h
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:
str – [inout] a pointer to a rosidl_runtime_c__U16String structure
value – [in] points to a sequence of 16 bit chars
- 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.