napi_create_bigint_int64


napi_status napi_create_bigint_int64(napi_env env,
                                     int64_t value,
                                     napi_value* result); 
  • [in] env:调用 API 的环境。

    ¥[in] env: The environment that the API is invoked under.

  • [in] value:要在 JavaScript 中表示的整数值。

    ¥[in] value: Integer value to be represented in JavaScript.

  • [out] result:代表 JavaScript BigIntnapi_value

    ¥[out] result: A napi_value representing a JavaScript BigInt.

如果 API 成功,则返回 napi_ok

¥Returns napi_ok if the API succeeded.

此 API 将 C int64_t 类型转换为 JavaScript BigInt 类型。

¥This API converts the C int64_t type to the JavaScript BigInt type.