PHP » GoLang |
login |
register |
about
|
GoLang Ds\Vector::allocate
request it (406)
GoLang replacement for PHP's Ds\Vector::allocate
[edit | history]
Ds\Vector::allocate(PECL ds >= 1.0.0) Ds\Vector::allocate — Allocates enough memory for a required capacity Description
public void Ds\Vector::allocate
( int
$capacity
)Ensures that enough memory is allocated for a required capacity. This removes the need to reallocate the internal as values are added. Parameters
Return ValuesNo value is returned. ExamplesExample #1 Ds\Vector::allocate() example
<?php The above example will output something similar to: int(10) int(100) |
more
Recently updated
more
Most requested
more
Last requests
|