ecs_parse_expr

Function ecs_parse_expr 

Source
pub unsafe extern "C" fn ecs_parse_expr(
    world: *mut ecs_world_t,
    ptr: *const c_char,
    value: *mut ecs_value_t,
    desc: *const ecs_parse_expr_desc_t,
) -> *const c_char
Expand description

Parse expression into value. This operation parses a flecs expression into the provided pointer. The memory pointed to must be large enough to contain a value of the used type.

If no type and pointer are provided for the value argument, the operation will discover the type from the expression and allocate storage for the value. The allocated value must be freed with ecs_value_free.

@param world The world. @param ptr The pointer to the expression to parse. @param value The value containing type & pointer to write to. @param desc Configuration parameters for deserializer. @return Pointer to the character after the last one read, or NULL if failed.