Add performance note to Array.resize()

This commit is contained in:
MewPurPur
2023-11-09 16:17:18 +02:00
parent b733901e9e
commit 80b636069a
10 changed files with 10 additions and 9 deletions

View File

@@ -544,6 +544,7 @@
<param index="0" name="size" type="int" />
<description>
Resizes the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are [code]null[/code]. Returns [constant OK] on success, or one of the other [enum Error] values if the operation failed.
Calling [method resize] once and assigning the new values is faster than adding new elements one by one.
[b]Note:[/b] This method acts in-place and doesn't return a modified array.
</description>
</method>