Extract the fields of a C struct

后端 未结 7 724
盖世英雄少女心
盖世英雄少女心 2020-12-24 08:56

I often have to write code in other languages that interact with C structs. Most typically this involves writing Python code with the struct or ctypes modules.

So I

7条回答
  •  既然无缘
    2020-12-24 09:31

    Have a look at Swig or SIP that would generate interface code for you or use ctypes.

提交回复
热议问题