Home
last modified time | relevance | path

Searched refs:oriValue (Results 1 - 9 of 9) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store_transfer_data.cpp24 int MultiVerNaturalStoreTransferData::SegmentAndTransferValueToHash(const Value &oriValue, in SegmentAndTransferValueToHash() argument
27 if (oriValue.size() <= sliceLengthThreshold_) { in SegmentAndTransferValueToHash()
36 const size_t partNum = oriValue.size() / sizeByte; in SegmentAndTransferValueToHash()
41 std::copy(oriValue.begin() + i * sizeByte, oriValue.begin() + sizeByte * (i + 1), tempValue.begin()); in SegmentAndTransferValueToHash()
44 Value tailValue(oriValue.size() - partNum * sizeByte); in SegmentAndTransferValueToHash()
45 std::copy(oriValue.begin() + partNum * sizeByte, oriValue.end(), tailValue.begin()); in SegmentAndTransferValueToHash()
H A Dmulti_ver_natural_store_transfer_data.h32 int SegmentAndTransferValueToHash(const Value &oriValue, std::vector<Value> &partValues) const;
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_enhance_impl.cpp85 std::vector<uint8_t> oriValue; in Get() local
86 int errCode = db_->Get(oriKey, oriValue); in Get()
91 auto item = PreferencesValueParcel::UnmarshallingPreferenceValue(oriValue); in Get()
96 if (oriValue.size() >= CACHED_THRESHOLDS) { in Get()
127 std::vector<uint8_t> oriValue; in HasKey() local
128 int errCode = db_->Get(oriKey, oriValue); in HasKey()
133 if (oriValue.size() >= CACHED_THRESHOLDS) { in HasKey()
134 auto item = PreferencesValueParcel::UnmarshallingPreferenceValue(oriValue); in HasKey()
161 std::vector<uint8_t> oriValue; in Put() local
163 oriValue in Put()
392 std::vector<uint8_t> oriValue; GetValue() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_schema_object_test.cpp971 void CheckValueLackField(const SchemaObject &schema, const std::string &oriValue, const std::string &lackField, in CheckValueLackField() argument
974 std::string valueStr = oriValue; in CheckValueLackField()
983 void CheckValueLackField(const SchemaObject &schema, const std::string &oriValue, const std::string &lackField, in CheckValueLackField() argument
987 CheckValueLackField(schema, oriValue, lackField, expectErrCode, valueObj); in CheckValueLackField()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_data_operation_test.cpp442 static void CheckSplitData(const Value &oriValue, const uint32_t numBlock, in CheckSplitData() argument
448 int errCode = transferData.SegmentAndTransferValueToHash(oriValue, partValues); in CheckSplitData()
450 if (oriValue.size() <= DistributedDB::DBConstant::MAX_VALUE_SIZE) { in CheckSplitData()
452 valueObject.SetValue(oriValue); in CheckSplitData()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_natural_store.cpp297 int SQLiteSingleVerNaturalStore::CheckValueAndAmendIfNeed(ValueSource sourceType, const Value &oriValue, in CheckValueAndAmendIfNeed() argument
300 // oriValue size may already be checked previously, but check here const little in CheckValueAndAmendIfNeed()
301 if (oriValue.size() > DBConstant::MAX_VALUE_SIZE) { in CheckValueAndAmendIfNeed()
311 int errCode = valueObj.Parse(oriValue.data(), oriValue.data() + oriValue.size(), schemaObjRef.GetSkipSize()); in CheckValueAndAmendIfNeed()
335 int errCode = schemaObjRef.VerifyValue(sourceType, oriValue); in CheckValueAndAmendIfNeed()
H A Dsqlite_single_ver_natural_store_connection.h197 int CheckAmendValueContentForLocalProcedure(const Value &oriValue, Value &amendValue) const;
H A Dsqlite_single_ver_natural_store.h160 int CheckValueAndAmendIfNeed(ValueSource sourceType, const Value &oriValue, Value &amendValue,
H A Dsqlite_single_ver_natural_store_connection.cpp1742 int SQLiteSingleVerNaturalStoreConnection::CheckAmendValueContentForLocalProcedure(const Value &oriValue, in CheckAmendValueContentForLocalProcedure() argument
1750 return naturalStore->CheckValueAndAmendIfNeed(ValueSource::FROM_LOCAL, oriValue, amendValue, useAmendValue); in CheckAmendValueContentForLocalProcedure()

Completed in 12 milliseconds