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