feat: add ffi c_layout

This commit is contained in:
2020-11-20 23:41:58 +08:00
parent 220a582122
commit 6488b111d7
8 changed files with 197 additions and 1 deletions

5
__ffi/c_layout/README.md Normal file
View File

@@ -0,0 +1,5 @@
reference:
https://users.rust-lang.org/t/read-into-struct/30972/3
https://stackoverflow.com/questions/25410028/how-to-read-a-struct-from-a-file-in-rust