roundDouble method
Implementation
double roundDouble(double value) {
final result = calloc<Double>();
try {
final hr = ptr.ref.vtable
.elementAt(11)
.cast<
Pointer<
NativeFunction<
HRESULT Function(VTablePointer lpVtbl, Double value,
Pointer<Double> result)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl, double value,
Pointer<Double> result)>()(ptr.ref.lpVtbl, value, result);
if (FAILED(hr)) throwWindowsException(hr);
return result.value;
} finally {
free(result);
}
}