You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well the problem is we can't have a proper size_of_val of an extern type (rust-lang/rust#49708, rust-lang/rust#43467), and because size_of_val of an extern type doesn't behave correctly when treated as a CStr, a Box<CStr> will not work either (size_of_val returning 0 means freeing the box will leak the string, aborting means... aborting).
I was researching
CStr
and ended up here. It looks pretty fleshed out to me, so I'm wondering what is happening with it now 🙂The text was updated successfully, but these errors were encountered: