napi_create_bigint_int64
napi_status napi_create_bigint_int64(napi_env env,
int64_t value,
napi_value* result); [in] env:调用该 API 时所处的环境。[in] value:要在 JavaScript 中表示的整数值。[out] result:表示 JavaScriptBigInt的napi_value。
如果 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.】