男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

Ds\Queue::allocate

(PECL ds >= 1.0.0)

Ds\Queue::allocateAllocates enough memory for a required capacity

說(shuō)明

public Ds\Queue::allocate(int $capacity): void

Ensures that enough memory is allocated for a required capacity. This removes the need to reallocate the internal as values are added.

注意:

Capacity will always be rounded up to the nearest power of 2.

參數

capacity

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 always be rounded up to the nearest power of 2.

返回值

沒(méi)有返回值。

范例

示例 #1 Ds\Queue::allocate() example

<?php
$queue 
= new \Ds\Queue();
var_dump($queue->capacity());

$queue->allocate(100);
var_dump($queue->capacity());
?>

以上例程的輸出類(lèi)似于:

int(8)
int(128)
男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站