getSingle method
Implementation
double getSingle() {
final retValuePtr = calloc<Float>();
try {
final hr = ptr.ref.vtable
.elementAt(15)
.cast<
Pointer<
NativeFunction<HRESULT Function(Pointer, Pointer<Float>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Float>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
final retValue = retValuePtr.value;
return retValue;
} finally {
free(retValuePtr);
}
}