getSPIinfo method

String getSPIinfo()

Returns a string representation of the spi handle.

Implementation

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