addNanoseconds method

void addNanoseconds(
  1. int nanoseconds
)

Implementation

void addNanoseconds(int nanoseconds) {
  final hr = ptr.ref.vtable
      .elementAt(90)
      .cast<
          Pointer<
              NativeFunction<HRESULT Function(Pointer, Int32 nanoseconds)>>>()
      .value
      .asFunction<
          int Function(
              Pointer, int nanoseconds)>()(ptr.ref.lpVtbl, nanoseconds);

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