ooooh "&mut (some_ptr as *const c_void)" actually produces a different address than &some_ptr!! wow that took a long time to debug. still don't fully understand why. #rustlang FFI is particularly challenging for a newcomer.
-
-
*const SomeStructure (initialized to ptr::null()). The C function sets the ptr to different types of values depending on another arg (which is why it takes void**). In this case I know it will set it to a SomeStructure (not my API, btw)
-
Transmute is *extremely* dangerous, be careful! And yeah, read the nomicon for sure
End of conversation
New conversation -
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.