getDateTimeArray method
Implementation
List<DateTime> getDateTimeArray() {
final valueSize = calloc<Uint32>();
final value = calloc<Pointer<Int64>>();
try {
final hr = ptr.ref.vtable
.elementAt(40)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl,
Pointer<Uint32> valueSize,
Pointer<Pointer<Int64>> value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl, Pointer<Uint32> valueSize,
Pointer<Pointer<Int64>> value)>()(
ptr.ref.lpVtbl, valueSize, value);
if (FAILED(hr)) throwWindowsException(hr);
return value.value.toDateTimeList(length: valueSize.value);
} finally {
free(valueSize);
free(value);
}
}