Function rosidl_runtime_c__U16String__resize

Function Documentation

bool rosidl_runtime_c__U16String__resize(rosidl_runtime_c__U16String *str, size_t n)

Resize the uint16_t pointer.

This function resize the input value pointer.

Parameters:

n[in] the new size of the internal buffer

Returns:

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