readUtf8SimpleNullEnding method

String readUtf8SimpleNullEnding(
  1. int length
)

Reads an UTF-8 string delimited by a zero-byte. Throws RawReaderException if a multi-byte rune is encountered.

Implementation

String readUtf8SimpleNullEnding(int length) {
  var length = lengthUntilZero();
  final result = readUtf8Simple(length);
  readUint8();
  return result;
}