Home
last modified time | relevance | path

Searched refs:lossless (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/
H A Djs_test_bigint_napi.cpp34 bool lossless = false; in BigIntIsLossless() local
37 NAPI_CALL(env, napi_get_value_bigint_int64(env, args[0], &input, &lossless)); in BigIntIsLossless()
40 NAPI_CALL(env, napi_get_value_bigint_uint64(env, args[0], &input, &lossless)); in BigIntIsLossless()
44 NAPI_CALL(env, napi_get_boolean(env, lossless, &output)); in BigIntIsLossless()
60 bool lossless = false; in BigInt64() local
61 NAPI_CALL(env, napi_get_value_bigint_int64(env, args[0], &input, &lossless)); in BigInt64()
82 bool lossless = false; in BigUint64() local
83 NAPI_CALL(env, napi_get_value_bigint_uint64(env, args[0], &input, &lossless)); in BigUint64()
H A Dtest_napi.cpp997 bool lossless = true; variable
1026 bool lossless = true; variable
1076 bool lossless = true; variable
1128 bool lossless = true; variable
1157 bool lossless = true; variable
1187 bool lossless = true; variable
1215 bool lossless = true; variable
1245 bool lossless = true; variable
1275 bool lossless = true; variable
1362 bool lossless = true; variable
[all …]
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/
H A Dnapi_common_fileaccess.cpp70 bool lossless = true; in UnwrapBigIntUint64FromJS() local
72 if (napi_get_value_bigint_uint64(env, param, &value, &lossless) == napi_ok) { in UnwrapBigIntUint64FromJS()
81 bool lossless = true; in UnwrapBigIntUint64FromJS2() local
82 if (napi_get_value_bigint_uint64(env, param, &defaultValue, &lossless) == napi_ok) { in UnwrapBigIntUint64FromJS2()
/ohos5.0/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/
H A Dnapi_hichecker.cpp177 bool lossless = true; in GetRuleParam() local
178 napi_get_value_bigint_uint64(env, argv[ARRAY_INDEX_FIRST], &rule, &lossless); in GetRuleParam()
179 if (!lossless) { in GetRuleParam()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-about-bigint.md22 | OH_JSVM_GetValueBigintInt64 | 返回给定JavaScript BigInt的C int64_t基础类型等价值。 如果需要,它将截断该值,将lossless设置为fa…
23 | OH_JSVM_GetValueBigintUint64 | 返回给定JavaScript BigInt的C uint64_t基础类型等价值。 如果需要,它将截断该值,将lossless设置为f…
204 OH_JSVM_ThrowError(env, nullptr, "BigInt values have no lossless converted");
297 OH_JSVM_ThrowError(env, nullptr, "BigInt values have no lossless converted");
H A Duse-napi-about-bigint.md167 napi_throw_error(env, nullptr, "BigInt values have not been lossless converted");
218 napi_throw_error(env, nullptr, "BigInt values have no lossless converted");
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-bigint.md22 …of the given JS BigInt. If necessary, it truncates the value and sets **lossless** to **false**. …
23 …of the given JS BigInt. If necessary, it truncates the value and sets **lossless** to **false**. …
203 …// Check whether the BigInt value obtained is a product of lossless conversion. If no, an exceptio…
205 OH_JSVM_ThrowError(env, nullptr, "BigInt values have no lossless converted");
296 …// Check whether the BigInt value obtained is a product of lossless conversion. If no, an exceptio…
298 OH_JSVM_ThrowError(env, nullptr, "BigInt values have no lossless converted");
H A Duse-napi-about-bigint.md165 …// Check whether the BigInt value obtained is a product of lossless conversion. If no, throw an ex…
167 napi_throw_error(env, nullptr, "BigInt values have not been lossless converted");
216 …// Check whether the BigInt value obtained is a product of lossless conversion. If no, throw an ex…
218 napi_throw_error(env, nullptr, "BigInt values have no lossless converted");
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/
H A Dn_val.cpp180 bool lossless = false; in ToUint64() local
181 napi_status status = napi_get_value_bigint_uint64(env_, val_, &res, &lossless); in ToUint64()
182 return make_tuple(status == napi_ok, res, lossless); in ToUint64()
/ohos5.0/base/hiviewdfx/hitrace/interfaces/js/kits/napi/src/
H A Dnapi_hitrace_util.cpp223 bool lossless = true; in GetPropertyBigInt64() local
224 napi_get_value_bigint_uint64(env, propertyValue, &bigInt64Value, &lossless); in GetPropertyBigInt64()
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/
H A Dnapi_value.cpp180 bool lossless = false; in ToUint64() local
181 napi_status status = napi_get_value_bigint_uint64(env_, val_, &res, &lossless); in ToUint64()
182 return make_tuple(status == napi_ok, res, lossless); in ToUint64()
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/src/
H A Dn_val.cpp204 bool lossless = false; in ToUint64() local
205 napi_status status = napi_get_value_bigint_uint64(env_, val_, &res, &lossless); in ToUint64()
206 return make_tuple(status == napi_ok, res, lossless); in ToUint64()
/ohos5.0/base/web/webview/interfaces/kits/napi/common/
H A Dnapi_parse_utils.h46 static bool ParseUint64(napi_env env, napi_value argv, uint64_t& outValue, bool *lossless);
H A Dnapi_parse_utils.cpp210 bool NapiParseUtils::ParseUint64(napi_env env, napi_value argv, uint64_t& outValue, bool *lossless) in ParseUint64() argument
220 napi_get_value_bigint_uint64(env, argv, &number, lossless); in ParseUint64()
/ohos5.0/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
H A Dnapi_hisysevent_util.cpp189 bool lossless = true; in ParseSignedBigIntValue() local
190 napi_status status = napi_get_value_bigint_int64(env, value, &val, &lossless); in ParseSignedBigIntValue()
195 ret.first = lossless; in ParseSignedBigIntValue()
204 bool lossless = true; in ParseUnsignedBigIntValue() local
205 napi_status status = napi_get_value_bigint_uint64(env, value, &val, &lossless); in ParseUnsignedBigIntValue()
210 ret.first = lossless; in ParseUnsignedBigIntValue()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dnapi_helper.cpp386 uint64_t NapiHelper::GetUint64Value(napi_env env, napi_value value, bool lossless) in GetUint64Value() argument
389 napi_get_value_bigint_uint64(env, value, &result, &lossless); in GetUint64Value()
H A Dnapi_helper.h69 static uint64_t GetUint64Value(napi_env env, napi_value value, bool lossless = false);
/ohos5.0/docs/zh-cn/application-dev/reference/common/
H A D_j_s_v_m.md176 …_value) value, int64_t \*result, bool \*lossless) | 返回给定JavaScript BigInt的C int64_t基础类型等价值。 如果需要,它…
177 …alue) value, uint64_t \*result, bool \*lossless) | 返回给定JavaScript BigInt的C uint64_t基础类型等价值。 如果需要,它…
3260 …us OH_JSVM_GetValueBigintInt64 (JSVM_Env env, JSVM_Value value, int64_t * result, bool * lossless )
3265 返回给定JavaScript BigInt的C int64_t基础类型等价值。 如果需要,它将截断该值,将lossless设置为false。
3276 | lossless | 指示BigInt值是否已无损转换。 |
3288 … OH_JSVM_GetValueBigintUint64 (JSVM_Env env, JSVM_Value value, uint64_t * result, bool * lossless )
3293 返回给定JavaScript BigInt的C uint64_t基础类型等价值。 如果需要,它将截断该值,将lossless设置为false。
3304 | lossless | 指示BigInt值是否已无损转换。 |
H A Djsvm_8h.md110 …_value) value, int64_t \*result, bool \*lossless) | 返回给定JavaScript BigInt的C int64_t基础类型等价值。 如果需要,它…
111 …alue) value, uint64_t \*result, bool \*lossless) | 返回给定JavaScript BigInt的C uint64_t基础类型等价值。 如果需要,它…
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_napi.cpp6399 bool lossless = false; variable
6412 bool lossless = false; variable
6414 napi_status status = napi_get_value_bigint_int64(env, value, result, &lossless);
6425 bool* lossless = nullptr; variable
6437 bool lossless = false; variable
6450 bool lossless = false; variable
6454 ASSERT_EQ(lossless, false);
6462 bool lossless = false; variable
6475 bool lossless = false; variable
6488 bool* lossless = nullptr; variable
[all …]
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dnapi-xcomponent-guidelines.md1349 bool lossless = true;
1350 if (napi_ok != napi_get_value_bigint_int64(env, args[0], &value, &lossless)) {
1393 bool lossless = true;
1395 if (napi_ok != napi_get_value_bigint_int64(env, args[index++], &surfaceId, &lossless)) {
/ohos5.0/drivers/external_device_manager/frameworks/js/napi/device_manager/
H A Ddevice_manager_middle.cpp522 bool lossless; in ParseDeviceId() local
523 NAPI_CALL_BASE(env, napi_get_value_bigint_uint64(env, value, deviceId, &lossless), false); in ParseDeviceId()
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-multimedia.md275 …size for a lossy compression image format (such as JPEG), but not for a lossless compression image…
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp3376 napi_env env, napi_value value, int64_t* result, bool* lossless) in napi_get_value_bigint_int64() argument
3381 CHECK_ARG(env, lossless); in napi_get_value_bigint_int64()
3388 bigIntVal->BigIntToInt64(vm, result, lossless); in napi_get_value_bigint_int64()
3394 napi_env env, napi_value value, uint64_t* result, bool* lossless) in napi_get_value_bigint_uint64() argument
3399 CHECK_ARG(env, lossless); in napi_get_value_bigint_uint64()
3406 bigIntVal->BigIntToUint64(vm, result, lossless); in napi_get_value_bigint_uint64()
/ohos5.0/docs/en/application-dev/ui/
H A Dnapi-xcomponent-guidelines.md1349 bool lossless = true;
1350 if (napi_ok != napi_get_value_bigint_int64(env, args[0], &value, &lossless)) {
1393 bool lossless = true;
1395 if (napi_ok != napi_get_value_bigint_int64(env, args[index++], &surfaceId, &lossless)) {

12