/base/security/crypto_framework/common/src/ |
D | hcf_parcel.c | 80 char *newData = (char *)HcfMalloc(size, 0); in ParcelRealloc() local 81 if (newData == NULL) { in ParcelRealloc() 84 if (memcpy_s(newData, size, parcel->data, parcel->length) != EOK) { in ParcelRealloc() 85 HcfFree(newData); in ParcelRealloc() 89 parcel->data = newData; in ParcelRealloc()
|
/base/update/updater/services/diffpatch/patch/ |
D | blocks_patch.h | 53 …ufferPatch(const PatchBuffer &patchInfo, const BlockBuffer &oldInfo, std::vector<uint8_t> &newData) in BlocksBufferPatch() argument 54 : BlocksPatch(patchInfo), oldInfo_(oldInfo), newData_(newData) {} in BlocksBufferPatch()
|
D | update_patch.cpp | 120 const BlockBuffer &oldInfo, std::vector<uint8_t> &newData) in ApplyBlockPatch() argument 122 …ue_ptr<BlocksBufferPatch> patch = std::make_unique<BlocksBufferPatch>(patchInfo, oldInfo, newData); in ApplyBlockPatch()
|
/base/security/device_auth/common_lib/impl/src/ |
D | hc_parcel.c | 235 char *newData = (char *)HcMalloc(size, 0); in ParcelRealloc() local 236 if (newData == NULL) { in ParcelRealloc() 239 if (memcpy_s(newData, size, parcel->data, parcel->length) != EOK) { in ParcelRealloc() 240 HcFree(newData); in ParcelRealloc() 244 parcel->data = newData; in ParcelRealloc()
|
/base/update/updater/test/unittest/diffpatch/ |
D | diffpatch_unittest.cpp | 164 std::vector<uint8_t> newData; in TestApplyBlockPatch() local 165 ret = UpdatePatch::UpdateApplyPatch::ApplyBlockPatch(patchInfo, oldInfo, newData); in TestApplyBlockPatch() 175 stream.write(reinterpret_cast<const char*>(newData.data()), newData.size()); in TestApplyBlockPatch()
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_sticky_test.cpp | 448 CommonEventData newData; variable 449 newData.SetWant(newWant); 450 newData.SetData(STRING_DATA); 451 auto newDataPtr = std::make_shared<CommonEventData>(newData);
|
/base/update/updater/services/include/patch/ |
D | update_patch.h | 65 const BlockBuffer &oldInfo, std::vector<uint8_t> &newData);
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service_three_stage.c | 295 uint8_t *newData, uint32_t newSize) in CopyNewCachedData() argument 298 if (memcpy_s(newData, newSize, cachedBlob->data, cachedBlob->size) != EOK) { in CopyNewCachedData() 304 …if (memcpy_s(newData + cachedBlob->size, newSize - cachedBlob->size, inData->data, inData->size) !… in CopyNewCachedData() 321 uint8_t *newData = (uint8_t *)HksMalloc(newSize); in GetNewCachedData() local 322 HKS_IF_NULL_LOGE_RETURN(newData, HKS_ERROR_MALLOC_FAIL, "update cache data malloc fail.") in GetNewCachedData() 324 int32_t ret = CopyNewCachedData(cachedBlob, inData, newData, newSize); in GetNewCachedData() 326 HKS_FREE_PTR(newData); in GetNewCachedData() 330 newBlob->data = newData; in GetNewCachedData()
|
/base/update/updater/services/diffpatch/diff/ |
D | image_diff.cpp | 348 BlockBuffer newData = {newBuffer.data(), newFileInfo->unpackedSize}; in DiffFile() local 349 ret = TestAndSetConfig(newData, fileName); in DiffFile()
|
D | blocks_diff.cpp | 244 BlockBuffer newData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader() local 245 WriteLE64(newData, newSize); in WritePatchHeader()
|