dlite-type-cast#
Data types for instance properties.
Functions
-
int dlite_type_copy_cast(void *dest, DLiteType dest_type, size_t dest_size, const void *src, DLiteType src_type, size_t src_size)#
Copies value from
src
todest
. Ifdest_type
anddest_size
differs fromsrc_type
andsrc_size
the value will be casted, if possible.If
dest_type
contains allocated data, new memory will be allocated fordest
. Information may get lost in this case.Returns non-zero on error.