Function rosidl_runtime_c__U16String__assignn

Function Documentation

bool rosidl_runtime_c__U16String__assignn(rosidl_runtime_c__U16String *str, const uint16_t *value, size_t n)

Assign the uint16_t value of n characters to the rosidl_runtime_c__U16String structure.

This function returns false if memory cannot be allocated, if the input uint16_t pointer is null or if the size is higher than SIZE_MAX. In both cases no error message is set.

Parameters:
  • str[inout] a pointer to a U16 string structure

  • value[in] points to a sequence of 16 bit chars

  • n[in] size of the value string

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.