x-posting here coz it is also relevant <https://ko...
# kotlin-native
a
e
https://kotlinlang.org/docs/native-dynamic-libraries.html#generated-headers-file there could definitely be more docs, but a non-primitive type
example.Clazz
in a library named
native
is exposed to C as a
Copy code
typedef struct {
  libnative_KNativePtr pinned;
} libnative_kref_example_Clazz;
this applies to
kotlin.Array
as well, which becomes
typedef struct { libnative_KNativePtr pinned; } libnative_kref_kotlin_Array