FFI\CType::getFuncParameterType

Retrieve the type of a function parameter

説明

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

Returns the type of a parameter for the underlying function type.

パラメータ

index

Index of the function parameter, zero-based.

戻り値

Returns the type of a parameter for the underlying function type. If the underlying type is not a function, or the given index is outside of the range of parameters of the function, an FFI\Exception is thrown.