Home
last modified time | relevance | path

Searched refs:BigInteger (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dbig_integer.cpp19 BigInteger::BigInteger(int64_t value) in BigInteger() function in OHOS::NativeRdb::BigInteger
28 BigInteger::BigInteger(int32_t sign, std::vector<uint64_t>&& trueForm) in BigInteger() function in OHOS::NativeRdb::BigInteger
33 BigInteger::BigInteger(const BigInteger& other) in BigInteger() function in OHOS::NativeRdb::BigInteger
38 BigInteger::BigInteger(BigInteger&& other) in BigInteger() function in OHOS::NativeRdb::BigInteger
43 BigInteger& BigInteger::operator=(const BigInteger& other) in operator =()
53 BigInteger& BigInteger::operator=(BigInteger&& other) in operator =()
64 bool BigInteger::operator==(const BigInteger& other) in operator ==()
72 bool BigInteger::operator<(const BigInteger &rhs) in operator <()
77 int32_t BigInteger::Sign() const in Sign()
82 size_t BigInteger::Size() const in Size()
[all …]
H A Draw_data_parser.cpp135 size_t RawDataParser::ParserRawData(const uint8_t* data, size_t length, BigInteger& bigint) in ParserRawData()
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()
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Dbig_integer.h24 class API_EXPORT BigInteger final {
26 BigInteger() = default;
27 ~BigInteger() = default;
29 BigInteger(int64_t value);
30 BigInteger(int32_t sign, std::vector<uint64_t> &&trueForm);
31 BigInteger(const BigInteger &other);
32 BigInteger(BigInteger &&other);
33 BigInteger &operator=(const BigInteger &other);
34 BigInteger &operator=(BigInteger &&other);
35 bool operator==(const BigInteger &other);
[all …]
H A Dvalue_object.h45 using BigInt = BigInteger;
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_bigint_test.cpp157 BigInteger value1 = BigInteger(0, std::vector<uint64_t>{ 158, 0xDEADDEADDEADDEAD });
158 BigInteger value2 = BigInteger(1, std::vector<uint64_t>{ 158, 0xDEADDEADDEADDEAD });
193 BigInteger value1 = BigInteger(0, std::vector<uint64_t>{ 158, 0xDEADDEADDEADDEAD });
271 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val));
272 BigInteger value2 = BigInteger(1, std::vector<uint64_t>(u64Val));
313 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val));
314 BigInteger value2 = BigInteger(1, std::vector<uint64_t>(u64Val));
355 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val));
356 BigInteger value2 = BigInteger(1, std::vector<uint64_t>(u64Val));
393 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val));
[all …]
H A Dbig_integer_test.cpp56 BigInteger bigInt1 = BigInteger(100);
57 BigInteger bigInt2 = BigInteger(-100);
H A Dvalue_object_test.cpp106 BigInteger bigInt1(1234);
108 BigInteger bigInt = obj;
H A Draw_data_parser_test.cpp59 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val));
64 BigInteger parsedValue1;
H A Drdb_trans_db_test.cpp55 { "years", ValueObject(BigInteger(0, { 128, 225 })) },
412 row.Put("years", BigInteger(i % 2, { 128, 225 }));
449 row.Put("years", BigInteger(i % 2, { 128, 225 }));
517 row.Put("years", BigInteger(i % 2, { 128, 225 }));
561 row.Put("years", BigInteger(i % 2, { 128, 225 }));
634 row.Put("years", BigInteger(i % 2, { 128, 225 }));
682 row.Put("years", BigInteger(i % 2, { 128, 225 }));
727 row.Put("years", BigInteger(i % 2, { 128, 225 }));
762 row.Put("years", BigInteger(i % 2, { 128, 225 }));
793 row.Put("years", BigInteger(i % 2, { 128, 225 }));
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Draw_data_parser.h34 static size_t ParserRawData(const uint8_t *data, size_t length, BigInteger &bigint);
40 static std::vector<uint8_t> PackageRawData(const BigInteger &bigint);
H A Drdb_types_util.h47 using BigInt = NativeRdb::BigInteger;
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/
H A Dnapi_rdb_js_utils.h27 using BigInt = OHOS::NativeRdb::BigInteger;
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
H A Dnapi_rdb_js_utils.cpp114 value = BigInteger(sign, std::move(words)); in Convert2Value()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/
H A Dnapi_rdb_js_utils.h43 using BigInt = OHOS::NativeRdb::BigInteger;
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_js_utils.cpp275 value = BigInteger(sign, std::move(words)); in Convert2Value()
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-Java-secure-coding-guide.md15 对于整数溢出问题,可以通过先决条件检测、使用Math类的安全方法、向上类型转换或者使用`BigInteger`等方法进行规避。
/ohos5.0/docs/en/contribute/
H A DOpenHarmony-Java-secure-coding-guide.md15 Integer overflows can be avoided using precondition testing, Math class, upcasting, `BigInteger`, e…