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

    Class Library

    Low-level native library handle.

    For most use cases, prefer CDLL or WinDLL instead.

    Index
    • Parameters

      • path: string
      • Optionalmode: number
      • Optionalwinmode: number
      • Optionalhandle: number | bigint

      Returns Library

    path: string

    Library file path.

    handle: bigint

    Native OS module handle address.

    loaded: boolean

    Whether the logical library handle is open (not a physical-unload probe).

    • Get the address of a symbol in the library.

      Parameters

      • name: string

        Symbol name

      Returns bigint

      Address as BigInt

    • Logically close the library. Functions obtained from it throw when called afterwards. Throws while a call to one of its functions is in progress (from a callback, or a pending callAsync()). Existing in_dll() views and dependent memory remain valid and defer native handle release until their last owner is collected. Physical unloading depends on the OS loader; musl keeps modules resident.

      Returns void