napi_create_bigint_int64
functionv6js_native_api.hThis API converts the C int64_t type to the JavaScript BigInt type.
napi_status napi_create_bigint_int64(napi_env env,
int64_t value,
napi_value* result);
[in] env: The environment that the API is invoked under.[in] value: Integer value to be represented in JavaScript.[out] result: Anapi_valuerepresenting a JavaScriptBigInt.
Returns napi_ok if the API succeeded.
This API converts the C int64_t type to the JavaScript BigInt type.