readCString method

String readCString()

Implementation

String readCString() {
  var stringBytes = <int>[];
  while (byteList[offset++] != 0) {
    stringBytes.add(byteList[offset - 1]);
  }
  return utf8.decode(stringBytes);
}