How can I pass a uninitialized value to a C ffi function in @rustlang? Should I use maybeuninit?
-
-
-
Replying to @rustlang
Thanks. Is it mandatory to call assume_int() then? I just need to get it as a mut_ptr that I need to pass around (I am making a safe wrapper around my unsafe c bindings)
1 reply 0 retweets 0 likes
Replying to @mattiascibien
After the C returns, yeah. See https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#out-pointers …
5:42 AM - 19 Aug 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.