Home
last modified time | relevance | path

Searched refs:BigInt (Results 1 - 25 of 29) sorted by relevance

12

/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences_value.h37 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 Dnapi_rdb_js_utils.h27 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 Dpreferences_value.cpp96 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 Dpreferences_utils.cpp66 BigInt bigint = value; in CheckValue()
68 LOG_ERROR("BigInt words cannot be empty."); in CheckValue()
H A Dpreferences_value_parcel.cpp97 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 Dpreferences_impl.cpp123 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 DRdbStoreValueType.test.js67 "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 Dvalue_object.h45 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 DPreferencesCallBackJsunit.test.js461 * @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 DPreferencesPromiseJsunit.test.js611 * @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 DPreferencesSyncJsunit.test.js338 * @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 Dvalue_object.cpp90 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 Drdb_types_util.cpp218 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 Dshared_block_serializer_info.cpp99 : (type == ValueObject::DeclType<ValueObject::BigInt>()) ? &AppDataFwk::SharedBlock::PutBigInt in PutBlob()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/
H A Dnapi_rdb_sendable_utils.h32 napi_value Convert2Sendable(napi_env env, const BigInt &value);
H A Dnapi_rdb_js_utils.h43 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 Drdb_types_util.h47 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 Dsqlite_statement.h66 using BigInt = ValueObject::BigInt;
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Djs_sendable_utils.h38 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 Djs_common_utils.h61 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 Dnapi_rdb_js_utils.cpp85 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 Djs_sendable_utils.cpp66 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 Djs_common_utils.cpp144 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 Dpreferences_test.cpp926 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 Dnapi_rdb_sendable_utils.cpp67 napi_value Convert2Sendable(napi_env env, const BigInt &value) in Convert2Sendable()

Completed in 12 milliseconds

12