A convenience macro to allocate reference counted data with
the size of the given
This macro calls
casts the returned pointer to a pointer of the given
avoiding a type cast in the source code.
|This function is not directly available to language bindings|