I am wondering if this is more of an unclearly defined memory ownership problem rather than a problem of what types you have to use to interact with C ABIs or FFI calls.
I mean you could also just abstract the allocation away and handle it after the function pointer to your bridge, right?
I mean you could also just abstract the allocation away and handle it after the function pointer to your bridge, right?