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

    Interface CallbackWrapper

    Wrapper around a native callback.

    Important: Always call release() when the callback is no longer needed to prevent memory leaks.

    interface CallbackWrapper {
        _callback: Callback;
        pointer: bigint;
        _as_parameter_: bigint;
        release(): void;
        "[dispose]"(): void;
    }

    Hierarchy (View Summary)

    Index
    _callback: Callback
    pointer: bigint

    The callback function pointer, passable to native functions.

    _as_parameter_: bigint

    Same as pointer: lets the callback be passed directly as an argument.

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

      Returns void

    • Release the callback at the end of a using block.

      Returns void