« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 44 for quickhash (0.001 sec.)
例 | PHP 8.3 14938
例 例1 Quickhash Example <?php $set = new QuickHashIntSet ( 1024 , QuickHashIntSet :: CHECK_FOR_DUPES ); $set -> add ( 1 ); $set -> add ( 3 ); var_dump ( $set -> exists ( 3 ) ); var_dump ( $set -> exists ( 4 ) ); $set -> saveToFile ( "/tmp/ ... test-set.set" ); $newSet = QuickHashIntSet :: loadFromFile ( "/tmp/test-set.set" ); var_dump ( $newSet -> exists ( 3 ) ); var_dump ( $newSet -> exists ( 4 ) ); ... ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) bool(false) bool(true) bool(false) 例2 Quickhash ArrayAccess Example <?php $hash = new QuickHashIntHash ( 64 ); // Adding and updating hash entries. $hash [ 3 ] = 145926 ; ... value stored for a hash echo $hash [ 3 ], "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) 1415926 例3 Quickhash Iterator Example <?php $hash = new QuickHashIntHash ( 64 ); // Adding hash entries. $hash [ 1 ] = 145926 ; $hash [ 2 ] = 1 ...
https://man.mtool.work/php/8.3/quickhash.examples.html
QuickHashIntHash::loadFromFile — This factory method creates a hash from a file... 11849
QuickHashIntHash::loadFromFile (PECL quickhash >= Unknown) QuickHashIntHash::loadFromFile — This factory method creates a hash from a file 説明 public static function QuickHashIntHash::loadFromFile ( string $filename , int $options = ? ): QuickHash ... s stored. The first of each element is the key, and the second is the value belonging to the key. An example could be: 例1 QuickHash IntHash file format 00000000 51 48 11 00 02 00 00 00 01 00 00 00 01 00 00 00 |QH..............| 00000010 03 00 00 00 09 00 ... 00 00 |........| 00000018 例2 QuickHash IntHash file format header signature ('QH'; key type: 1; value type: 1; filler: \0x00) 00000000 51 48 11 00 number of elem ... mber of entries in the hash, rounded up to the nearest power of two with a maximum limit of 4194304 . 戻り値 Returns a new QuickHashIntHash . 例 例3 QuickHashIntHash::loadFromFile() example <?php $file = dirname ( __FILE__ ) . "/simple.hash" ; $hash = Qui ...
https://man.mtool.work/php/8.3/quickhashinthash.loadfromfile.html
QuickHashIntStringHash::loadFromFile — This factory method creates a hash from ... 11295
QuickHashIntStringHash::loadFromFile (PECL quickhash >= Unknown) QuickHashIntStringHash::loadFromFile — This factory method creates a hash from a file 説明 public static function QuickHashIntStringHash::loadFromFile ( string $filename , int ... $size = 0 , int $options = 0 ): QuickHashIntStringHash This factory method creates a new hash from a definition file on disk. The file format consists of a signatur ... integers where the first one is the key, and the second one the index in the element data string. An example could be: 例1 QuickHash IntString file format 00000000 51 48 12 00 02 00 00 00 09 00 00 00 4f 4e 45 00 |QH..........ONE.| 00000010 4e 49 4e 45 00 ... 01 00 00 00 00 00 00 00 03 00 00 |NINE............| 00000020 00 04 00 00 00 |.....| 00000025 例2 QuickHash IntString file format header signature ('QH'; key type: 1; value type: 2; filler: \0x00) 00000000 51 48 12 00 number of el ...
https://man.mtool.work/php/8.3/quickhashintstringhash.loadfromfile.html
Quickhash | PHP 8.3 8775
Quickhash はじめに The quickhash extension contains a set of specific strongly-typed classes to deal with specific set and hash implementations. インストール/設定 要件 インストール手順 例 QuickHashIntSet — The QuickHashIntSet class QuickHash ... hIntSet::add — This method adds a new entry to the set QuickHashIntSet::__construct — Creates a new QuickHashIntSet object QuickHashIntSet::delete — This method deletes an entry from the ... set QuickHashIntSet::exists — This method checks whether a key is part of the set QuickHashIntSet::getSize — Returns the number of eleme ... nts in the set QuickHashIntSet::loadFromFile — This factory method creates a set from a file QuickHashIntSet::loadFromString — This factory method ...
https://man.mtool.work/php/8.3/book.quickhash.html
QuickHashIntStringHash::exists — This method checks whether a key is part of th... 8483
QuickHashIntStringHash::exists (PECL quickhash >= Unknown) QuickHashIntStringHash::exists — This method checks whether a key is part of the hash 説明 public function QuickHashIntStringHash::exists ( int $key ): bool This method checks wheth ...
https://man.mtool.work/php/8.3/quickhashintstringhash.exists.html
QuickHashStringIntHash::loadFromFile — This factory method creates a hash from ... 8483
QuickHashStringIntHash::loadFromFile (No version information available, might only be in Git) QuickHashStringIntHash::loadFromFile — This factory method creates a hash from a file 説明 public static function QuickHashStringIntHash::loadFrom ... File ( string $filename , int $size = 0 , int $options = 0 ): QuickHashStringIntHash This factory method creates a new hash from a definition file on disk. The file format consists of a signatur ... he first one is the index into the string list containing the keys, and the second one the value. An example could be: 例1 QuickHash StringIntHash file format 00000000 51 48 21 00 02 00 00 00 09 00 00 00 40 00 00 00 |QH!.........@...| 00000010 4f 4e 45 00 ... 00 00 00 01 00 00 00 2f 00 00 00 01 00 00 |........./......| 00000030 00 04 00 00 00 03 00 00 00 |.........| 00000039 例2 QuickHash IntHash file format header signature ('QH'; key type: 2; value type: 1; filler: \0x00) 00000000 51 48 21 00 number of elem ...
https://man.mtool.work/php/8.3/quickhashstringinthash.loadfromfile.html
インストール手順 | PHP 8.3 7930
インストール手順 この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場 ... 所にあります。 » https://pecl.php.net/package/quickhash 他のマニュアルの関連ページ Python download Linux JM mk_cmds(1) Docker イメージの構築 Linux JM gpasswd(1) Linux JM compile_ ...
https://man.mtool.work/php/8.3/quickhash.installation.html
QuickHashIntHash::getSize — Returns the number of elements in the hash | PHP 8.... 7930
QuickHashIntHash::getSize (PECL quickhash >= Unknown) QuickHashIntHash::getSize — Returns the number of elements in the hash 説明 public function QuickHashIntHash::getSize (): int Returns the number of elements in the hash. パラメータ この関 ... 数にはパラメータはありません。 戻り値 The number of elements in the hash. 例 例1 QuickHashIntHash::getSize() example <?php $hash = new QuickHashIntHash ( 8 ); var_dump ( $hash -> add ( 2 ) ); var_dump ( $hash -> a ...
https://man.mtool.work/php/8.3/quickhashinthash.getsize.html
QuickHashIntSet::getSize — Returns the number of elements in the set | PHP 8.3 7930
QuickHashIntSet::getSize (PECL quickhash >= Unknown) QuickHashIntSet::getSize — Returns the number of elements in the set 説明 public function QuickHashIntSet::getSize (): int Returns the number of elements in the set. パラメータ この関数に ... はパラメータはありません。 戻り値 The number of elements in the set. 例 例1 QuickHashIntSet::getSize() example <?php $set = new QuickHashIntSet ( 8 ); var_dump ( $set -> add ( 2 ) ); var_dump ( $set -> add ( ...
https://man.mtool.work/php/8.3/quickhashintset.getsize.html
QuickHashIntSet::saveToString — This method returns a serialized version of the... 7930
QuickHashIntSet::saveToString (PECL quickhash >= Unknown) QuickHashIntSet::saveToString — This method returns a serialized version of the set 説明 public function QuickHashIntSet::saveToString (): string This method returns a serialized ver ... sion of the set in the same format that QuickHashIntSet::loadFromString() can read. パラメータ この関数にはパラメータはありません。 戻り値 This method returns a string cont ... ized format of the set. Each element is stored as a four byte value in the Endianness that the current system uses. 例 例1 QuickHashIntSet::saveToString() example <?php $set = new QuickHashIntSet ( 1024 ); var_dump ( $set -> exists ( 4 ) ); var_dump ( $se ...
https://man.mtool.work/php/8.3/quickhashintset.savetostring.html
PREV 1 2 3 4 5 NEXT