Skip to main content

pamoja_ros2_percent_mangle

Function pamoja_ros2_percent_mangle 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ros2_percent_mangle( name: *const c_char, ) -> *mut PamojaString
Expand description

Percent-mangles a name as rmw_zenoh writes it in a liveliness token, each / as %.

§Arguments

  • name - the name to mangle, as null-terminated UTF-8.

§Returns

A string the caller must release with pamoja_string_free, or null if name is null.

§Safety

name must be a valid null-terminated UTF-8 string for the duration of the call, or null.