Function rosidl_runtime_c__type_description__Field__init
Defined in File field__functions.h
Function Documentation
-
bool rosidl_runtime_c__type_description__Field__init(rosidl_runtime_c__type_description__Field *msg)
Initialize msg/Field message.
If the init function is called twice for the same message without calling fini inbetween previously allocated memory will be leaked.
- Parameters:
msg – [inout]
The previously allocated message pointer. Fields without a default value will not be initialized by this function. You might want to call memset(msg, 0, sizeof(
rosidl_runtime_c__type_description__Field
)) before or use
rosidl_runtime_c__type_description__Field__create() to allocate and initialize the message.- Returns:
true if initialization was successful, otherwise false