/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | big_integer.cpp | 19 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 D | raw_data_parser.cpp | 135 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 D | big_integer.h | 24 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 D | value_object.h | 45 using BigInt = BigInteger;
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_bigint_test.cpp | 157 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 D | big_integer_test.cpp | 56 BigInteger bigInt1 = BigInteger(100); 57 BigInteger bigInt2 = BigInteger(-100);
|
H A D | value_object_test.cpp | 106 BigInteger bigInt1(1234); 108 BigInteger bigInt = obj;
|
H A D | raw_data_parser_test.cpp | 59 BigInteger value1 = BigInteger(0, std::vector<uint64_t>(u64Val)); 64 BigInteger parsedValue1;
|
H A D | rdb_trans_db_test.cpp | 55 { "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 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);
|
H A D | rdb_types_util.h | 47 using BigInt = NativeRdb::BigInteger;
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/ |
H A D | napi_rdb_js_utils.h | 27 using BigInt = OHOS::NativeRdb::BigInteger;
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/ |
H A D | napi_rdb_js_utils.cpp | 114 value = BigInteger(sign, std::move(words)); in Convert2Value()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_js_utils.h | 43 using BigInt = OHOS::NativeRdb::BigInteger;
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_rdb_js_utils.cpp | 275 value = BigInteger(sign, std::move(words)); in Convert2Value()
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-Java-secure-coding-guide.md | 15 对于整数溢出问题,可以通过先决条件检测、使用Math类的安全方法、向上类型转换或者使用`BigInteger`等方法进行规避。
|
/ohos5.0/docs/en/contribute/ |
H A D | OpenHarmony-Java-secure-coding-guide.md | 15 Integer overflows can be avoided using precondition testing, Math class, upcasting, `BigInteger`, e…
|