Function StreamPeer.getUtf8String

Gets an UTF-8 string with byte-length bytes from the stream (this decodes the string sent as UTF-8). If bytes is negative (default) the length will be read from the stream using the reverse process of putUtf8String.

String getUtf8String (
  const(long) bytes = -1L
) nothrow @nogc;