PHP 8.1.9 Released!

C Type Handles

(PHP 7 >= 7.4.0, PHP 8)

Giriş

Sınıf Sözdizimi

final class FFI\CType {
/* Yöntemler */
public getAlignment(): int
public getArrayLength(): int
public getAttributes(): int
public getEnumKind(): int
public getFuncABI(): int
public getFuncParameterCount(): int
public getFuncParameterType(int $index): FFI\CType
public getKind(): int
public getName(): string
public getSize(): int
public getStructFieldNames(): array
public getStructFieldOffset(string $name): int
public getStructFieldType(string $name): FFI\CType
}

İçindekiler

add a note

User Contributed Notes 1 note

up
-1
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 .....
To Top