Skip to main content

dwg_dynapi_common_set_value

Function dwg_dynapi_common_set_value 

Source
pub unsafe extern "C" fn dwg_dynapi_common_set_value(
    _obj: *mut c_void,
    fieldname: *const c_char,
    value: *const c_void,
    is_utf8: bool,
) -> bool
Expand description

Sets the common ENTITY or OBJECT.fieldname to a value. A malloc’ed struct is passed by ptr, not by the content. A non-malloc’ed struct is set by content. Arrays or strings must be malloced before. We just set the new pointer, the old value will be freed. If is_utf8 is set, the given value is a UTF-8 string, and will be converted to TV or TU.