/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/ |
H A D | preferences_value.h | 37 struct BigInt { struct 39 BigInt() = default; 40 BigInt(const std::vector<uint64_t> &words, int sign) : words_(std::move(words)), sign_(sign) in BigInt() function 43 ~BigInt() = default; 44 bool operator==(const BigInt &value) const in operator ==() 180 * This constructor is used to convert the BigInt input parameter to a value of type PreferencesValue. 184 PREF_API_EXPORT PreferencesValue(BigInt value); 269 * @brief Determines whether the BigInt type PreferencesValue is currently used. 350 * @return Returns BigInt type PreferencesValue. 352 PREF_API_EXPORT operator BigInt() cons [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/ |
H A D | napi_rdb_js_utils.h | 27 using BigInt = OHOS::NativeRdb::BigInteger; 37 napi_value Convert2JSValue(napi_env env, const BigInt &value); 39 int32_t Convert2Value(napi_env env, napi_value jsValue, BigInt &value);
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_value.cpp | 96 PreferencesValue::PreferencesValue(BigInt value) in PreferencesValue() 176 return std::holds_alternative<BigInt>(value_); in IsBigInt() 234 PreferencesValue::operator BigInt() const in operator BigInt() 236 return std::get<BigInt>(value_); in operator BigInt()
|
H A D | preferences_utils.cpp | 66 BigInt bigint = value; in CheckValue() 68 LOG_ERROR("BigInt words cannot be empty."); in CheckValue()
|
H A D | preferences_value_parcel.cpp | 97 std::get<BigInt>(value.value_).words_.size() * sizeof(uint64_t); in CalSize() 296 BigInt bigIntValue = std::get<BigInt>(value.value_); in MarshallingVecBigIntAfterType() 599 BigInt bigIntValue = BigInt(vec, sign); in UnmarshallingVecBigInt()
|
H A D | preferences_impl.cpp | 123 std::string GetTypeName<BigInt>() in GetTypeName() 125 return "BigInt"; in GetTypeName() 235 static void Convert2PrefValue(const Element &element, BigInt &value) in Convert2PrefValue() 348 void Convert2Element(Element &elem, const BigInt &value) in Convert2Element() 350 elem.tag_ = GetTypeName<BigInt>(); in Convert2Element()
|
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbStoreValueType.test.js | 67 "value1":BigInt(158), 68 "value2":BigInt(-158) 106 "value1":BigInt("15822401018187971961171"), 107 "value2":BigInt("-15822401018187971961171")
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | value_object.h | 45 using BigInt = BigInteger; 47 using Type = std::variant<Nil, int64_t, double, std::string, bool, Blob, Asset, Assets, FloatVector, BigInt>; 103 TYPE_BIGINT = TYPE_INDEX<BigInt>, 232 API_EXPORT ValueObject(BigInt val); 368 * @return Returns the BigInt type ValueObject. 370 API_EXPORT operator BigInt() const;
|
/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/ |
H A D | PreferencesCallBackJsunit.test.js | 461 * @tc.name put BigInt callback interface test 466 let bigint = BigInt("-12345678912345678912345678971234567123456"); 468 let pre = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 474 let pre2 = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 481 * @tc.name put BigInt callback interface test 486 let bigint = BigInt("12345678912345678912345678971234567123456"); 488 let pre = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 494 let pre2 = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 501 * @tc.name put BigInt callback interface test 506 let bigint = BigInt(Numbe [all...] |
H A D | PreferencesPromiseJsunit.test.js | 611 * @tc.name put BigInt promise interface test 617 let bigint = BigInt("-12345678912345678912345678971234567123456"); 619 let pre = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 625 let pre2 = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 632 * @tc.name put BigInt promise interface test 637 let bigint = BigInt("12345678912345678912345678971234567123456"); 639 let pre = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 645 let pre2 = await mPreferences.get(KEY_TEST_BIGINT, BigInt(0)); 650 * @tc.name put BigInt promise interface test 655 let bigint = BigInt(Numbe [all...] |
H A D | PreferencesSyncJsunit.test.js | 338 * @tc.name put BigInt sync interface test 340 * @tc.desc put BigInt sync interface test 343 let bigint = BigInt(Number.MIN_SAFE_INTEGER); 345 let pre = mPreferences.getSync(KEY_TEST_BIGINT, BigInt(0)); 351 let pre2 = await mPreferences.getSync(KEY_TEST_BIGINT, BigInt(0));
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | value_object.cpp | 90 ValueObject::ValueObject(ValueObject::BigInt val) : value(std::move(val)) in ValueObject() 320 ValueObject::operator BigInt() const in operator BigInt() 322 auto val = std::get_if<BigInt>(&value); in operator BigInt() 381 result = BigInt(*this) < BigInt(rhs); in operator <()
|
H A D | rdb_types_util.cpp | 218 bool Marshalling(const BigInt& input, MessageParcel& data) in Marshalling() 224 bool Unmarshalling(BigInt& output, MessageParcel& data) in Unmarshalling() 231 output = BigInt(sign, std::move(value)); in Unmarshalling()
|
H A D | shared_block_serializer_info.cpp | 99 : (type == ValueObject::DeclType<ValueObject::BigInt>()) ? &AppDataFwk::SharedBlock::PutBigInt
in PutBlob()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_sendable_utils.h | 32 napi_value Convert2Sendable(napi_env env, const BigInt &value);
|
H A D | napi_rdb_js_utils.h | 43 using BigInt = OHOS::NativeRdb::BigInteger; 122 napi_value Convert2JSValue(napi_env env, const BigInt &value); 124 int32_t Convert2Value(napi_env env, napi_value jsValue, BigInt &value);
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rdb_types_util.h | 47 using BigInt = NativeRdb::BigInteger; 122 API_EXPORT bool Marshalling(const BigInt &input, MessageParcel &data); 124 API_EXPORT bool Unmarshalling(BigInt &output, MessageParcel &data);
|
H A D | sqlite_statement.h | 66 using BigInt = ValueObject::BigInt;
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
H A D | js_sendable_utils.h | 38 using BigInt = NativePreferences::BigInt; 47 int32_t ConvertFromSendable(napi_env env, napi_value jsValue, BigInt &output); 65 napi_value ConvertToSendable(napi_env env, const BigInt &value);
|
H A D | js_common_utils.h | 61 int32_t Convert2NativeValue(napi_env env, napi_value jsValue, BigInt &output); 78 napi_value Convert2JSValue(napi_env env, const BigInt &value);
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/ |
H A D | napi_rdb_js_utils.cpp | 85 napi_value Convert2JSValue(napi_env env, const BigInt& value) in Convert2JSValue() 96 int32_t Convert2Value(napi_env env, napi_value jsValue, BigInt& value) in Convert2Value()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | js_sendable_utils.cpp | 66 int32_t ConvertFromSendable(napi_env env, napi_value jsValue, BigInt &output) in ConvertFromSendable() 142 napi_value ConvertToSendable(napi_env env, const BigInt &value) in ConvertToSendable()
|
H A D | js_common_utils.cpp | 144 int32_t JSUtils::Convert2NativeValue(napi_env env, napi_value jsValue, BigInt &output) in Convert2NativeValue() 285 napi_value JSUtils::Convert2JSValue(napi_env env, const BigInt &value) in Convert2JSValue()
|
/foundation/distributeddatamgr/preferences/test/native/unittest/ |
H A D | preferences_test.cpp | 926 BigInt bigint1(words, 0); in HWTEST_F() 927 BigInt bigint2(words, 1); in HWTEST_F() 936 BigInt ret = pref1->Get(LONG_KEY, BigInt()); in HWTEST_F() 938 ret = pref1->Get(KEY_TEST_BIGINT_ELEMENT, BigInt()); in HWTEST_F() 955 BigInt bigint1(words, 0); in HWTEST_F() 1057 BigInt bigint(words, 0); in HWTEST_F() 1058 BigInt retBigint = PreferencesValue(bigint); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_rdb_sendable_utils.cpp | 67 napi_value Convert2Sendable(napi_env env, const BigInt &value) in Convert2Sendable()
|