Home
last modified time | relevance | path

Searched refs:newData (Results 1 – 10 of 10) sorted by relevance

/base/security/crypto_framework/common/src/
Dhcf_parcel.c80 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/
Dblocks_patch.h53 …ufferPatch(const PatchBuffer &patchInfo, const BlockBuffer &oldInfo, std::vector<uint8_t> &newData) in BlocksBufferPatch() argument
54 : BlocksPatch(patchInfo), oldInfo_(oldInfo), newData_(newData) {} in BlocksBufferPatch()
Dupdate_patch.cpp120 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/
Dhc_parcel.c235 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/
Ddiffpatch_unittest.cpp164 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/
Dcommon_event_sticky_test.cpp448 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/
Dupdate_patch.h65 const BlockBuffer &oldInfo, std::vector<uint8_t> &newData);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service_three_stage.c295 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/
Dimage_diff.cpp348 BlockBuffer newData = {newBuffer.data(), newFileInfo->unpackedSize}; in DiffFile() local
349 ret = TestAndSetConfig(newData, fileName); in DiffFile()
Dblocks_diff.cpp244 BlockBuffer newData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader() local
245 WriteLE64(newData, newSize); in WritePatchHeader()