feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<description>
|
||||
An array specifically designed to hold bytes. Packs data tightly, so it saves memory for large array sizes.
|
||||
[PackedByteArray] also provides methods to encode/decode various types to/from bytes. The way values are encoded is an implementation detail and shouldn't be relied upon when interacting with external apps.
|
||||
[b]Note:[/b] Packed arrays are always passed by reference. To get a copy of an array that can be modified independently of the original array, use [method duplicate]. This is [i]not[/i] the case for built-in properties and methods. The returned packed array of these are a copies, and changing it will [i]not[/i] affect the original value. To update a built-in property you need to modify the returned array, and then assign it to the property again.
|
||||
[b]Note:[/b] Packed arrays are always passed by reference. To get a copy of an array that can be modified independently of the original array, use [method duplicate]. This is [i]not[/i] the case for built-in properties and methods. In these cases the returned packed array is a copy, and changing it will [i]not[/i] affect the original value. To update a built-in property of this type, modify the returned array and then assign it to the property again.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
@ -56,6 +56,30 @@
|
|||
[b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior.
|
||||
</description>
|
||||
</method>
|
||||
<method name="bswap16">
|
||||
<return type="void" />
|
||||
<param index="0" name="offset" type="int" default="0" />
|
||||
<param index="1" name="count" type="int" default="-1" />
|
||||
<description>
|
||||
Swaps the byte order of [param count] 16-bit segments of the array starting at [param offset]. Swap is done in-place. If [param count] is less than zero, all segments to the end of array are processed, if processed data size is not a multiple of 2, the byte after the last processed 16-bit segment is not modified.
|
||||
</description>
|
||||
</method>
|
||||
<method name="bswap32">
|
||||
<return type="void" />
|
||||
<param index="0" name="offset" type="int" default="0" />
|
||||
<param index="1" name="count" type="int" default="-1" />
|
||||
<description>
|
||||
Swaps the byte order of [param count] 32-bit segments of the array starting at [param offset]. Swap is done in-place. If [param count] is less than zero, all segments to the end of array are processed, if processed data size is not a multiple of 4, bytes after the last processed 32-bit segment are not modified.
|
||||
</description>
|
||||
</method>
|
||||
<method name="bswap64">
|
||||
<return type="void" />
|
||||
<param index="0" name="offset" type="int" default="0" />
|
||||
<param index="1" name="count" type="int" default="-1" />
|
||||
<description>
|
||||
Swaps the byte order of [param count] 64-bit segments of the array starting at [param offset]. Swap is done in-place. If [param count] is less than zero, all segments to the end of array are processed, if processed data size is not a multiple of 8, bytes after the last processed 64-bit segment are not modified.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear">
|
||||
<return type="void" />
|
||||
<description>
|
||||
|
|
@ -292,6 +316,13 @@
|
|||
Encodes a [Variant] at the index of [param byte_offset] bytes. A sufficient space must be allocated, depending on the encoded variant's size. If [param allow_objects] is [code]false[/code], [Object]-derived values are not permitted and will instead be serialized as ID-only.
|
||||
</description>
|
||||
</method>
|
||||
<method name="erase">
|
||||
<return type="bool" />
|
||||
<param index="0" name="value" type="int" />
|
||||
<description>
|
||||
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="fill">
|
||||
<return type="void" />
|
||||
<param index="0" name="value" type="int" />
|
||||
|
|
@ -320,6 +351,16 @@
|
|||
Converts ASCII/Latin-1 encoded array to [String]. Fast alternative to [method get_string_from_utf8] if the content is ASCII/Latin-1 only. Unlike the UTF-8 function this function maps every byte to a character in the array. Multibyte sequences will not be interpreted correctly. For parsing user input always use [method get_string_from_utf8]. This is the inverse of [method String.to_ascii_buffer].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_string_from_multibyte_char" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="encoding" type="String" default="""" />
|
||||
<description>
|
||||
Converts system multibyte code page encoded array to [String]. If conversion fails, empty string is returned. This is the inverse of [method String.to_multibyte_char_buffer].
|
||||
The values permitted for [param encoding] are system dependent. If [param encoding] is empty string, system default encoding is used.
|
||||
- For Windows, see [url=https://learn.microsoft.com/en-us/windows/win32/Intl/code-page-identifiers]Code Page Identifiers[/url] .NET names.
|
||||
- For macOS and Linux/BSD, see [code]libiconv[/code] library documentation and [code]iconv --list[/code] for a list of supported encodings.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_string_from_utf8" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
|
|
@ -329,13 +370,13 @@
|
|||
<method name="get_string_from_utf16" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Converts UTF-16 encoded array to [String]. If the BOM is missing, system endianness is assumed. Returns empty string if source array is not valid UTF-16 string. This is the inverse of [method String.to_utf16_buffer].
|
||||
Converts UTF-16 encoded array to [String]. If the BOM is missing, little-endianness is assumed. Returns empty string if source array is not valid UTF-16 string. This is the inverse of [method String.to_utf16_buffer].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_string_from_utf32" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Converts UTF-32 encoded array to [String]. System endianness is assumed. Returns empty string if source array is not valid UTF-32 string. This is the inverse of [method String.to_utf32_buffer].
|
||||
Converts UTF-32 encoded array to [String]. Returns empty string if source array is not valid UTF-32 string. This is the inverse of [method String.to_utf32_buffer].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_string_from_wchar" qualifiers="const">
|
||||
|
|
@ -408,6 +449,7 @@
|
|||
<param index="0" name="new_size" type="int" />
|
||||
<description>
|
||||
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. Calling [method resize] once and assigning the new values is faster than adding new elements one by one.
|
||||
Returns [constant OK] on success, or one of the following [enum Error] constants if this method fails: [constant ERR_INVALID_PARAMETER] if the size is negative, or [constant ERR_OUT_OF_MEMORY] if allocations fail. Use [method size] to find the actual size of the array after resize.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reverse">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue