jacek.karaskiewicz
02/27/2019, 3:03 PMfun foo(bar: IntArray) {}
to a macOsX dynamic library, I “get” a compiled library with a generated header where kotlin IntArray type is mapped to libtest_kref_kotlin_IntArray
, where test
is the name of my library.
There seems to be no good way of constructing this object though, or at least it’s not defined in this header. Is there a way of consuming this library in a C program and somehow providing an object of that type?Dico
02/27/2019, 3:34 PMDico
02/27/2019, 3:34 PMolonho
02/27/2019, 3:43 PMDico
02/27/2019, 3:44 PMjacek.karaskiewicz
02/27/2019, 4:14 PMolonho
02/27/2019, 4:15 PMjacek.karaskiewicz
02/27/2019, 4:17 PMlibtest_kref_kotlin_IntArray
in my generated header, I would get int[]
olonho
02/28/2019, 8:25 AMint[]
and int*
are not equivalent types to IntArray