PHP 8.5.4 Released!

C Type Handles

(PHP 7 >= 7.4.0, PHP 8)

简介

类摘要

namespace FFI;
final class CType {
/* 常量 */
public const int FFI\CType::TYPE_VOID;
public const int FFI\CType::ATTR_VLA;
public const int FFI\CType::ABI_MS;
public const int FFI\CType::ABI_SYSV;
/* 方法 */
}

目录

添加备注

用户贡献的备注 1 note

up
0
scorninpc at php dot net
6 years ago
You can compare CTypes if you want to know if the type are correct

\FFI::typeof(\FFI::addr($a)) == \FFI::typeof(\FFI::new("void *"))

CType need some methods, like equal() or toString(), but .....
To Top