C Type Handles
(PHP 7 >= 7.4.0, PHP 8)
简介
类摘要
final
class FFI\CType
{
/* 方法 */
}目录
- FFI\CType::getAlignment — Description
- FFI\CType::getArrayElementType — Description
- FFI\CType::getArrayLength — Description
- FFI\CType::getAttributes — Description
- FFI\CType::getEnumKind — Description
- FFI\CType::getFuncABI — Description
- FFI\CType::getFuncParameterCount — Description
- FFI\CType::getFuncParameterType — Description
- FFI\CType::getFuncReturnType — Description
- FFI\CType::getKind — Description
- FFI\CType::getName — Description
- FFI\CType::getPointerType — Description
- FFI\CType::getSize — Description
- FFI\CType::getStructFieldNames — Description
- FFI\CType::getStructFieldOffset — Description
- FFI\CType::getStructFieldType — Description

User Contributed Notes 1 note
scorninpc at php dot net ¶
2 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 .....