« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for QuickHashIntHash (0.002 sec.)
QuickHashIntHash::__construct — Creates a new QuickHashIntHash object | PHP 8.3 12000
QuickHashIntHash::__construct (PECL quickhash >= Unknown) QuickHashIntHash::__construct — Creates a new QuickHashIntHash object 説明 public function QuickHashIntHash::__construct ( int $size , int $options = ? ) This constructor creates a n ... ew QuickHashIntHash . The size is the amount of bucket lists to create. The more lists there are, the less collisions you will have. Options a ... the next power of two. It is also automatically limited from 64 to 4194304 . options The options that you can pass in are: QuickHashIntHash::CHECK_FOR_DUPES , which makes sure no duplicate entries are added to the hash; QuickHashIntHash::DO_NOT_USE_ZEND_ALLOC to ... not use PHP's internal memory manager as well as one of QuickHashIntHash::HASHER_NO_HASH , QuickHashIntHash::HASHER_JENKINS1 or QuickHashIntHash::HASHER_JENKINS2 . These last three configure whic ...
https://man.mtool.work/php/8.3/quickhashinthash.construct.html
The QuickHashIntHash class | PHP 8.3 11966
The QuickHashIntHash class (PECL quickhash >= Unknown) はじめに This class wraps around a hash containing integer numbers, where the values are also integer numbers. Hashes are also available as implementation of the ArrayAccess interface. ... Iterator interface is implemented as well. The order of which elements are returned in is not guaranteed. クラス概要 class QuickHashIntHash { /* 定数 */ const int CHECK_FOR_DUPES = 1 ; const int DO_NOT_USE_ZEND_ALLOC = 2 ; const int HASHER_NO_HASH = 256 ; const ... t $key ): int public function getSize (): int public static function loadFromFile ( string $filename , int $options = ? ): QuickHashIntHash public static function loadFromString ( string $contents , int $options = ? ): QuickHashIntHash public function saveToFile ... g public function set ( int $key , int $value ): int public function update ( int $key , int $value ): bool } 定義済み定数 QuickHashIntHash::CHECK_FOR_DUPES If enabled, adding duplicate elements to a set (through either QuickHashIntHash::add() or QuickHashIntHas ...
https://man.mtool.work/php/8.3/class.quickhashinthash.html
Quickhash | PHP 8.3 10949
Quickhash はじめに The quickhash extension contains a set of specific strongly-typed classes to deal with specific set and hash implementations. インストール/設定 要件 インストール手順 例 QuickHashIntSet — The QuickHashIntSet class QuickHas ... method stores an in-memory set to disk QuickHashIntSet::saveToString — This method returns a serialized version of the set QuickHashIntHash — The QuickHashIntHash class QuickHashIntHash::add — This method adds a new entry to the hash QuickHashIntHash::__construc ... t — Creates a new QuickHashIntHash object QuickHashIntHash::delete — This method deletes an entry from the hash QuickHashIntHash::exists — This method checks ... whether a key is part of the hash QuickHashIntHash::get — This method retrieves a value from the hash by its key QuickHashIntHash::getSize — Returns the number of elements i ...
https://man.mtool.work/php/8.3/book.quickhash.html
QuickHashIntHash::loadFromString — This factory method creates a hash from a st... 8948
QuickHashIntHash::loadFromString (PECL quickhash >= Unknown) QuickHashIntHash::loadFromString — This factory method creates a hash from a string 説明 public static function QuickHashIntHash::loadFromString ( string $contents , int $options ... = ? ): QuickHashIntHash This factory method creates a new hash from a definition in a string. The file format consists of 32 bit signed integers p ... mber of entries in the hash, rounded up to the nearest power of two with a maximum limit of 4194304 . 戻り値 Returns a new QuickHashIntHash . 例 例1 QuickHashIntHash::loadFromString() example <?php $contents = file_get_contents ( dirname ( __FILE__ ) . "/simple. ... hash" ); $hash = QuickHashIntHash :: loadFromString ( $contents , QuickHashIntHash :: DO_NOT_USE_ZEND_ALLOC ); foreach( range ( 0 , 0x0f ) as $key ) { print ...
https://man.mtool.work/php/8.3/quickhashinthash.loadfromstring.html
QuickHashIntHash::saveToFile — This method stores an in-memory hash to disk | P... 8948
QuickHashIntHash::saveToFile (PECL quickhash >= Unknown) QuickHashIntHash::saveToFile — This method stores an in-memory hash to disk 説明 public function QuickHashIntHash::saveToFile ( string $filename ): void This method stores an existing ... hash to a file on disk, in the same format that QuickHashIntHash::loadFromFile() can read. パラメータ filename The filename of the file to store the hash in. 戻り値 値を返しません。 例 例 ... 1 QuickHashIntHash::saveToFile() example <?php $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> ...
https://man.mtool.work/php/8.3/quickhashinthash.savetofile.html
QuickHashIntHash::add — This method adds a new entry to the hash | PHP 8.3 8914
QuickHashIntHash::add (PECL quickhash >= Unknown) QuickHashIntHash::add — This method adds a new entry to the hash 説明 public function QuickHashIntHash::add ( int $key , int $value = ? ): bool This method adds a new entry to the hash, and ... returns whether the entry was added. Entries are by default always added unless QuickHashIntHash::CHECK_FOR_DUPES has been passed when the hash was created. パラメータ key The key of the entry to add. value The optional ... no value is specified, 1 will be used. 戻り値 true when the entry was added, and false if the entry was not added. 例 例1 QuickHashIntHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> exists ( ... 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , 12 ) ); echo "\nwith dupe checking\n" ; $hash = new QuickHashIntHash ( 1024 , QuickHashIntHash :: CHECK_FOR_DUPES ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_d ...
https://man.mtool.work/php/8.3/quickhashinthash.add.html
QuickHashIntHash::saveToString — This method returns a serialized version of th... 8862
QuickHashIntHash::saveToString (PECL quickhash >= Unknown) QuickHashIntHash::saveToString — This method returns a serialized version of the hash 説明 public function QuickHashIntHash::saveToString (): string This method returns a serialized ... version of the hash in the same format that QuickHashIntHash::loadFromString() can read. パラメータ この関数にはパラメータはありません。 戻り値 This method returns a string containing ... zed format of the hash. Each element is stored as a four byte value in the Endianness that the current system uses. 例 例1 QuickHashIntHash::saveToString() example <?php $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash ...
https://man.mtool.work/php/8.3/quickhashinthash.savetostring.html
QuickHashIntHash::update — This method updates an entry in the hash with a new ... 8604
QuickHashIntHash::update (PECL quickhash >= Unknown) QuickHashIntHash::update — This method updates an entry in the hash with a new value 説明 public function QuickHashIntHash::update ( int $key , int $value ): bool This method updates an e ... rns whether the entry was update. If there are duplicate keys, only the first found element will get an updated value. Use QuickHashIntHash::CHECK_FOR_DUPES during hash creation to prevent duplicate keys from being part of the hash. パラメータ key The key of the ... ry with. 戻り値 true when the entry was found and updated, and false if the entry was not part of the hash already. 例 例1 QuickHashIntHash::update() example <?php $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> add ( 141421 , 173205 ) ); var_dump ( $ ...
https://man.mtool.work/php/8.3/quickhashinthash.update.html
QuickHashIntHash::loadFromFile — This factory method creates a hash from a file... 8552
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 = ? ): QuickHashIntHash ... 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 elements: 0 ... 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 = QuickHashI ...
https://man.mtool.work/php/8.3/quickhashinthash.loadfromfile.html
QuickHashIntHash::getSize — Returns the number of elements in the hash | PHP 8.... 8379
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 -> add ( 3 ...
https://man.mtool.work/php/8.3/quickhashinthash.getsize.html
PREV 1 2 NEXT