materialIndices property

IVector<int>? materialIndices

Implementation

IVector<int>? get materialIndices {
  final value = calloc<COMObject>();

  final hr = ptr.ref.vtable
          .elementAt(6)
          .cast<
              Pointer<
                  NativeFunction<
                      HRESULT Function(
                          VTablePointer lpVtbl, Pointer<COMObject> value)>>>()
          .value
          .asFunction<
              int Function(VTablePointer lpVtbl, Pointer<COMObject> value)>()(
      ptr.ref.lpVtbl, value);

  if (FAILED(hr)) {
    free(value);
    throwWindowsException(hr);
  }

  if (value.isNull) {
    free(value);
    return null;
  }

  return IVector.fromPtr(value,
      iterableIid: '{421d4b91-b13b-5f37-ae54-b5249bd80539}',
      intType: IntType.uint32);
}