PackedByteArray, Array slice end exclusive, rename subarray to slice
This commit is contained in:
parent
b43281c8ab
commit
dd30253cdc
20 changed files with 166 additions and 157 deletions
|
|
@ -366,20 +366,21 @@
|
|||
Returns the size of the array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="slice" qualifiers="const">
|
||||
<return type="PackedByteArray" />
|
||||
<argument index="0" name="begin" type="int" />
|
||||
<argument index="1" name="end" type="int" />
|
||||
<description>
|
||||
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="sort">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Sorts the elements of the array in ascending order.
|
||||
</description>
|
||||
</method>
|
||||
<method name="subarray" qualifiers="const">
|
||||
<return type="PackedByteArray" />
|
||||
<argument index="0" name="from" type="int" />
|
||||
<argument index="1" name="to" type="int" />
|
||||
<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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="to_float32_array" qualifiers="const">
|
||||
<return type="PackedFloat32Array" />
|
||||
<description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue