getSerialInfo method

String getSerialInfo()

Returns a string representation of the Serial handle.

Implementation

String getSerialInfo() {
  _checkStatus();
  var data = malloc<Int8>(bufferLen).cast<Utf8>();
  try {
    _checkError(_nativeSerialInfo(_serialHandle, data, bufferLen));
    return data.toDartString();
  } finally {
    malloc.free(data);
  }
}