update page now
PHP 8.5.4 Released!

Доступ к типам C

(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