FFI::type

Creates an FFI\CType object from a C declaration

説明

public FFI\CTypenull FFI::type(string $type)

This function creates and returns a FFI\CType object for the given string containing a C type declaration. Any type declared for the instance is allowed.

パラメータ

type

A valid C declaration as string.

戻り値

Returns the freshly created FFI\CType object, or null on failure.

変更履歴

バージョン 説明
8.3.0 Calling FFI::type statically is now deprecated.