/foundation/arkui/napi/sample/native_module_systemtest/ |
D | js_test_bigint_napi.cpp | 107 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()
|
D | test_napi.cpp | 1659 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/ |
D | mock_js_native_engine.h | 276 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/ |
D | mock_native_engine.h | 278 NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) override in CreateBigWords() argument
|
/foundation/arkui/napi/native_engine/impl/ark/ |
D | ark_native_engine.h | 192 NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) override;
|
D | ark_native_engine.cpp | 1113 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/ |
D | native_api.cpp | 2447 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()
|
D | native_engine.h | 313 virtual NativeValue* CreateBigWords(int sign_bit, size_t word_count, const uint64_t* words) = 0;
|