How do I get a pointer to the first element in an ...
# kotlin-native
k
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