rust repr align (2). As described in the FFI guide, you can add attributes to structs to use the same layout as C: #[repr(C)] struct Object { a: i32, ...
確定! 回上一頁