ecs_ptr_to_str

Function ecs_ptr_to_str 

Source
pub unsafe extern "C" fn ecs_ptr_to_str(
    world: *const ecs_world_t,
    type_: ecs_entity_t,
    data: *const c_void,
) -> *mut c_char
Expand description

Similar as ecs_ptr_to_expr, but serializes values to string. Whereas the output of ecs_ptr_to_expr is a valid expression, the output of ecs_ptr_to_str is a string representation of the value. In most cases the output of the two operations is the same, but there are some differences:

  • Strings are not quoted

@param world The world. @param type The type of the value to serialize. @param data The value to serialize. @return String with result, or NULL if failed.