« FFI\CType::getFuncParameterCount
FFI\CType::getFuncReturnType »

FFI\CType::getFuncParameterType

(PHP 8 >= 8.1.0)

FFI\CType::getFuncParameterType — 関数の引数の型を取得する

説明

public function FFI\CType::getFuncParameterType(int $index): FFI\CType

内部的に保持している関数型の引数の型を返します。

パラメータ

index

関数の引数の添字 (ゼロ始まり)。

戻り値

内部的に保持している関数型の引数の型を返します。 内部的に保持している型が関数でない場合や、 与えられた添字がその関数の引数の範囲外の場合、 FFI\Exception をスローします。

関連キーワード:
CType   getFuncParameterType   内部的   保持   index   添字   getFuncParameterCount   getFuncReturnType   範囲   Exception
関連する関数・ページ:
ffi-ctype.getfuncparametercount   ffi-ctype.getfuncreturntype   ffi-ctype.getname   ffi-ctype.getsize   ffi-ctype.getpointertype   ffi-ctype.getattributes