Results of 1 - 10 of about 34 for allocate (0.002 sec.)
- Ds\Vector::allocate — Allocates enough memory for a required capacity | PHP 8.3 11008
- Ds\Vector::allocate (PECL ds >= 1.0.0) Ds\Vector::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Vector::allocate ( int $capacity ): void Ensures that enough memory is allocated for a required capacity. T
... his removes the need to reallocate the internal buffer as values are added. パラメータ capacity The number of values for which capacity should be allocated. ... will stay the same if this value is less than or equal to the current capacity. 戻り値 値を返しません。 例 例1 Ds\Vector::allocate() example <?php $vector = new \Ds\Vector (); var_dump ( $vector -> capacity ()); $vector -> allocate ( 100 ); var_dump ( $ ...
-
https://man.mtool.work/php/8.3/ds-vector.allocate.html
- Ds\Map::allocate — Allocates enough memory for a required capacity | PHP 8.3 10928
- Ds\Map::allocate (PECL ds >= 1.0.0) Ds\Map::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Map::allocate ( int $capacity ): void Allocates enough memory for a required capacity. パラメータ capacity The nu
... mber of values for which capacity should be allocated. 注意 : Capacity will stay the same if this value is less than or equal to the current capacity. 注意 : Capacity will alw ... ays be rounded up to the nearest power of 2. 戻り値 値を返しません。 例 例1 Ds\Map::allocate() example <?php $map = new \Ds\Map (); var_dump ( $map -> capacity ()); $map -> allocate ( 100 ); var_dump ( $map -> capac ...
-
https://man.mtool.work/php/8.3/ds-map.allocate.html
- Ds\Sequence::allocate — Allocates enough memory for a required capacity | PHP 8... 10928
- Ds\Sequence::allocate (PECL ds >= 1.0.0) Ds\Sequence::allocate — Allocates enough memory for a required capacity 説明 abstract public function Ds\Sequence::allocate ( int $capacity ): void Ensures that enough memory is allocated for a requi
... red capacity. This removes the need to reallocate the internal buffer as values are added. パラメータ capacity The number of values for which capacity should be allocated. ... ill stay the same if this value is less than or equal to the current capacity. 戻り値 値を返しません。 例 例1 Ds\Sequence::allocate() example <?php $sequence = new \Ds\Vector (); var_dump ( $sequence -> capacity ()); $vector -> allocate ( 100 ); var_dump ...
-
https://man.mtool.work/php/8.3/ds-sequence.allocate.html
- Ds\Set::allocate — Allocates enough memory for a required capacity | PHP 8.3 10928
- Ds\Set::allocate (PECL ds >= 1.0.0) Ds\Set::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Set::allocate ( int $capacity ): void Allocates enough memory for a required capacity. パラメータ capacity The nu
... mber of values for which capacity should be allocated. 注意 : Capacity will stay the same if this value is less than or equal to the current capacity. 注意 : Capacity will alw ... ays be rounded up to the nearest power of 2. 戻り値 値を返しません。 例 例1 Ds\Set::allocate() example <?php $set = new \Ds\Set (); var_dump ( $set -> capacity ()); $set -> allocate ( 100 ); var_dump ( $set -> capac ...
-
https://man.mtool.work/php/8.3/ds-set.allocate.html
- Ds\Deque::allocate — Allocates enough memory for a required capacity | PHP 8.3 10864
- Ds\Deque::allocate (PECL ds >= 1.0.0) Ds\Deque::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Deque::allocate ( int $capacity ): void Ensures that enough memory is allocated for a required capacity. This
... removes the need to reallocate the internal buffer as values are added. パラメータ capacity The number of values for which capacity should be allocated. ... nt capacity. 注意 : Capacity will always be rounded up to the nearest power of 2. 戻り値 値を返しません。 例 例1 Ds\Deque::allocate() example <?php $deque = new \Ds\Deque (); var_dump ( $deque -> capacity ()); $deque -> allocate ( 100 ); var_dump ( $dequ ...
-
https://man.mtool.work/php/8.3/ds-deque.allocate.html
- Ds\PriorityQueue::allocate — Allocates enough memory for a required capacity | ... 10864
- Ds\PriorityQueue::allocate (PECL ds >= 1.0.0) Ds\PriorityQueue::allocate — Allocates enough memory for a required capacity 説明 public function Ds\PriorityQueue::allocate ( int $capacity ): void Ensures that enough memory is allocated for a
... required capacity. This removes the need to reallocate the internal buffer as values are added. パラメータ capacity The number of values for which capacity should be allocated. ... ity. 注意 : Capacity will always be rounded up to the nearest power of 2. 戻り値 値を返しません。 例 例1 Ds\PriorityQueue::allocate() example <?php $queue = new \Ds\PriorityQueue (); var_dump ( $queue -> capacity ()); $queue -> allocate ( 100 ); var_dump ...
-
https://man.mtool.work/php/8.3/ds-priorityqueue.allocate.html
- Ds\Queue::allocate — Allocates enough memory for a required capacity | PHP 8.3 10784
- Ds\Queue::allocate (PECL ds >= 1.0.0) Ds\Queue::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Queue::allocate ( int $capacity ): void Ensures that enough memory is allocated for a required capacity. This
... removes the need to reallocate the internal buffer as values are added. 注意 : Capacity will always be rounded up to the nearest power of 2. パラメータ c ... apacity The number of values for which capacity should be allocated. 注意 : Capacity will stay the same if this value is less than or equal to the current capacity. 注意 : Capacity will alw ... ays be rounded up to the nearest power of 2. 戻り値 値を返しません。 例 例1 Ds\Queue::allocate() example <?php $queue = new \Ds\Queue (); var_dump ( $queue -> capacity ()); $queue -> allocate ( 100 ); var_dump ( $queu ...
-
https://man.mtool.work/php/8.3/ds-queue.allocate.html
- Ds\Stack::allocate — Allocates enough memory for a required capacity | PHP 8.3 9346
- Ds\Stack::allocate (PECL ds >= 1.0.0) Ds\Stack::allocate — Allocates enough memory for a required capacity 説明 public function Ds\Stack::allocate ( int $capacity ): void Ensures that enough memory is allocated for a required capacity. This
... removes the need to reallocate the internal buffer as values are added. パラメータ capacity The number of values for which capacity should be allocated. ...
-
https://man.mtool.work/php/8.3/ds-stack.allocate.html
- Data Structures | PHP 8.3 8771
- Data Structures はじめに Efficient data structures for PHP 7, provided as an alternative to the array . See » this blog post for benchmarks, discussion and frequently asked questions. インストール/設定 要件 インストール手順 例 Ds\Collection
... ce Ds\Hashable::hash — Returns a scalar value to be used as a hash value Ds\Sequence — The Sequence interface Ds\Sequence::allocate — Allocates enough memory for a required capacity Ds\Sequence::apply — Updates all values by applying a callback function ... es in the sequence Ds\Sequence::unshift — Adds values to the front of the sequence Ds\Vector — The Vector class Ds\Vector::allocate — Allocates enough memory for a required capacity Ds\Vector::apply — Updates all values by applying a callback function to ... ts the vector to an array Ds\Vector::unshift — Adds values to the front of the vector Ds\Deque — The Deque class Ds\Deque::allocate — Allocates enough memory for a required capacity Ds\Deque::apply — Updates all values by applying a callback function to ...
-
https://man.mtool.work/php/8.3/book.ds.html
- ZMQContext::__construct — Construct a new ZMQContext object | PHP 8.3 7972
- ZMQContext::__construct (PECL zmq >= 0.5.0) ZMQContext::__construct — Construct a new ZMQContext object 説明 public function ZMQContext::__construct ( int $io_threads = 1 , bool $is_persistent = true ) Constructs a new ZMQ context. The cont
... 例外 Throws ZMQContextException if context initialization fails. 例 例1 A ZMQContext() example Construct a new context and allocate request socket from it <?php /* Allocate a new context */ $context = new ZMQContext (); /* Create a new socket */ $socket ...
-
https://man.mtool.work/php/8.3/zmqcontext.construct.html