https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
k

kevin.cianfarini

12/27/2022, 11:34 PM
How do I get a pointer to the first element in an
Array<SomeCStruct>
? I'm using it with the
iovec
struct for
readv
system calls. All of the
addressOf
calls seems to be implemented only for primitive array types like
ByteArray
and
String
. The
readv
syscall expects a
CValuesRef<iovec>
as a parameter which I am struggling to conjure.
🤦‍♂️ nevermind, I think I want a
Placement.allocArray
38 Views