napi_create_bigint_uint64
napi_status napi_create_bigint_uint64(napi_env env,
uint64_t value,
napi_value* result); -
[in] env:调用 API 的环境。¥
[in] env: The environment that the API is invoked under. -
[in] value:要在 JavaScript 中表示的无符号整数值。¥
[in] value: Unsigned integer value to be represented in JavaScript. -
[out] result:代表 JavaScriptBigInt的napi_value。¥
[out] result: Anapi_valuerepresenting a JavaScriptBigInt.
如果 API 成功,则返回 napi_ok。
¥Returns napi_ok if the API succeeded.
此 API 将 C uint64_t 类型转换为 JavaScript BigInt 类型。
¥This API converts the C uint64_t type to the JavaScript BigInt type.