diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-08-10 17:12:20 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-08-10 17:12:20 +0800 |
commit | 9c4ad8191becda0782e886c72807b87806dc81e5 (patch) | |
tree | f66636ee0a5e9f73670de25b34e5748c02e6c400 /doc/classes/PackedByteArray.xml | |
parent | 94a8065ae4ae19b814bc9b02d41358d55d3cf813 (diff) |
Expose clear method for packed arrays
Diffstat (limited to 'doc/classes/PackedByteArray.xml')
-rw-r--r-- | doc/classes/PackedByteArray.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/PackedByteArray.xml b/doc/classes/PackedByteArray.xml index f7210122e6..36372fbe54 100644 --- a/doc/classes/PackedByteArray.xml +++ b/doc/classes/PackedByteArray.xml @@ -54,6 +54,12 @@ [b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior. </description> </method> + <method name="clear"> + <return type="void" /> + <description> + Clears the array. This is equivalent to using [method resize] with a size of [code]0[/code]. + </description> + </method> <method name="compress" qualifiers="const"> <return type="PackedByteArray" /> <param index="0" name="compression_mode" type="int" default="0" /> |