Vuo
0.4.2
|
Each Vuo Type provides 3 methods:
<Type> <Type>_valueFromString(const char * initializer)
— Converts a string representation of a <Type>
value to an actual <Type>
value. If <Type>
is reference counted, this function must register the returned value (e.g. with vuoRegister()
).char * <Type>_stringFromValue(const Type value)
— Converts a <Type>
value to its string representation. The returned C string must be heap-allocated, since it will be freed by the caller.char * <Type>_summaryFromValue(const Type value)
— Produces a brief human-readable summary of value
. The returned C string must be heap-allocated, since it will be freed by the caller.<Type>_valueFromString
is called when a composition starts running to initialize each port value. <Type>_valueFromString
and <Type>_stringFromValue
are called by the running composition to serialize and unserialize port values and node instance data when the composition is live-updated.