Results of 1 - 10 of about 50 for struct (0.005 sec.)
- C の型ハンドル | PHP 8.3 12182
- C の型ハンドル (PHP 7 >= 7.4.0, PHP 8) はじめに クラス概要 namespace FFI ; final class CType { /* 定数 */ public const int TYPE_VOID ; public const int TYPE_FLOAT ; public const int TYPE_DOUBLE ; public const int TYPE_LONGDOUBLE ; public co
... PE_CHAR ; public const int TYPE_POINTER ; public const int TYPE_FUNC ; public const int TYPE_ARRAY ; public const int TYPE_STRUCT ; public const int ATTR_CONST ; public const int ATTR_INCOMPLETE_TAG ; public const int ATTR_VARIADIC ; public const int A ... _ARRAY ; public const int ATTR_VLA ; public const int ATTR_UNION ; public const int ATTR_PACKED ; public const int ATTR_MS_STRUCT ; public const int ATTR_GCC_STRUCT ; public const int ABI_DEFAULT ; public const int ABI_CDECL ; public const int ABI_FAST ... unction getName (): string public function getPointerType (): FFI\CType public function getSize (): int public function getStructFieldNames (): array public function getStructFieldOffset ( string $name ): int public function getStructFieldType ( string ...
-
https://man.mtool.work/php/8.3/class.ffi-ctype.html
- FFI の基本的な使い方 | PHP 8.3 12046
- FFI の基本的な使い方 FFI API の詳細に深く立ち入る前に、よくあるタスクに対する FFI API の使い方が どれほど簡単かを示す例をいくつか見てみましょう。 注意 : これらの例の中には、 libc.so.6 を必要とするものがあります。 それらは、このライブラリが利
... meofday() のバインディングを作成する $ffi = FFI :: cdef ( " typedef unsigned int time_t; typedef unsigned int suseconds_t; struct timeval { time_t tv_sec; suseconds_t tv_usec; }; struct timezone { int tz_minuteswest; int tz_dsttime; }; int gettimeofday ... (struct timeval *tv, struct timezone *tz); " , "libc.so.6" ); // C のデータ構造を作成する $tv = $ffi -> new ( "struct timeval" ); ... $tz = $ffi -> new ( "struct timezone" ); // C の gettimeofday() を呼ぶ var_dump ( $ffi -> gettimeofday ( FFI :: addr ( $tv ), FFI :: addr ( $tz ))); / ...
-
https://man.mtool.work/php/8.3/ffi.examples-basic.html
- SoapClient::__getTypes — SOAP 型の一覧を返す | PHP 8.3 11776
- SoapClient::__getTypes (PHP 5, PHP 7, PHP 8) SoapClient::__getTypes — SOAP 型の一覧を返す 説明 public function SoapClient::__getTypes (): ? array ウェブサービスの WSDL で定義されている型の配列を返します。 注意 : この関数は WSDL モードでのみ
... pes ()); ?> 上の例の出力は以下となります。 array(88) { [0]=> string(30) "ProductLine ProductLineArray[]" [1]=> string(85) "struct ProductLine { string Mode; string RelevanceRank; ProductInfo ProductInfo; }" [2]=> string(105) "struct ProductInfo { strin ... es; string ListName; DetailsArray Details; }" ... [85]=> string(32) "ShortSummary ShortSummaryArray[]" [86]=> string(121) "struct GetTransactionDetailsRequest { string tag; string devtag; string key; OrderIdArray OrderIds; string locale; }" [87]=> stri ... ng(75) "struct GetTransactionDetailsResponse { ShortSummaryArray ShortSummaries; }" } 参考 SoapClient::__construct() - SoapClient のコンス ...
-
https://man.mtool.work/php/8.3/soapclient.gettypes.html
- xml_parse_into_struct — 配列構造体に XML データを処理する | PHP 8.3 11369
- xml_parse_into_struct (PHP 4, PHP 5, PHP 7, PHP 8) xml_parse_into_struct — 配列構造体に XML データを処理する 説明 function xml_parse_into_struct ( XMLParser $parser , string $data , array &$values , array &$index = null ): int | false この関
... 含む文字列。 values XML データの値を含む配列。 index $values 内の適切な値の場所をさすポインタの配列。 戻り値 xml_parse_into_struct() は失敗した場合に 0、 成功した場合に 1 を返します。これは false および true とは 異なるものですので、=== のような演算子を ... のです。 note タグを para タグの中に埋 め込んで使用した後、これをパースし、生成された構造体を出力します。 例1 xml_parse_into_struct() の例 <?php $simple = "<para><note>simple note</note></para>" ; $p = xml_parser_create (); xml_parse_into_struct ( $p , $ ... ymbol ; // three letter symbol var $code ; // one letter code var $type ; // hydrophobic, charged or neutral function __construct ( $aa ) { foreach ( $aa as $k => $v ) $this -> $k = $aa [ $k ]; } } function readDatabase ( $filename ) { // read the XML ...
-
https://man.mtool.work/php/8.3/function.xml-parse-into-struct.html
- fann_create_train — Creates an empty training data struct | PHP 8.3 10693
- fann_create_train (PECL fann >= 1.0.0) fann_create_train — Creates an empty training data struct 説明 function fann_create_train ( int $num_data , int $num_input , int $num_output ): resource Creates an empty training data struct. パラメータ
... that stores training data fann_train_on_data() - Trains on an entire dataset for a period of time fann_destroy_train() - Destructs the training data fann_save_train() - Save the training structure to a file 他のマニュアルの関連ページ DuckDB Values Duck ... DB Map Functions DuckDB Lance Extension DuckDB Struct Data Type DuckDB Parquet Import ...
-
https://man.mtool.work/php/8.3/function.fann-create-train.html
- MySQL Native Driverプラグイン のアーキテクチャ | PHP 8.3 8933
- MySQL Native Driverプラグイン のアーキテクチャ このセクションでは、 mysqlnd プラグイン のアーキテクチャについての概要を示します。 MySQL Native Driver の概要 mysqlnd プラグイン を開発する前に、 mysqlnd そのものがどのように成り立っているのかを
... ードレベルで、 mysqlnd は オブジェクト指向を実装するためのパターンを採用しています。 C言語では、オブジェクトを表現するために struct (構造体) を使います。struct のメンバがオブジェクトのプロパティを表現します。関数を指している struct のメンバがメソッドを表 ... のです。 次のコードは、 mysqlnd の関数テーブルを置き換える方法を示しています: /* a place to store original function table */ struct st_mysqlnd_conn_methods org_methods; void minit_register_hooks(TSRMLS_D) { /* active function table */ struct st_mysqlnd_c ... nt_methods = mysqlnd_conn_get_methods(); /* backup original function table */ memcpy(&org_methods, current_methods, sizeof(struct st_mysqlnd_conn_methods); /* install new methods */ current_methods->query = MYSQLND_METHOD(my_conn_class, query); } 接続関 ...
-
https://man.mtool.work/php/8.3/mysqlnd.plugin.architecture.html
- wddx_serialize_vars — 変数を WDDX パケットにシリアライズする | PHP 8.3 8256
- wddx_serialize_vars (PHP 4, PHP 5, PHP 7) wddx_serialize_vars — 変数を WDDX パケットにシリアライズする 警告 この機能は PHP 7.4.0 で 削除 されました。 説明 function wddx_serialize_vars ( mixed $var_name , mixed ...$var_names ): string 指定さ
... o wddx_serialize_vars ( "a" , "b" , $clvars ); ?> 上の例の出力は以下となります。 <wddxPacket version='1.0'><header/><data><struct><var name='a'><number>1</number></var> <var name='b'><number>5.5</number></var><var name='c'><array length='3'> <string>bl ... ue</string><string>orange</string><string>violet</string></array></var> <var name='d'><string>colors</string></var></struct></data></wddxPacket> 他のマニュアルの関連ページ Linux JM snmpbulkget(1) Django serialization Linux JM pppdump(8) Linux JM ...
-
https://man.mtool.work/php/8.3/function.wddx-serialize-vars.html
- SoapVar::__construct — SoapVar コンストラクタ | PHP 8.3 8256
- SoapVar::__construct (PHP 5, PHP 7, PHP 8) SoapVar::__construct — SoapVar コンストラクタ 説明 public function SoapVar::__construct ( mixed $data , ? int $encoding , ? string $typeName = null , ? string $typeNamespace = null , ? string $node
... うになりました。 8.0.3 typeName , typeNamespace , nodeName , nodeNamespace は、nullable になりました。 例 例1 SoapVar::__construct() の例 <?php class SOAPStruct { function SOAPStruct ( $s , $i , $f ) { $this -> varString = $s ; $this -> varInt = $i ; $t ... } } $client = new SoapClient ( null , array( 'location' => "http://localhost/soap.php" , 'uri' => "http://test-uri/" )); $struct = new SOAPStruct ( 'arg' , 34 , 325.325 ); $soapstruct = new SoapVar ( $struct , SOAP_ENC_OBJECT , "SOAPStruct" , "http:// ... soapinterop.org/xsd" ); $client -> echoStruct (new SoapParam ( $soapstruct , "inputStruct" )); ?> 参考 SoapClient::__soapCall() - SOAP 関数をコールする SoapParam::__con ...
-
https://man.mtool.work/php/8.3/soapvar.construct.html
- fann_create_train_from_callback — Creates the training data struct from a user ... 8121
- fann_create_train_from_callback (PECL fann >= 1.0.0) fann_create_train_from_callback — Creates the training data struct from a user supplied function 説明 function fann_create_train_from_callback ( int $num_data , int $num_input , int $num_
... output , callable $user_function ): resource Creates the training data struct from a user supplied function. As the training data are numerable (data 1, data 2...), the user must write a function that ... that stores training data fann_train_on_data() - Trains on an entire dataset for a period of time fann_destroy_train() - Destructs the training data fann_save_train() - Save the training structure to a file 他のマニュアルの関連ページ DuckDB Values Duck ...
-
https://man.mtool.work/php/8.3/function.fann-create-train-from-callback.html
- wddx の例 | PHP 8.3 8121
- wddx の例 変数をシリアル化する全ての関数は配列の最初要素をその配列が配列と 構造体のどちらでシリアル化されるのかを定義するために使用するということに 注意してください。最初の要素が文字列をキーとして有する場合は 構造体でシリアル化され、その他の
... $packet_id ); echo $packet ; ?> この例は次のような出力を行います。 <wddxPacket version='1.0'><header comment='PHP'/><data><struct> <var name='pi'><number>3.1415926</number></var><var name='cities'> <array length='3'><string>Austin</string><string>Novat ... o</string> <string>Seattle</string></array></var></struct></data></wddxPacket> 注意 : 文字列は UTF-8 でエンコードされているべきです。 つまり、他のエンコーディングを扱うには、 文字列 ...
-
https://man.mtool.work/php/8.3/wddx.examples-serialize.html