AddPeriods method

void AddPeriods(
  1. int periods
)

Implementation

void AddPeriods(int periods) {
  final hr = _thisPtr.ref.vtable
      .elementAt(67)
      .cast<
          Pointer<NativeFunction<HRESULT Function(Pointer, Int32 periods)>>>()
      .value
      .asFunction<
          int Function(Pointer, int periods)>()(_thisPtr.ref.lpVtbl, periods);

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