PHP8 C Type Handles
2023-09-05 11:53 更新
(PHP 7 >= 7.4.0, PHP 8)
简介
类摘要
final class FFI\CType {
/* 常量 */
public const int TYPE_VOID;
public const int TYPE_FLOAT;
public const int TYPE_DOUBLE;
public const int TYPE_LONGDOUBLE;
public const int TYPE_UINT8;
public const int TYPE_SINT8;
public const int TYPE_UINT16;
public const int TYPE_SINT16;
public const int TYPE_UINT32;
public const int TYPE_SINT32;
public const int TYPE_UINT64;
public const int TYPE_SINT64;
public const int TYPE_ENUM;
public const int TYPE_BOOL;
public const int TYPE_CHAR;
public const int TYPE_POINTER;
public const int TYPE_FUNC;
public const int TYPE_ARRAY;
public const int TYPE_STRUCT;
public const int ATTR_CONST;
public const int ATTR_INCOMPLETE_TAG;
public const int ATTR_VARIADIC;
public const int ATTR_INCOMPLETE_ARRAY;
public const int ATTR_VLA;
public const int ATTR_UNION;
public const int ATTR_PACKED;
public const int ATTR_MS_STRUCT;
public const int ATTR_GCC_STRUCT;
public const int ABI_DEFAULT;
public const int ABI_CDECL;
public const int ABI_FASTCALL;
public const int ABI_THISCALL;
public const int ABI_STDCALL;
public const int ABI_PASCAL;
public const int ABI_REGISTER;
public const int ABI_MS;
public const int ABI_SYSV;
public const int ABI_VECTORCALL;
/* 方法 */
public getAlignment(): int
public getArrayElementType(): FFI\CType
public getArrayLength(): int
public getAttributes(): int
public getEnumKind(): int
public getFuncABI(): int
public getFuncParameterCount(): int
public getFuncParameterType(int $index): FFI\CType
public getFuncReturnType(): FFI\CType
public getKind(): int
public getName(): string
public getPointerType(): FFI\CType
public getSize(): int
public getStructFieldNames(): array
public getStructFieldOffset(string $name): int
public getStructFieldType(string $name): 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 — 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
以上内容是否对您有帮助:

免费 AI IDE


更多建议: