pub unsafe extern "C" fn napi_create_bigint_words(
env: napi_env,
sign_bit: c_int,
word_count: usize,
words: *const u64,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Creates a single ArkTS BigInt from a C uint64 array.
§Arguments
-
env- Current running virtual machine context. -
sign_bit- Sign bit of the BigInt. If sign_bit is 0, the BigInt is positive, otherwise it is negative. -
word_count- The size of the words array. -
words- C uint64 array in little-endian 64-bit format. -
result- Created ArkTS BigInt object from C int64 array.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, words or result is nullptr or word_count is larger than 2147483647.
[napi_pending_exception] If an ArkTS exception existed when the function was called.
Available since API-level: 10