Searched refs:bigint (Results 1 - 10 of 10) sorted by relevance
/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/ |
H A D | PreferencesCallBackJsunit.test.js | 466 let bigint = BigInt("-12345678912345678912345678971234567123456"); 467 await mPreferences.put(KEY_TEST_BIGINT, bigint, async function (err, ret) { 469 expect(bigint === pre).assertTrue(); 476 expect(bigint === pre2).assertTrue(); 486 let bigint = BigInt("12345678912345678912345678971234567123456"); 487 await mPreferences.put(KEY_TEST_BIGINT, bigint, async function (err, ret) { 489 expect(bigint === pre).assertTrue(); 496 expect(bigint === pre2).assertTrue(); 506 let bigint = BigInt(Number.MAX_SAFE_INTEGER); 507 await mPreferences.put(KEY_TEST_BIGINT, bigint, asyn [all...] |
H A D | PreferencesPromiseJsunit.test.js | 617 let bigint = BigInt("-12345678912345678912345678971234567123456"); 618 await mPreferences.put(KEY_TEST_BIGINT, bigint); 620 expect(bigint === pre).assertTrue(); 626 expect(bigint === pre2).assertTrue(); 637 let bigint = BigInt("12345678912345678912345678971234567123456"); 638 await mPreferences.put(KEY_TEST_BIGINT, bigint); 640 expect(bigint === pre).assertTrue(); 646 expect(bigint === pre2).assertTrue(); 655 let bigint = BigInt(Number.MAX_SAFE_INTEGER); 656 await mPreferences.put(KEY_TEST_BIGINT, bigint); [all...] |
H A D | PreferencesSyncJsunit.test.js | 343 let bigint = BigInt(Number.MIN_SAFE_INTEGER); 344 mPreferences.putSync(KEY_TEST_BIGINT, bigint); 346 expect(bigint === pre).assertTrue(); 352 expect(bigint === pre2).assertTrue();
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_utils.cpp | 66 BigInt bigint = value; in CheckValue() local 67 if (bigint.words_.empty()) { in CheckValue()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | raw_data_parser.cpp | 135 size_t RawDataParser::ParserRawData(const uint8_t* data, size_t length, BigInteger& bigint) in ParserRawData() argument 175 bigint = BigInteger(static_cast<int32_t>(sign), std::move(trueFrom)); in ParserRawData() 222 std::vector<uint8_t> RawDataParser::PackageRawData(const BigInteger& bigint) in PackageRawData() argument 225 auto size = sizeof(BIG_INT) + sizeof(uint32_t) + sizeof(uint64_t) * (bigint.Size() + 1); in PackageRawData() 230 *(reinterpret_cast<uint32_t *>(&data[offset])) = Endian::HToLe(uint32_t(bigint.Sign())); in PackageRawData() 232 *(reinterpret_cast<uint64_t *>(&data[offset])) = Endian::HToLe(uint64_t(bigint.Size())); in PackageRawData() 234 auto trueForm = bigint.TrueForm(); in PackageRawData() 238 for (size_t i = 0; i < bigint.Size(); ++i) { in PackageRawData()
|
H A D | sqlite_statement.cpp | 560 BigInt bigint; in GetValueFromBlob() local 561 RawDataParser::ParserRawData(blob, size, bigint); in GetValueFromBlob() 562 return ValueObject(std::move(bigint)); in GetValueFromBlob()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | raw_data_parser.h | 34 static size_t ParserRawData(const uint8_t *data, size_t length, BigInteger &bigint); 40 static std::vector<uint8_t> PackageRawData(const BigInteger &bigint);
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | js_common_utils.cpp | 147 LOG_DEBUG("Not of bigint type."); in Convert2NativeValue() 287 napi_value bigint = nullptr; in Convert2JSValue() local 288 napi_status status = napi_create_bigint_words(env, value.sign_, value.words_.size(), value.words_.data(), &bigint); in Convert2JSValue() 289 if (status != napi_ok || bigint == nullptr) { in Convert2JSValue() 293 return bigint; in Convert2JSValue()
|
/foundation/arkui/napi/test/unittest/jsvm/ |
H A D | test_jsvm.cpp | 411 JSVM_Value bigint; in HWTEST_F() local 413 JSVM_CALL(OH_JSVM_CreateBigintInt64(env, intValue, &bigint)); in HWTEST_F() 415 JSVM_CALL(OH_JSVM_IsBigInt(env, bigint, &result)); in HWTEST_F()
|
/foundation/distributeddatamgr/preferences/test/native/unittest/ |
H A D | preferences_test.cpp | 1057 BigInt bigint(words, 0); in HWTEST_F() 1058 BigInt retBigint = PreferencesValue(bigint); in HWTEST_F() 1059 EXPECT_EQ(bigint, retBigint); in HWTEST_F()
|
Completed in 9 milliseconds