In C the APIs are usually consumed like this: ``` ...
# kotlin-native
a
In C the APIs are usually consumed like this:
Copy code
int value;
getValue(&value);
return value
m
Copy code
var UIColor.red: Int
        get() = memScoped {
            val r = alloc<IntVar>()
            getRed(r.ptr)
            r.value
        }
        set(r) {
            setRed(r)
        }
👍 2
☝🏻 1
a
Ah, sweet! Thanks