« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for typedef (0.003 sec.)
FFI の基本的な使い方 12218
« 例 PHP のコールバック » PHP Manual 例 FFI の基本的な使い方 検索 FFI の基本的な使い方 FFI API の詳細に深く立ち入る前に、よくあるタスクに対する FFI API の使い方が どれほど簡単かを示す例をいくつか見てみましょう。 注意 : これらの例の中には、 ... さい。 例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; }; struct time ... ; ?> 上の例の出力は以下となります。 int(25) int(523776) int(1024) int(8192) 例6 C の enum を扱う <?php $a = FFI :: cdef ( 'typedef enum _zend_ffi_symbol_kind { ZEND_FFI_SYM_TYPE, ZEND_FFI_SYM_CONST = 2, ZEND_FFI_SYM_VAR, ZEND_FFI_SYM_FUNC } zend_ffi_sym ... int(2) int(3) 関連キーワード: dump struct libc cdata 使い方 printf cdef gettimeofday timezone 構造 変数 errno 基本的 通常 typedef timeval ライブラリ エクスポート 宣言 Hello world time suseconds minuteswest dsttime ...
https://man.mtool.work/php/8.3/ffi.examples-basic.html
FFI の基本的な使い方 10682
« 例 PHP のコールバック » PHP Manual 例 FFI の基本的な使い方 検索 FFI の基本的な使い方 FFI API の詳細に深く立ち入る前に、よくあるタスクに対する FFI API の使い方が どれほど簡単かを示す例をいくつか見てみましょう。 注意 : これらの例の中には、 ... さい。 例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; }; struct time ... ; ?> 上の例の出力は以下となります。 int(25) int(523776) int(1024) int(8192) 例6 C の enum を扱う <?php $a = FFI :: cdef ( 'typedef enum _zend_ffi_symbol_kind { ZEND_FFI_SYM_TYPE, ZEND_FFI_SYM_CONST = 2, ZEND_FFI_SYM_VAR, ZEND_FFI_SYM_FUNC } zend_ffi_sym ...
https://man.mtool.work/php/8.3/ffi.examples-basic.html
PHP のコールバック 10682
« FFI の基本的な使い方 PHP/FFI/事前ロードの完全な例 » PHP Manual 例 PHP のコールバック 検索 PHP のコールバック PHP のクロージャを、関数ポインタ型のネイティブ変数に代入したり、 関数の引数として渡したりできます。 例1 PHP の Closure を C の関数 ... ポインタに代入する <?php $zend = FFI :: cdef ( " typedef int (*zend_write_func_t)(const char *str, size_t str_length); extern zend_write_func_t zend_write; " ); echo "Hello World ... ーワード: zend write Hello World orig バック ポインタ 代入 func 基本的 使い方 ロード クロージャ ネイティブ 変数 Closure cdef typedef size length extern clone return libffi プラットフォーム ...
https://man.mtool.work/php/8.3/ffi.examples-callback.html
PHP のコールバック 8513
« FFI の基本的な使い方 PHP/FFI/事前ロードの完全な例 » PHP Manual 例 PHP のコールバック 検索 PHP のコールバック PHP のクロージャを、関数ポインタ型のネイティブ変数に代入したり、 関数の引数として渡したりできます。 例1 PHP の Closure を C の関数 ... ポインタに代入する <?php $zend = FFI :: cdef ( " typedef int (*zend_write_func_t)(const char *str, size_t str_length); extern zend_write_func_t zend_write; " ); echo "Hello World ...
https://man.mtool.work/php/8.3/ffi.examples-callback.html
The Yar Protocol 8079
« Yar インストール/設定 » PHP Manual Yar The Yar Protocol 検索 The Yar Protocol Yar does not rely on a schema or IDL file: everything is exchanged on the wire as plain bytes. Any language that can read and write bytes can speak to a Yar ser ... like the following C structure, packed with no padding, and is written to the wire field after field in declaration order: typedef struct _yar_header { uint32_t id; /* transaction id */ uint16_t version; /* protocol version, currently always 0 */ uint32 ...
https://man.mtool.work/php/8.3/yar.protocol.html
The Yar Protocol 8079
« Yar インストール/設定 » PHP Manual Yar The Yar Protocol 検索 The Yar Protocol Yar does not rely on a schema or IDL file: everything is exchanged on the wire as plain bytes. Any language that can read and write bytes can speak to a Yar ser ... like the following C structure, packed with no padding, and is written to the wire field after field in declaration order: typedef struct _yar_header { uint32_t id; /* transaction id */ uint16_t version; /* protocol version, currently always 0 */ uint32 ...
https://man.mtool.work/php/8.3/yar.protocol.html
MySQL Native Driverプラグイン のアーキテクチャ 6976
« mysqlnd plugin APIを取得する mysqlnd のプラグインAPI » PHP Manual MySQL Native Driver プラグインAPI MySQL Native Driverプラグイン のアーキテクチャ 検索 MySQL Native Driverプラグイン のアーキテクチャ このセクションでは、 mysqlnd プラグイン ... ことを必ず頭にいれておいてください! 次のコードはプロパティを拡張する方法を示しています: /* any data we want to associate */ typedef struct my_conn_properties { unsigned long query_counter; } MY_CONN_PROPERTIES; /* plugin id */ unsigned int my_plugin_id; ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.architecture.html
MySQL Native Driverプラグイン のアーキテクチャ 6976
« mysqlnd plugin APIを取得する mysqlnd のプラグインAPI » PHP Manual MySQL Native Driver プラグインAPI MySQL Native Driverプラグイン のアーキテクチャ 検索 MySQL Native Driverプラグイン のアーキテクチャ このセクションでは、 mysqlnd プラグイン ... ことを必ず頭にいれておいてください! 次のコードはプロパティを拡張する方法を示しています: /* any data we want to associate */ typedef struct my_conn_properties { unsigned long query_counter; } MY_CONN_PROPERTIES; /* plugin id */ unsigned int my_plugin_id; ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.architecture.html
PREV 1 NEXT