@node-ctypes/winrt - v0.1.0
    Preparing search index...

    Function readIterable

    • Iterate any WinRT IIterable<T> into a JavaScript array, releasing both the iterable and its IIterator<T>.

      Type Parameters

      • T

      Parameters

      • iterableAddr: bigint
      • readCurrent: (
            iter: InterfacePointer<
                ComInterfaceDef<
                    ComInterfaceDef<
                        ComInterfaceDef<
                            undefined,
                            readonly [
                                MethodSpec<
                                    "QueryInterface",
                                    RawFunction<
                                        SimpleCDataConstructor<"int32"> & {},
                                        readonly [
                                            PointerTypeDef<typeof GUID>,
                                            PointerTypeDef<SimpleCDataConstructor<(...)>>,
                                        ],
                                    >,
                                    "method",
                                    "QueryInterface",
                                >,
                                MethodSpec<
                                    "AddRef",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "AddRef",
                                >,
                                MethodSpec<
                                    "Release",
                                    RawFunction<SimpleCDataConstructor<"uint32">, readonly []>,
                                    "method",
                                    "Release",
                                >,
                            ],
                            readonly [],
                        >,
                        readonly [
                            MethodSpec<
                                "GetIids",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [
                                        SimpleCDataConstructor<"pointer">,
                                        SimpleCDataConstructor<"pointer">,
                                    ],
                                >,
                                "method",
                                "GetIids",
                            >,
                            MethodSpec<
                                "GetRuntimeClassName",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetRuntimeClassName",
                            >,
                            MethodSpec<
                                "GetTrustLevel",
                                RawFunction<
                                    SimpleCDataConstructor<"int32"> & {},
                                    readonly [SimpleCDataConstructor<"pointer">],
                                >,
                                "method",
                                "GetTrustLevel",
                            >,
                        ],
                        readonly [],
                    >,
                    readonly [
                        MethodSpec<
                            "get_Current",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_Current",
                        >,
                        MethodSpec<
                            "get_HasCurrent",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "get_HasCurrent",
                        >,
                        MethodSpec<
                            "MoveNext",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [SimpleCDataConstructor<"pointer">],
                            >,
                            "method",
                            "MoveNext",
                        >,
                        MethodSpec<
                            "GetMany",
                            RawFunction<
                                SimpleCDataConstructor<"int32"> & {},
                                readonly [
                                    SimpleCDataConstructor<"uint32">,
                                    SimpleCDataConstructor<"pointer">,
                                    SimpleCDataConstructor<"pointer">,
                                ],
                            >,
                            "method",
                            "GetMany",
                        >,
                    ],
                    readonly [],
                >,
            >,
        ) => T

      Returns T[]