就业培训
下载中心
Wiki
联络
登录
注册
CFFI 1.15.1
目标
注释和 Bug
新功能
安装和状态
概述
使用 ffi/lib 对象
CFFI 参考
准备和分发模块
使用 CFFI 进行嵌入
首页
CFFI 1.15.1
下一
翻译工具:
数字翻译
CFFI 文档编制
¶
用于 Python 的 CFFI (C 外来函数接口)。与来自 Python 的几乎任何 C 代码交互,基于像 C 的声明,经常可以从头文件 (或文档编制) 拷贝粘贴。
目标
注释和 Bug
新功能
v1.15.1
v1.15.0
v1.14.6
v1.14.5
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.14
v1.13.2
v1.13.1
v1.13
旧版本
安装和状态
特定平台指令
概述
主要使用模式
其它 CFFI 模式
嵌入
实际发生了什么?
ABI (应用程序二进制接口) vs API (应用程序接口)
使用 ffi/lib 对象
操控指针、结构和数组
Python 3 支持
调用像 main 事情的范例
函数调用
Variadic function calls
Memory pressure (PyPy)
Extern “Python” (new-style callbacks)
Callbacks (old style)
Windows: calling conventions
FFI 接口
CFFI 参考
FFI 接口
转换
准备和分发模块
ffi/ffibuilder.cdef(): declaring types and functions
ffi.dlopen(): loading libraries in ABI mode
ffibuilder.set_source(): preparing out-of-line modules
Letting the C compiler fill the gaps
ffibuilder.compile() etc.: compiling out-of-line modules
ffi/ffibuilder.include(): combining multiple CFFI interfaces
ffi.cdef() limitations
Debugging dlopen’ed C libraries
ffi.verify(): in-line API-mode
Upgrading from CFFI 0.9 to CFFI 1.0
使用 CFFI 进行嵌入
用法
More reading
Troubleshooting
Issues about using the .so
Using multiple CFFI-made DLLs
Multithreading
Testing
Embedding and Extending
首页
CFFI 1.15.1
下一
翻译工具:
数字翻译