pub unsafe extern "C" fn napi_get_value_bigint_int64(
env: napi_env,
value: napi_value,
result: *mut i64,
lossless: *mut bool,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Obtains a signed 64-bit integer from an ArkTS BigInt object.
§Arguments
-
env- Current running virtual machine context. -
value- ArkTS BigInt object. -
result- Pointer points to the location where store the C signed 64-bit integer value. -
lossless- Indicates whether the conversion is lossless. If lossless is true, the conversion is lossless, false otherwise.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, value, result or lossless is nullptr or word_count is larger than
2147483647.
[napi_bigint_expected] If the ‘value’ is not an ArkTS bigint object.
Available since API-level: 10