rjhdby
07/03/2018, 12:10 PMsomeHeader.h
struct my_strucs{
uint32_t id;
char * name;
}
What can I do for using it in Kotlin code?olonho
07/03/2018, 1:13 PM—-
separator, or refer someHeader in headers
section of the .def file, and then run cinterop tool on such def file. Please read INTEROP.md.rjhdby
07/03/2018, 1:26 PMpackage someHeader
class my_struct(rawPtr : NativePtr) : ...
But I can't find any docs about creating NativePtr
olonho
07/03/2018, 1:52 PMmy_strucs*
parameter then bridge will automatically produce structure class out of the pointer. And generally, calling C function or calling alloc
is pretty much the only way to get C structure.olonho
07/03/2018, 1:57 PMrjhdby
07/03/2018, 2:16 PMolonho
07/03/2018, 2:17 PMrjhdby
07/03/2018, 2:17 PM