阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_create_bigint_words

      Node.js N-API napi_create_bigint_words

      新增于: v10.7.0

      napi_status napi_create_bigint_words(napi_env env, int sign_bit, size_t word_count, const uint64_t* words, napi_value* result); [in] env: The environment that the API is invoked under. [in] sign_bit: Determines if the resulting BigInt will be positive or negative. [in] word_count: The length of the words array. [in] words: An array of uint64_t little-endian 64-bit words. [out] result: A napi_value representing a JavaScript BigInt. Returns napi_ok if the API succeeded.

      This API converts an array of unsigned 64-bit words into a single BigInt value.

      The resulting BigInt is calculated as: (–1)sign_bit (words[0] × (264)0 + words[1] × (264)1 + …)


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


      目录
      本文目录
      目录