C Type Handles
(PHP 7 >= 7.4.0, PHP 8)
简介
类摘要
final
class FFI\CType
{
/* 常量 */
/* 方法 */
}预定义常量
FFI\CType::TYPE_VOIDFFI\CType::TYPE_FLOATFFI\CType::TYPE_DOUBLEFFI\CType::TYPE_LONGDOUBLEFFI\CType::TYPE_UINT8FFI\CType::TYPE_SINT8FFI\CType::TYPE_UINT16FFI\CType::TYPE_SINT16FFI\CType::TYPE_UINT32FFI\CType::TYPE_SINT32FFI\CType::TYPE_UINT64FFI\CType::TYPE_SINT64FFI\CType::TYPE_ENUMFFI\CType::TYPE_BOOLFFI\CType::TYPE_CHARFFI\CType::TYPE_POINTERFFI\CType::TYPE_FUNCFFI\CType::TYPE_ARRAYFFI\CType::TYPE_STRUCTFFI\CType::ATTR_CONSTFFI\CType::ATTR_INCOMPLETE_TAGFFI\CType::ATTR_VARIADICFFI\CType::ATTR_INCOMPLETE_ARRAYFFI\CType::ATTR_VLAFFI\CType::ATTR_UNIONFFI\CType::ATTR_PACKEDFFI\CType::ATTR_MS_STRUCTFFI\CType::ATTR_GCC_STRUCTFFI\CType::ABI_DEFAULTFFI\CType::ABI_CDECLFFI\CType::ABI_FASTCALLFFI\CType::ABI_THISCALLFFI\CType::ABI_STDCALLFFI\CType::ABI_PASCALFFI\CType::ABI_REGISTERFFI\CType::ABI_MSFFI\CType::ABI_SYSVFFI\CType::ABI_VECTORCALL
目录
- 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 — Retrieve the count of parameters of a function type
- 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
+添加备注
用户贡献的备注 1 note
scorninpc at php dot net ¶
5 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 .....