阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js napi_finalize

      Node.js napi_finalize

      Function pointer type for add-on provided functions that allow the user to be notified when externally-owned data is ready to be cleaned up because the object with which it was associated with, has been garbage-collected. The user must provide a function satisfying the following signature which would get called upon the object’s collection. Currently, napi_finalize can be used for finding out when objects that have external data are collected.

      typedef void (*napi_finalize)(napi_env env,
                                    void* finalize_data,
                                    void* finalize_hint);
      

      更多内容请参考:Node.js N-API,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录