Function StreamPeer.putUtf8String
Puts a zero-terminated UTF-8 string into the stream prepended by a 32 bits unsigned integer representing its size.
Note
To put an UTF-8 string without prepending its size, you can use putData
:
put_data("Hello world".to_utf8())