readAverageMindData method

MindData readAverageMindData(
  1. int nLastWinToAverage
)

Implementation

MindData readAverageMindData(int nLastWinToAverage) {
  return _usingOp<MindData>((arena, opStatus) {
    final nativeData = arena<NativeMindData>();
    bindings.MathLibReadAverageMentalData(_pointer, nLastWinToAverage, nativeData, opStatus);
    opStatus.ref.throwIfNotSuccessful();
    return nativeData.ref.toManaged();
  });
}