removeAtEnd method

void removeAtEnd()

Removes the last item from the vector.

Implementation

void removeAtEnd() {
  final hr = ptr.ref.vtable
      .elementAt(14)
      .cast<Pointer<NativeFunction<HRESULT Function(Pointer)>>>()
      .value
      .asFunction<int Function(Pointer)>()(ptr.ref.lpVtbl);

  if (FAILED(hr)) throw WindowsException(hr);
}