diff options
author | Nathan Franke <natfra@pm.me> | 2021-11-26 19:18:26 -0600 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2021-11-26 22:13:12 -0600 |
commit | dd30253cdcf9b43e401cb3ba6b973f8890551a81 (patch) | |
tree | e4635fdb01090bc6b3e8d5179a0f4588f6a4f61e /doc/classes/PackedByteArray.xml | |
parent | b43281c8abf2d16d65f75817f0554a9b8ee044aa (diff) |
PackedByteArray, Array slice end exclusive, rename subarray to slice
Diffstat (limited to 'doc/classes/PackedByteArray.xml')
-rw-r--r-- | doc/classes/PackedByteArray.xml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index fd098481e4..b16d45b8ca 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -366,18 +366,19 @@ Returns the size of the array. </description> </method> - <method name="sort"> - <return type="void" /> + <method name="slice" qualifiers="const"> + <return type="PackedByteArray" /> + <argument index="0" name="begin" type="int" /> + <argument index="1" name="end" type="int" /> <description> - Sorts the elements of the array in ascending order. + Returns the slice of the [PackedByteArray], from [code]begin[/code] (inclusive) to [code]end[/code] (exclusive), as a new [PackedByteArray]. + If [code]end[/code]is negative, it will be relative to the end of the array. </description> </method> - <method name="subarray" qualifiers="const"> - <return type="PackedByteArray" /> - <argument index="0" name="from" type="int" /> - <argument index="1" name="to" type="int" /> + <method name="sort"> + <return type="void" /> <description> - Returns the slice of the [PackedByteArray] between indices (inclusive) as a new [PackedByteArray]. Any negative index is considered to be from the end of the array. + Sorts the elements of the array in ascending order. </description> </method> <method name="to_float32_array" qualifiers="const"> |