fromUtf8 static method
Implementation
static String fromUtf8(Pointer<Utf8NullTerminated> ptr) {
final List<int> bytes = [];
var len = 0;
while (true) {
final char = ptr.elementAt(len++).ref.char;
if (char == 0) break;
bytes.add(char);
}
return Utf8Decoder().convert(bytes);
}