node-ctypes - v2.17.1
    Preparing search index...

    Type Alias SwappedConstructor<Tag>

    SwappedConstructor: Tag extends | "pointer"
    | "string"
    | "wstring"
    | "wchar"
    | "variant_bool"
        ? undefined
        : Tag extends "longdouble"
            ? SimpleCDataConstructor<"double">
            | undefined
            : Tag extends "long"
                ? SimpleCDataConstructor<"int32" | "int64">
                : Tag extends "ulong"
                    ? SimpleCDataConstructor<"uint32" | "uint64">
                    : SimpleCDataConstructor<Tag extends "bool" ? "uint8" : Tag>

    __ctype_be__ / __ctype_le__ of a scalar type: a constructor for numeric types and c_char, undefined for c_void_p, c_char_p, c_wchar_p, c_wchar and VARIANT_BOOL (as in Python). c_long / c_ulong share the variant of the C type of the same size, as in CPython: c_int32_be (Number values) where long is 32-bit (Windows), c_int64_be (BigInt) on LP64. c_longdouble has one only where it is c_double (Windows, macOS ARM64), so it is typed ... | undefined.

    Type Parameters

    • Tag extends string