Function StreamPeer.putString

Puts a zero-terminated ASCII string into the stream prepended by a 32-bit unsigned integer representing its size.

void putString (
  const(String) value
) nothrow @nogc;

Note

To put an ASCII string without prepending its size, you can use putData:

put_data("Hello world".to_ascii())