阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js N-API napi_get_value_bigint_words

      Node.js N-API napi_get_value_bigint_words

      新增于: v10.7.0 稳定性: 1 - 试验 napi_status napi_get_value_bigint_words(napi_env env, napi_value value, size_t* word_count, int* sign_bit, uint64_t* words); [in] env: The environment that the API is invoked under. [in] value: napi_value representing JavaScript BigInt. [out] sign_bit: Integer representing if the JavaScript BigInt is positive or negative. [in/out] word_count: Must be initialized to the length of the words array. Upon return, it will be set to the actual number of words that would be needed to store this BigInt. [out] words: Pointer to a pre-allocated 64-bit word array. Returns napi_ok if the API succeeded.

      This API converts a single BigInt value into a sign bit, 64-bit little-endian array, and the number of elements in the array. sign_bit and words may be both set to NULL, in order to get only word_count.


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


      目录
      本文目录
      目录