Function rmw_get_serialized_message_size
Defined in File rmw.h
Function Documentation
-
rmw_ret_t rmw_get_serialized_message_size(const rosidl_message_type_support_t *type_support, const rosidl_runtime_c__Sequence__bound *message_bounds, size_t *size)
Compute the size of a serialized message.
Given a message definition and bounds, compute the serialized size.
- Parameters:
type_support – [in] The type support of the message to compute.
message_bounds – [in] Artifical bounds to use on unbounded fields.
size – [out] The computed size of the serialized message.
- Returns:
RMW_RET_OK
if successful, or- Returns:
RMW_RET_INVALID_ARGUMENT
if either argument is null, or- Returns:
RMW_RET_UNSUPPORTED
if it’s unimplemented, or- Returns:
RMW_RET_ERROR
if an unexpected error occurs.