Home
last modified time | relevance | path

Searched refs:word_count (Results 1 – 8 of 8) sorted by relevance

/foundation/arkui/napi/sample/native_module_systemtest/
Djs_test_bigint_napi.cpp107 size_t word_count = 10; in BigIntWords() local
110 NAPI_CALL(env, napi_get_value_bigint_words(env, args[0], &sign_bit, &word_count, words)); in BigIntWords()
111 NAPI_ASSERT(env, word_count == expected_word_count, "word counts do not match"); in BigIntWords()
114 NAPI_CALL(env, napi_create_bigint_words(env, sign_bit, word_count, words, &output)); in BigIntWords()
124 size_t word_count = 10; in CreateTooBigBigInt() local
127 NAPI_CALL(env, napi_create_bigint_words(env, sign_bit, word_count, words, &output)); in CreateTooBigBigInt()
Dtest_napi.cpp1659 size_t word_count = INT_FOUR; variable
1662 ExpectCheckCall(napi_create_bigint_words(env, sign_bit, word_count, words, &result));
1665 uint64_t wordsOut[word_count];
1666 ExpectCheckCall(napi_get_value_bigint_words(env, result, &sign, &word_count, wordsOut));
1669 EXPECT_EQ(word_count, (size_t)INT_FOUR);
1670 for (size_t i = INT_ZERO; i < word_count; i++) {
1693 size_t word_count = INT_FOUR; variable
1696 ExpectCheckCall(napi_create_bigint_words(env, sign_bit, word_count, words, &result));
1699 uint64_t wordsOut[word_count];
1700 ExpectCheckCall(napi_get_value_bigint_words(env, result, &sign, &word_count, wordsOut));
[all …]
/foundation/ability/ability_runtime/test/unittest/runtime_test/
Dmock_js_native_engine.h276 NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) override in CreateBigWords() argument
/foundation/ability/ability_runtime/test/unittest/ability_runtime_error_util_test/
Dmock_native_engine.h278 NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) override in CreateBigWords() argument
/foundation/arkui/napi/native_engine/impl/ark/
Dark_native_engine.h192 NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) override;
Dark_native_engine.cpp1113 NativeValue* ArkNativeEngine::CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) in CreateBigWords() argument
1120 uint32_t size = (uint32_t)word_count; in CreateBigWords()
/foundation/arkui/napi/native_engine/
Dnative_api.cpp2447 napi_env env, int sign_bit, size_t word_count, const uint64_t* words, napi_value* result) in napi_create_bigint_words() argument
2453 RETURN_STATUS_IF_FALSE(env, word_count <= INT_MAX, napi_invalid_arg); in napi_create_bigint_words()
2454 auto resultValue = engine->CreateBigWords(sign_bit, word_count, words); in napi_create_bigint_words()
2463 napi_env env, napi_value value, int* sign_bit, size_t* word_count, uint64_t* words) in napi_get_value_bigint_words() argument
2467 CHECK_ARG(env, word_count); in napi_get_value_bigint_words()
2475 auto resultValue = nativeBigint->GetWordsArray(sign_bit, word_count, words); in napi_get_value_bigint_words()
Dnative_engine.h313 virtual NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) = 0;