Change to_utf8 to to_utf8_buffer and to_ascii to to_ascii_buffer in remaining docs

The method `to_utf8` doesn't exist in Godot 4, but is still mentioned in
the documentation in some places. Replace it with the new name
`to_utf8_buffer`. Same for ascii. Same for C#.
This commit is contained in:
mara
2023-03-13 22:58:27 +01:00
parent 79454bfd3b
commit 57dca93718
7 changed files with 38 additions and 38 deletions

View File

@@ -86,7 +86,7 @@
func _process(delta):
if !connected:
# Try to contact server
udp.put_packet("The answer is... 42!".to_utf8())
udp.put_packet("The answer is... 42!".to_utf8_buffer())
if udp.get_available_packet_count() > 0:
print("Connected: %s" % udp.get_packet().get_string_from_utf8())
connected = true
@@ -110,7 +110,7 @@
if (!_connected)
{
// Try to contact server
_udp.PutPacket("The Answer Is..42!".ToUtf8());
_udp.PutPacket("The Answer Is..42!".ToUtf8Buffer());
}
if (_udp.GetAvailablePacketCount() > 0)
{