Searched refs:newSize (Results 1 – 7 of 7) sorted by relevance
/base/security/crypto_framework/common/src/ |
D | hcf_parcel.c | 133 static uint32_t GetParcelIncreaseSize(HcParcel *parcel, uint32_t newSize) in GetParcelIncreaseSize() argument 138 if (newSize % parcel->allocUnit) { in GetParcelIncreaseSize() 139 return (newSize / parcel->allocUnit + 1) * parcel->allocUnit; in GetParcelIncreaseSize() 141 return (newSize / parcel->allocUnit) * parcel->allocUnit; in GetParcelIncreaseSize() 157 uint32_t newSize = GetParcelIncreaseSize(parcel, parcel->endPos + dataSize); in ParcelWrite() local 158 if (!ParcelIncrease(parcel, newSize)) { in ParcelWrite()
|
/base/update/updater/services/diffpatch/patch/ |
D | blocks_patch.cpp | 111 int32_t BlocksPatch::ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) in ReadHeader() argument 134 newSize = ReadLE64(header + offset); in ReadHeader() 141 if (newSize < 0) { in ReadHeader() 188 …_t BlocksBufferPatch::ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) in ReadHeader() argument 190 int32_t ret = BlocksPatch::ReadHeader(controlDataSize, diffDataSize, newSize); in ReadHeader() 195 PATCH_LOGI("ReadHeader controlDataSize: %ld %ld %ld", controlDataSize, diffDataSize, newSize); in ReadHeader() 196 newData_.resize(newSize); in ReadHeader()
|
D | blocks_patch.h | 37 virtual int32_t ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize); 58 int32_t ReadHeader(int64_t &controlDataSize, int64_t &diffDataSize, int64_t &newSize) override;
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.h | 64 int64_t diffDataSize, int64_t newSize, size_t &headerLen) = 0; 94 int64_t diffDataSize, int64_t newSize, size_t &headerLen) override; 108 int64_t diffDataSize, int64_t newSize, size_t &headerLen) override;
|
D | blocks_diff.cpp | 207 int64_t diffDataSize, int64_t newSize, size_t &headerLen) in WritePatchHeader() argument 229 WriteLE64(newData, newSize); in WritePatchHeader() 235 int64_t diffDataSize, int64_t newSize, size_t &headerLen) in WritePatchHeader() argument 251 WriteLE64(buffer, newSize); in WritePatchHeader() 261 int64_t newSize = static_cast<int64_t>(newInfo.length); in ComputeOldScore() local 262 for (int64_t begin = currentOffset_ += matchLen; currentOffset_ < newSize; currentOffset_++) { in ComputeOldScore()
|
/base/security/device_auth/common_lib/impl/src/ |
D | hc_parcel.c | 288 static uint32_t GetParcelIncreaseSize(HcParcel *parcel, uint32_t newSize) in GetParcelIncreaseSize() argument 293 if (newSize % parcel->allocUnit) { in GetParcelIncreaseSize() 294 return (newSize / parcel->allocUnit + 1) * parcel->allocUnit; in GetParcelIncreaseSize() 296 return (newSize / parcel->allocUnit) * parcel->allocUnit; in GetParcelIncreaseSize() 312 uint32_t newSize = GetParcelIncreaseSize(parcel, parcel->endPos + dataSize); in ParcelWrite() local 313 if (!ParcelIncrease(parcel, newSize)) { in ParcelWrite()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service_three_stage.c | 290 uint8_t *newData, uint32_t newSize) in CopyNewCachedData() argument 293 if (memcpy_s(newData, newSize, cachedBlob->data, cachedBlob->size) != EOK) { in CopyNewCachedData() 299 …if (memcpy_s(newData + cachedBlob->size, newSize - cachedBlob->size, inData->data, inData->size) !… in CopyNewCachedData() 315 uint32_t newSize = cachedBlob->size + inData->size; in GetNewCachedData() local 316 uint8_t *newData = (uint8_t *)HksMalloc(newSize); in GetNewCachedData() 319 int32_t ret = CopyNewCachedData(cachedBlob, inData, newData, newSize); in GetNewCachedData() 326 newBlob->size = newSize; in GetNewCachedData()
|