You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
PackedByteArray, Array slice end exclusive, rename subarray to slice
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user