GetFuncDesc method Null safety

int GetFuncDesc(
  1. int index,
  2. Pointer<Pointer<FUNCDESC>> ppFuncDesc
)

Implementation

int GetFuncDesc(int index, Pointer<Pointer<FUNCDESC>> ppFuncDesc) => ptr
        .ref.vtable
        .elementAt(5)
        .cast<
            Pointer<
                NativeFunction<
                    Int32 Function(Pointer, Uint32 index,
                        Pointer<Pointer<FUNCDESC>> ppFuncDesc)>>>()
        .value
        .asFunction<
            int Function(
                Pointer, int index, Pointer<Pointer<FUNCDESC>> ppFuncDesc)>()(
    ptr.ref.lpVtbl, index, ppFuncDesc);