Join Slack
Powered by
is there a way to pass a reference to a local UInt...
# kotlin-native
b
basher
06/10/2020, 2:18 AM
is there a way to pass a reference to a local UInt as a UIntVar, or do you have to use alloc to be able to pass such a pointer to a c function?
d
Dominaezzz
06/10/2020, 10:51 AM
You're going to have to allocate sadly.
👍 1
Dominaezzz
06/10/2020, 10:56 AM
You could also use a
UIntArray(1)
and pin it. Kotlin/Native will put it on the stack iirc.
👍 1
3
Views
Open in Slack
Previous
Next