Function rosidl_stringify_type_hash

Function Documentation

rcutils_ret_t rosidl_stringify_type_hash(const rosidl_type_hash_t *type_hash, rcutils_allocator_t allocator, char **output_string)

Convert type hash to a standardized string representation.

Follows format RIHS{version}_{value}.

Parameters:
  • type_hash[in] Type hash to convert to string

  • allocator[in] Allocator to use for allocating string space

  • output_string[out] Handle to a pointer that will be set to the newly allocated null-terminated string representation.

Returns:

RCUTILS_RET_INVALID_ARGUMENT if any pointer arguments are null or allocator invalid

Returns:

RCUTILS_RET_BAD_ALLOC if space could not be allocated for resulting string

Returns:

RCUTILS_RET_OK otherwise