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:
@ -177,10 +177,10 @@
|
||||
[b]Note:[/b] To put an ASCII string without prepending its size, you can use [method put_data]:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
put_data("Hello world".to_ascii())
|
||||
put_data("Hello world".to_ascii_buffer())
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
PutData("Hello World".ToAscii());
|
||||
PutData("Hello World".ToAsciiBuffer());
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</description>
|
||||
@ -221,10 +221,10 @@
|
||||
[b]Note:[/b] To put an UTF-8 string without prepending its size, you can use [method put_data]:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
put_data("Hello world".to_utf8())
|
||||
put_data("Hello world".to_utf8_buffer())
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
PutData("Hello World".ToUtf8());
|
||||
PutData("Hello World".ToUtf8Buffer());
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user