Fix PackedStringArray.to_byte_array() to return UTF-8 encoded data instead of pointers.

This commit is contained in:
Pāvels Nadtočajevs
2025-02-07 10:19:19 +02:00
parent 06acfccf89
commit 1bc86c2626
2 changed files with 14 additions and 2 deletions

View File

@@ -193,7 +193,7 @@
<method name="to_byte_array" qualifiers="const">
<return type="PackedByteArray" />
<description>
Returns a [PackedByteArray] with each string encoded as bytes.
Returns a [PackedByteArray] with each string encoded as UTF-8. Strings are [code]null[/code] terminated.
</description>
</method>
</methods>