equals method

bool equals(
  1. Uri? pUri
)

Implementation

bool equals(Uri? pUri) {
  final value = calloc<Bool>();

  try {
    final hr = ptr.ref.vtable
        .elementAt(21)
        .cast<
            Pointer<
                NativeFunction<
                    HRESULT Function(VTablePointer lpVtbl, VTablePointer pUri,
                        Pointer<Bool> value)>>>()
        .value
        .asFunction<
            int Function(VTablePointer lpVtbl, VTablePointer pUri,
                Pointer<Bool> value)>()(ptr.ref.lpVtbl, pUri.lpVtbl, value);

    if (FAILED(hr)) throwWindowsException(hr);

    return value.value;
  } finally {
    free(value);
  }
}