readUTFBytes method
Reads a sequence of UTF-8 bytes specified by the length parameter from the byte stream and returns a string.
Implementation
String readUTFBytes(int length) {
if (length == 0) {
return "";
}
_validate(length);
var bytes = _readBytes(length);
return _decodeUTF8(bytes);
}