readAsciiString method

String readAsciiString({
  1. int bytes = 0,
  2. int bits = 0,
})

Reads an ASCII string from the stream of length bytes and bits

Implementation

String readAsciiString({int bytes = 0, int bits = 0}) {
  try {
    return new String.fromCharCodes(readBytes(bytes: bytes, bits: bits));
  } on Exception {}
  return "";
}