Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Returns a new [PoolByteArray] with the data compressed. Set the compression mode using one of [enum File.CompressionMode]'s constants.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="int"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="decompress">
<returntype="PoolByteArray"/>
<argumentindex="0"name="buffer_size"type="int"/>
@ -67,6 +74,14 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="get_string_from_ascii">
<returntype="String"/>
<description>
@ -79,6 +94,14 @@
Returns a copy of the array's contents as [String]. Slower than [method get_string_from_ascii] but supports UTF-8 encoded data. Use this function if you are unsure about the source of the data. For user input this function should always be preferred.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="int"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="hex_encode">
<returntype="String"/>
<description>
@ -121,6 +144,14 @@
[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolColorArray] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="Color"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -41,6 +48,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="Color"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -72,6 +95,14 @@
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolIntArray] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="int"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -42,6 +49,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="int"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -74,6 +97,14 @@
[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolRealArray] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="float"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -42,6 +49,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="float"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -74,6 +97,14 @@
[b]Note:[/b] Added elements are not automatically initialized to 0 and will contain garbage, i.e. indeterminate values.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolStringArray] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="String"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -42,6 +49,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="String"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -80,6 +103,14 @@
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolVector2Array] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="Vector2"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -42,6 +49,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="Vector2"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -73,6 +96,14 @@
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.
Appends a [PoolVector3Array] at the end of this array.
</description>
</method>
<methodname="count">
<returntype="int"/>
<argumentindex="0"name="value"type="Vector3"/>
<description>
Returns the number of times an element is in the array.
</description>
</method>
<methodname="empty">
<returntype="bool"/>
<description>
@ -41,6 +48,22 @@
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
Searches the array for a value and returns its index or [code]-1[/code] if not found. Optionally, the initial search index can be passed. Returns [code]-1[/code] if [code]from[/code] is out of bounds.
</description>
</method>
<methodname="has">
<returntype="bool"/>
<argumentindex="0"name="value"type="Vector3"/>
<description>
Returns [code]true[/code] if the array contains the given value.
[b]Note:[/b] This is equivalent to using the [code]in[/code] operator.
</description>
</method>
<methodname="insert">
<returntype="int"/>
<argumentindex="0"name="idx"type="int"/>
@ -72,6 +95,14 @@
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
Searches the array in reverse order. Optionally, a start search index can be passed. If negative, the start index is considered relative to the end of the array. If the adjusted start index is out of bounds, this method searches from the end of the array.