Tag Link | [Array->Reserve] | Category | Array |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 8.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0 |
[Array->Reserve] reserves space for the specified number of elements in an array. Requires one parameter which is an integer specifying the expected size of the array. [Array->Reserve] can be used if the size of an array is known before hand. Lasso can allocate memory more efficiently if it knows the expected size of the array rather than allocating space for one additional element each time one is inserted.
[Array->Reserve(100)]
Required Parameters | |
---|---|
Value | The number of elements to reserve space for. |
See the Lasso 8 Language Guide for examples of how to use this tag.