Function rosidl_runtime_c__type_description__KeyValue__init

Function Documentation

bool rosidl_runtime_c__type_description__KeyValue__init(rosidl_runtime_c__type_description__KeyValue *msg)

Initialize msg/KeyValue 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__KeyValue

)) before or use

rosidl_runtime_c__type_description__KeyValue__create() to allocate and initialize the message.

Returns:

true if initialization was successful, otherwise false