Zerax 发表于 2023-09-25 04:24
在做一些ffi,比较担心把图像数据交给c库处理的时候内存布局出问题。
https://users.rust-lang.org/t/does-repr-c-define-a-trait-i-can-use-to-check-structs-were-declared-with-repr-c/16323
评论区
写评论https://users.rust-lang.org/t/does-repr-c-define-a-trait-i-can-use-to-check-structs-were-declared-with-repr-c/16323