summaryrefslogtreecommitdiff
path: root/doc/classes/PackedInt32Array.xml
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2020-12-21 17:30:01 +0100
committerGitHub <noreply@github.com>2020-12-21 17:30:01 +0100
commit6532596d97d90474738283e0f2662719d10aaac0 (patch)
treecb39cd13521cae7b28c8e083a673ed52a9381274 /doc/classes/PackedInt32Array.xml
parent0923494c78130d69ff6d53737c53e5b6cfc163a2 (diff)
parent2d56e092765affde1904e76fe912329db0e9eab6 (diff)
Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarrays
Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
Diffstat (limited to 'doc/classes/PackedInt32Array.xml')
-rw-r--r--doc/classes/PackedInt32Array.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/PackedInt32Array.xml b/doc/classes/PackedInt32Array.xml
index eded545de8..7923b268a4 100644
--- a/doc/classes/PackedInt32Array.xml
+++ b/doc/classes/PackedInt32Array.xml
@@ -5,7 +5,6 @@
</brief_description>
<description>
An [Array] specifically designed to hold 32-bit integer values. Packs data tightly, so it saves memory for large array sizes.
- [b]Note:[/b] This type is passed by value and not by reference.
[b]Note:[/b] This type stores signed 32-bit integers, which means it can take values in the interval [code][-2^31, 2^31 - 1][/code], i.e. [code][-2147483648, 2147483647][/code]. Exceeding those bounds will wrap around. In comparison, [int] uses signed 64-bit integers which can hold much larger values. If you need to pack 64-bit integers tightly, see [PackedInt64Array].
</description>
<tutorials>
@@ -54,6 +53,13 @@
Appends a [PackedInt32Array] at the end of this array.
</description>
</method>
+ <method name="duplicate">
+ <return type="PackedInt32Array">
+ </return>
+ <description>
+ Creates a copy of the array, and returns it.
+ </description>
+ </method>
<method name="empty">
<return type="bool">
</return>