manual.verysource.com
源码
技术论坛
博客
程序员在线工具箱
php教程
php手册
php手册
PHP Manual
影响 PHP 行为的扩展
Foreign Function Interface
Foreign Function Interface
简介
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
范例
Basic FFI usage
PHP Callbacks
A Complete PHP/FFI/preloading Example
FFI
— Main interface to C code and data
FFI::addr
— Creates an unmanaged pointer to C data
FFI::alignof
— Gets the alignment
FFI::arrayType
— Dynamically constructs a new C array type
FFI::cast
— Performs a C type cast
FFI::cdef
— Creates a new FFI object
FFI::free
— Releases an unmanaged data structure
FFI::load
— Loads C declarations from a C header file
FFI::memcmp
— Compares memory areas
FFI::memcpy
— Copies one memory area to another
FFI::memset
— Fills a memory area
FFI::new
— Creates a C data structure
FFI::scope
— Instantiates an FFI object with C declarations parsed during preloading
FFI::sizeof
— Gets the size of C data or types
FFI::string
— Creates a PHP string from a memory area
FFI::type
— Creates an FFI\CType object from a C declaration
FFI::typeof
— Gets the FFI\CType of FFI\CData
FFI\CData
— C Data Handles
FFI\CType
— C Type Handles
FFI\Exception
— FFI Exceptions
FFI\ParserException
— FFI Parser Exceptions
User Contributed Notes
There are no user contributed notes for this page.
CopyRight © 2008-2022 verySource.Com All Rights reserved.
京ICP备17048824号-1
京公网安备:11010502034788