Results of 1 - 10 of about 26 for cdef (0.002 sec.)
- 新しい FFI オブジェクトを作成する 11389
- « FFI::cast FFI::free » PHP Manual FFI 新しい FFI オブジェクトを作成する 検索 FFI::cdef (PHP 7 >= 7.4.0, PHP 8) FFI::cdef — 新しい FFI オブジェクトを作成する 説明 public static function FFI::cdef ( string $code = "" , ? string $lib = null )
... _VOID ではなく PHP の null を返すようになりました。 8.0.0 lib は、nullable になりました。 関連キーワード: オブジェクト lib cdef code null string 通常 宣言 サポート ライブラリ シンボル cast Search free static function パラメータ 言語 構造体 変数 ...
-
https://man.mtool.work/php/8.3/ffi.cdef.html
- 新しい FFI オブジェクトを作成する 11257
- « FFI::cast FFI::free » PHP Manual FFI 新しい FFI オブジェクトを作成する 検索 FFI::cdef (PHP 7 >= 7.4.0, PHP 8) FFI::cdef — 新しい FFI オブジェクトを作成する 説明 public static function FFI::cdef ( string $code = "" , ? string $lib = null )
... 、 FFI\CType::TYPE_VOID ではなく PHP の null を返すようになりました。 8.0.0 lib は、nullable になりました。 関連キーワード: cdef code 通常 宣言 サポート ライブラリ シンボル cast free static 言語 構造体 変数 実際 ヘッダー コピーペースト プリプロセッサー ...
-
https://man.mtool.work/php/8.3/ffi.cdef.html
- FFI の基本的な使い方 10679
- « 例 PHP のコールバック » PHP Manual 例 FFI の基本的な使い方 検索 FFI の基本的な使い方 FFI API の詳細に深く立ち入る前に、よくあるタスクに対する FFI API の使い方が どれほど簡単かを示す例をいくつか見てみましょう。 注意 : これらの例の中には、
... 有ライブラリの関数を呼ぶ <?php // FFI オブジェクトを作成し、libc を読み込んで printf() 関数をエクスポートする $ffi = FFI :: cdef ( "int printf(const char *format, ...);" , // ここは通常の C の宣言 "libc.so.6" ); // C の printf() を呼ぶ $ffi -> printf ... 意してください。 例2 関数を呼び出し、構造体を引数経由で返す <?php // gettimeofday() のバインディングを作成する $ffi = FFI :: cdef ( " typedef unsigned int time_t; typedef unsigned int suseconds_t; struct timeval { time_t tv_sec; suseconds_t tv_usec; }; ... 存の C の変数にアクセスする <?php // FFI オブジェクトを作成し、libc を読み込んで errno 変数をエクスポートする $ffi = FFI :: cdef ( "int errno;" , // ここは通常の C の宣言 "libc.so.6" ); // C の errno を出力する var_dump ( $ffi -> errno ); ?> 上の例の出 ...
-
https://man.mtool.work/php/8.3/ffi.examples-basic.html
- FFI の基本的な使い方 10679
- « 例 PHP のコールバック » PHP Manual 例 FFI の基本的な使い方 検索 FFI の基本的な使い方 FFI API の詳細に深く立ち入る前に、よくあるタスクに対する FFI API の使い方が どれほど簡単かを示す例をいくつか見てみましょう。 注意 : これらの例の中には、
... 有ライブラリの関数を呼ぶ <?php // FFI オブジェクトを作成し、libc を読み込んで printf() 関数をエクスポートする $ffi = FFI :: cdef ( "int printf(const char *format, ...);" , // ここは通常の C の宣言 "libc.so.6" ); // C の printf() を呼ぶ $ffi -> printf ... 意してください。 例2 関数を呼び出し、構造体を引数経由で返す <?php // gettimeofday() のバインディングを作成する $ffi = FFI :: cdef ( " typedef unsigned int time_t; typedef unsigned int suseconds_t; struct timeval { time_t tv_sec; suseconds_t tv_usec; }; ... 存の C の変数にアクセスする <?php // FFI オブジェクトを作成し、libc を読み込んで errno 変数をエクスポートする $ffi = FFI :: cdef ( "int errno;" , // ここは通常の C の宣言 "libc.so.6" ); // C の errno を出力する var_dump ( $ffi -> errno ); ?> 上の例の出 ...
-
https://man.mtool.work/php/8.3/ffi.examples-basic.html
- アンマネージドなデータ構造を解放する 9819
- « FFI::cdef FFI::isNull » PHP Manual FFI アンマネージドなデータ構造を解放する 検索 FFI::free (PHP 7 >= 7.4.0, PHP 8) FFI::free — アンマネージドなデータ構造を解放する 説明 public static function FFI::free ( FFI\CData &$ptr ): void 以前に作成
... のデータ構造へのアンマネージドなポインターのハンドル。 戻り値 値を返しません。 関連キーワード: アンマネージド 構造 解放 free cdef isNull static CData ポインター ハンドル ...
-
https://man.mtool.work/php/8.3/ffi.free.html
- アンマネージドなデータ構造を解放する 9687
- « FFI::cdef FFI::isNull » PHP Manual FFI アンマネージドなデータ構造を解放する 検索 FFI::free (PHP 7 >= 7.4.0, PHP 8) FFI::free — アンマネージドなデータ構造を解放する 説明 public static function FFI::free ( FFI\CData &$ptr ): void 以前に作成
... へのアンマネージドなポインターのハンドル。 戻り値 値を返しません。 関連キーワード: アンマネージド データ 構造 解放 free ptr cdef Search isNull static function CData void 以前 パラメータ ポインター ハンドル 戻り値 navigate Enter ...
-
https://man.mtool.work/php/8.3/ffi.free.html
- C のコードやデータへの主要インターフェース 9538
- « PHP/FFI/事前ロードの完全な例 FFI::addr » PHP Manual FFI C のコードやデータへの主要インターフェース 検索 C のコードやデータへの主要インターフェース (PHP 7 >= 7.4.0, PHP 8) はじめに このクラスのオブジェクトは、ファクトリーメソッドである FFI
... ::cdef() や FFI::load() 、 FFI::scope() によって作成されます。 定義された C の変数は FFI インスタンスのプロパティとして利用可能と ... nction cast ( FFI\CType | string $type , FFI\CData | int | float | bool | null &$ptr ): ? FFI\CData public static function cdef ( string $code = "" , ? string $lib = null ): FFI public static function free ( FFI\CData &$ptr ): void public static func ... of — アラインメントを取得する FFI::arrayType — 新しい C の配列型を動的に構築する FFI::cast — C の型キャストを実行する FFI::cdef — 新しい FFI オブジェクトを作成する FFI::free — アンマネージドなデータ構造を解放する FFI::isNull — FFI\CData が NULL ポイン ...
-
https://man.mtool.work/php/8.3/class.ffi.html
- Sets the options for rrd graph export 8976
- « RRDGraph::saveVerbose RRDUpdater » PHP Manual RRDGraph Sets the options for rrd graph export 検索 RRDGraph::setOptions (PECL rrd >= 0.9.0) RRDGraph::setOptions — Sets the options for rrd graph export 説明 public function RRDGraph::setOpti
... "--start" => "920804400" , "--end" => 920808000 , "--vertical-label" => "m/s" , "DEF:myspeed= $rrdFile :speed:AVERAGE" , "CDEF:realspeed=myspeed,1000,*" , "LINE2:realspeed#FF0000" )); ?> 例2 Set multiple color options <?php $graphObj -> setOptions ( ... , "--color=BACK#00000000" , "--color=GRID#00000000" , "--color=MGRID#00000000" , "DEF:myspeed= $rrdFile :speed:AVERAGE" , "CDEF:realspeed=myspeed,1000,*" , "LINE2:realspeed#FF0000" )); ?> Don't use key value syntax for same rrd option. It looks more ...
-
https://man.mtool.work/php/8.3/rrdgraph.setoptions.html
- Sets the options for rrd graph export 8976
- « RRDGraph::saveVerbose RRDUpdater » PHP Manual RRDGraph Sets the options for rrd graph export 検索 RRDGraph::setOptions (PECL rrd >= 0.9.0) RRDGraph::setOptions — Sets the options for rrd graph export 説明 public function RRDGraph::setOpti
... "--start" => "920804400" , "--end" => 920808000 , "--vertical-label" => "m/s" , "DEF:myspeed= $rrdFile :speed:AVERAGE" , "CDEF:realspeed=myspeed,1000,*" , "LINE2:realspeed#FF0000" )); ?> 例2 Set multiple color options <?php $graphObj -> setOptions ( ... , "--color=BACK#00000000" , "--color=GRID#00000000" , "--color=MGRID#00000000" , "DEF:myspeed= $rrdFile :speed:AVERAGE" , "CDEF:realspeed=myspeed,1000,*" , "LINE2:realspeed#FF0000" )); ?> Don't use key value syntax for same rrd option. It looks more ...
-
https://man.mtool.work/php/8.3/rrdgraph.setoptions.html
- C の型キャストを実行する 8827
- « FFI::arrayType FFI::cdef » PHP Manual FFI C の型キャストを実行する 検索 FFI::cast (PHP 7 >= 7.4.0, PHP 8) FFI::cast — C の型キャストを実行する 説明 public function FFI::cast ( FFI\CType | string $type , FFI\CData | int | float | bool | nu
... した。 関連キーワード: cast CData オブジェクト キャスト CType string ptr データ 宣言 type 構造 インスタンス arrayType Search cdef function int float bool null ...
-
https://man.mtool.work/php/8.3/ffi.cast.html