readUTF8EncodedString method

String readUTF8EncodedString()

Reads a UTF-8 encoded string with variable length prefix.

First reads the string length as a variable-length unsigned integer, then decodes that many bytes as a UTF-8 string.

Returns the decoded string

Implementation

String readUTF8EncodedString() {
  return readUTF8EncodedString2(readUnsignedInt());
}