Closed MarijnS95 closed 2 years ago
On certain platforms, like when cross-compiling to Android, strings are defined as u8 instead of i8. The c_char type abstracts this detail away and is used in bindgen, and should hence be used in this cast too.
u8
i8
c_char
On certain platforms, like when cross-compiling to Android, strings are defined as
u8
instead ofi8
. Thec_char
type abstracts this detail away and is used in bindgen, and should hence be used in this cast too.