Laravel Live Japan

FFI::type

(PHP 7 >= 7.4.0, PHP 8)

FFI::typeC の宣言から FFI\CType オブジェクトを作成する

説明

public FFI::type(string $type): ?FFI\CType

この関数は、C の型宣言を持つ string を渡すと、 与えられた string に対応する FFI\CType オブジェクトを作成して返します。 このインスタンスで宣言された任意の型が使えます。

パラメータ

type

有効な C の宣言を持つ string

戻り値

新しく作成された FFI\CType オブジェクトを返します。 失敗時には null を返します。

変更履歴

バージョン 説明
8.3.0 FFI::type() を static メソッドとして呼び出すのは非推奨となりました。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top