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

    Class Callback

    Native callback class for main-thread callbacks.

    Hierarchy (View Summary)

    Index
    pointer: bigint

    The callback function pointer, passable to native functions.

    • Return the function pointer, throwing if the callback has been released.

      Returns bigint

    • Release the callback and free native resources. Must be called when done.

      Returns void

    • Handler called with the error message when the JS function throws. Without a handler the error is reported with process.emitWarning.

      Parameters

      • handler: (message: string) => void

      Returns void

    • Message of the last exception thrown by the JS function, or null.

      Returns string