Home
last modified time | relevance | path

Searched refs:wordCount (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_napi_ext.cpp282 size_t wordCount = 4; variable
286 ASSERT_CHECK_CALL(napi_create_bigint_words(env, signBit, wordCount, words, &result));
291 ASSERT_EQ(wordCount, 4);
302 size_t wordCount = 5; variable
311 ASSERT_EQ(wordCount, 5);
312 for (size_t i = 0; i < wordCount; i++) {
321 size_t wordCount = 4; variable
330 ASSERT_EQ(wordCount, 4);
341 size_t wordCount = 5; variable
350 ASSERT_EQ(wordCount, 5);
[all …]
H A Dtest_napi.cpp6374 size_t wordCount = 4; variable
6378 napi_status status = napi_create_bigint_words(env, signBit, wordCount, words, &result);
6386 size_t wordCount = 4; variable
6390 napi_status status = napi_create_bigint_words(env, signBit, wordCount, words, result);
6521 size_t wordCount = 4; variable
6526 napi_status status = napi_create_bigint_words(env, signBit, wordCount, words, &value);
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-about-bigint.md24 …BigintWords | 将单个BigInt值转换为一个符号位、一个64位的小端数组和该数组的长度。 signBit和words参数可以都设置为NULL,这种情况下,只获取wordCount。|
47 size_t wordCount = 0;
49 // 调用OH_JSVM_GetValueBigintWords接口获取wordCount
50 JSVM_Status status = OH_JSVM_GetValueBigintWords(env, args[0], nullptr, &wordCount, nullptr);
51 OH_LOG_INFO(LOG_APP, "OH_JSVM_GetValueBigintWords wordCount:%{public}d.", wordCount);
52 words = (uint64_t*)malloc(wordCount*sizeof(uint64_t));
58 status = OH_JSVM_GetValueBigintWords(env, args[0], &signBit, &wordCount, words);
86 OH_JSVM_GetValueBigintWords wordCount:1.
107 size_t wordCount = DIFF_VALUE_THREE;
110 JSVM_Status status = OH_JSVM_CreateBigintWords(env, signBit, wordCount, words, &returnValue);
H A Duse-napi-about-bigint.md116 size_t wordCount = 3;
119 napi_status status = napi_create_bigint_words(env, signBit, wordCount, words, &returnValue);
265 size_t wordCount = 0;
267 // 调用napi_get_value_bigint_words接口获取wordCount
268 napi_status status = napi_get_value_bigint_words(env, args[0], nullptr, &wordCount, nullptr);
269 OH_LOG_INFO(LOG_APP, "Node-API , wordCount:%{public}d.", wordCount);
271 status = napi_get_value_bigint_words(env, args[0], &signBit, &wordCount, &words);
H A Djsvm-data-types-interfaces.md1623 size_t wordCount = 2;
1627 OH_LOG_INFO(LOG_APP, "GetPropertyCbInfo wordCount is %{public}zu", wordCount);
1645 size_t wordCount = 2;
1649 OH_LOG_INFO(LOG_APP, "SetPropertyCbInfo wordCount is %{public}zu", wordCount);
1667 size_t wordCount = 2;
1694 size_t wordCount = 2;
1716 size_t wordCount = 2;
1720 OH_LOG_INFO(LOG_APP, "IndexedPropertyGet wordCount is %{public}zu", wordCount);
1740 size_t wordCount = 2;
1761 size_t wordCount = 2;
[all …]
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Djs_common_utils.cpp150 size_t wordCount = 0; in Convert2NativeValue() local
151 napi_status status = napi_get_value_bigint_words(env, jsValue, nullptr, &wordCount, nullptr); in Convert2NativeValue()
152 if (status != napi_ok || wordCount == 0) { in Convert2NativeValue()
153 LOG_ERROR("get wordCount failed %{public}d wordCount %{public}zu.", status, wordCount); in Convert2NativeValue()
156 output.words_.resize(wordCount); in Convert2NativeValue()
157 …status = napi_get_value_bigint_words(env, jsValue, &output.sign_, &wordCount, output.words_.data()… in Convert2NativeValue()
159 …G_ERROR("napi_get_value_bigint_words failed %{public}d wordCount %{public}zu.", status, wordCount); in Convert2NativeValue()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-bigint.md24 …th of the array. If **signBit** and **words** are set to **NULL**, only **wordCount** is obtained.|
48 size_t wordCount = 0;
50 // Call OH_JSVM_GetValueBigintWords to obtain wordCount.
51 JSVM_Status status = OH_JSVM_GetValueBigintWords(env, args[0], nullptr, &wordCount, nullptr);
52 OH_LOG_INFO(LOG_APP, "OH_JSVM_GetValueBigintWords wordCount:%{public}d.", wordCount);
53 words = (uint64_t*)malloc(wordCount*sizeof(uint64_t));
59 status = OH_JSVM_GetValueBigintWords(env, args[0], &signBit, &wordCount, words);
87 OH_JSVM_GetValueBigintWords wordCount:1.
108 size_t wordCount = DIFF_VALUE_THREE;
111 JSVM_Status status = OH_JSVM_CreateBigintWords(env, signBit, wordCount, words, &returnValue);
H A Duse-napi-about-bigint.md116 size_t wordCount = 3;
119 napi_status status = napi_create_bigint_words(env, signBit, wordCount, words, &returnValue);
265 size_t wordCount = 0;
267 // Call napi_get_value_bigint_words to obtain wordCount.
268 napi_status status = napi_get_value_bigint_words(env, args[0], nullptr, &wordCount, nullptr);
269 OH_LOG_INFO(LOG_APP, "Node-API , wordCount:%{public}d.", wordCount);
271 status = napi_get_value_bigint_words(env, args[0], &signBit, &wordCount, &words);
H A Djsvm-data-types-interfaces.md1623 size_t wordCount = 2;
1627 OH_LOG_INFO(LOG_APP, "GetPropertyCbInfo wordCount is %{public}zu", wordCount);
1645 size_t wordCount = 2;
1649 OH_LOG_INFO(LOG_APP, "SetPropertyCbInfo wordCount is %{public}zu", wordCount);
1667 size_t wordCount = 2;
1694 size_t wordCount = 2;
1716 size_t wordCount = 2;
1720 OH_LOG_INFO(LOG_APP, "IndexedPropertyGet wordCount is %{public}zu", wordCount);
1740 size_t wordCount = 2;
1761 size_t wordCount = 2;
[all …]
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_cert_utils.cpp761 size_t wordCount; in CertGetBlobFromBigIntJSParams() local
763 napi_get_value_bigint_words(env, arg, nullptr, &wordCount, nullptr); in CertGetBlobFromBigIntJSParams()
764 if ((wordCount == 0) || (wordCount > (MAX_SN_BYTE_CNT / sizeof(uint64_t)))) { in CertGetBlobFromBigIntJSParams()
768 int length = wordCount * sizeof(uint64_t); in CertGetBlobFromBigIntJSParams()
774 …if (napi_get_value_bigint_words(env, arg, &signBit, &wordCount, reinterpret_cast<uint64_t *>(retAr… in CertGetBlobFromBigIntJSParams()
799 size_t wordCount = 0; in CertGetSerialNumberFromBigIntJSParams() local
800 if (napi_get_value_bigint_words(env, arg, nullptr, &wordCount, nullptr) != napi_ok) { in CertGetSerialNumberFromBigIntJSParams()
805 if (wordCount == 0 || wordCount > (MAX_SN_BYTE_CNT / sizeof(int64_t))) { in CertGetSerialNumberFromBigIntJSParams()
807 LOGE("can not get wordCount, wordCount = %u", wordCount); in CertGetSerialNumberFromBigIntJSParams()
812 uint32_t serialLen = sizeof(int64_t) * wordCount; in CertGetSerialNumberFromBigIntJSParams()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/
H A Dspirv_cross_helpers_gles.h30 CoreCompiler(const uint32_t* ir, size_t wordCount);
H A Dspirv_cross_helpers_gles.cpp84 CoreCompiler::CoreCompiler(const uint32_t* ir, size_t wordCount) : CompilerGLSL(ir, wordCount) {} in CoreCompiler() argument
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp266 size_t wordCount; in GetBigIntFromNapiValue() local
268 napi_get_value_bigint_words(env, arg, nullptr, &wordCount, nullptr); in GetBigIntFromNapiValue()
269 if ((wordCount == 0) || (wordCount > (INT_MAX / sizeof(uint64_t)))) { in GetBigIntFromNapiValue()
273 int length = wordCount * sizeof(uint64_t); in GetBigIntFromNapiValue()
279 …if (napi_get_value_bigint_words(env, arg, &signBit, &wordCount, reinterpret_cast<uint64_t *>(retAr… in GetBigIntFromNapiValue()
/ohos5.0/docs/zh-cn/application-dev/reference/common/
H A D_j_s_v_m.md164 …jsvm_createbigintwords) ([JSVM_Env](#jsvm_env) env, int signBit, size_t wordCount, const uint64_t …
178 …t \*signBit, size_t \*wordCount, uint64_t \*words) | 将单个BigInt值转换为符号位、64位小端数组和数组中的元素数。 signBit和wor…
1513 JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords (JSVM_Env env, int signBit, size_t wordCount, con…
1528 | wordCount | words数组的长度。 |
3316 …lueBigintWords (JSVM_Env env, JSVM_Value value, int * signBit, size_t * wordCount, uint64_t * word…
3321 将单个BigInt值转换为符号位、64位小端数组和数组中的元素数。 signBit和words参数可以都设置为NULL。这种情况下,只获取wordCount
3332 | wordCount | 必须初始化为words数组的长度。返回后,将被设置为存储此BigInt所需的实际字数。 |
H A Djsvm_8h.md98 …bigintwords) ([JSVM_Env](_j_s_v_m.md#jsvm_env) env, int signBit, size_t wordCount, const uint64_t …
112 …t \*signBit, size_t \*wordCount, uint64_t \*words) | 将单个BigInt值转换为符号位、64位小端数组和数组中的元素数。 signBit和wor…
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp3561 size_t* wordCount, uint64_t* words) in BigIntGetWordsArray() argument
3563 if (wordCount == nullptr) { in BigIntGetWordsArray()
3568 *wordCount = size; in BigIntGetWordsArray()
3571 if (size > *wordCount) { in BigIntGetWordsArray()
3572 size = *wordCount; in BigIntGetWordsArray()
3581 *wordCount = size; in BigIntGetWordsArray()
/ohos5.0/docs/en/application-dev/reference/common/
H A Djsvm_8h.md98 …bigintwords) ([JSVM_Env](_j_s_v_m.md#jsvm_env) env, int signBit, size_t wordCount, const uint64_t …
112wordCount, uint64_t \*words) | Gets the sign bit, 64-bit little-endian array, and number of elemen…
H A D_j_s_v_m.md164 …jsvm_createbigintwords) ([JSVM_Env](#jsvm_env) env, int signBit, size_t wordCount, const uint64_t …
178wordCount, uint64_t \*words) | Gets the sign bit, 64-bit little-endian array, and number of elemen…
1513 JSVM_EXTERN JSVM_Status OH_JSVM_CreateBigintWords (JSVM_Env env, int signBit, size_t wordCount, con…
1528 | wordCount | Length of the words array.|
3316 …lueBigintWords (JSVM_Env env, JSVM_Value value, int * signBit, size_t * wordCount, uint64_t * word…
3321 …oth **signBit** and **words** can be set to **NULL**. In this case, only **wordCount** is obtained.
3332 | wordCount | Length of the words array. It will be set to the actual number of words required to s…