https://kotlinlang.org logo
Title
a

andylamax

01/16/2023, 1:45 PM
e

ephemient

01/16/2023, 2:03 PM
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
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