readUtf8NullEnding method

String readUtf8NullEnding()

Reads a null-terminated UTF-8 string.

Implementation

String readUtf8NullEnding() {
  var length = lengthUntilZero();
  final result = readUtf8(length);
  readUint8();
  return result;
}