ecs_primitive_to_expr_buf

Function ecs_primitive_to_expr_buf 

Source
pub unsafe extern "C" fn ecs_primitive_to_expr_buf(
    world: *const ecs_world_t,
    kind: ecs_primitive_kind_t,
    data: *const c_void,
    buf: *mut ecs_strbuf_t,
) -> c_int
Expand description

Serialize primitive value into string buffer. Serializes a primitive value to an ecs_strbuf_t instance. This operation can be reused by other serializers to avoid having to write boilerplate code that serializes primitive values to a string.

@param world The world. @param kind The kind of primitive value. @param data The value ot serialize @param buf The strbuf to append the string to. @return Zero if success, non-zero if failed.