I'm trying to understand C interop for some iOS na...
# multiplatform
t
I'm trying to understand C interop for some iOS native code I'm writing. Is it possible to convert ${type}Var to ${type}? I have a CValuesRef<${type}Var> and I need to access the $Type. So I need to grab the ${type}Var from within the CValuesRef and then convert that to ${type}.
This seems to work.
Copy code
<CValuesRef instance>.getPointer(MemScope())?.pointed?.value
Is this the best way?