Define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT
Defined in File primitives_sequence_functions.h
Define Documentation
-
ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME)
Allocate the memory for the sequence.
Calling the function with an already allocated sequence will leak the previously allocated memory.
param sequence a pointer to a sequence struct param size the number of items to allocate in the sequence, both sequence fields
size
andcapacity
are set to this parameter return true if successful, false if the passed sequence pointer is null or the memory allocation failed