只需将所有四个参数传递给C函数。从以下位置更改Python代码:
fun(ctypes.c_void_p(indata.ctypes.data), ctypes.c_void_p(outdata.ctypes.data))
至:
fun(ctypes.c_void_p(indata.ctypes.data), ctypes.c_int(5), ctypes.c_int(6), ctypes.c_void_p(outdata.ctypes.data))
欢迎分享,转载请注明来源:内存溢出
只需将所有四个参数传递给C函数。从以下位置更改Python代码:
fun(ctypes.c_void_p(indata.ctypes.data), ctypes.c_void_p(outdata.ctypes.data))
至:
fun(ctypes.c_void_p(indata.ctypes.data), ctypes.c_int(5), ctypes.c_int(6), ctypes.c_void_p(outdata.ctypes.data))
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)