readRawSpectrumInfo method

RawSpectrumData readRawSpectrumInfo()

Implementation

RawSpectrumData readRawSpectrumInfo() {
  final nativeRawSpectrumDataPtr = calloc<NativeRawSpectrumData>();

  try {
    bindings.SpectrumMathReadRawSpectrumInfo(_pointer, nativeRawSpectrumDataPtr);

    var native = nativeRawSpectrumDataPtr.ref;
    var managed = native.toManaged();

    native.dispose();

    return managed;
  } finally {
    calloc.free(nativeRawSpectrumDataPtr);
  }
}