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