Home
last modified time | relevance | path

Searched refs:H_BLOCK_SIZE (Results 1 – 7 of 7) sorted by relevance

/base/update/updater/services/applypatch/
Dblock_set.cpp156 ret = lseek64(fd, static_cast<off64_t>(it->first * H_BLOCK_SIZE), SEEK_SET); in ReadDataFromBlock()
161 size_t size = (it->second - it->first) * H_BLOCK_SIZE; in ReadDataFromBlock()
177 off64_t offset = static_cast<off64_t>(it->first * H_BLOCK_SIZE); in WriteDataToBlock()
178 size_t writeSize = (it->second - it->first) * H_BLOCK_SIZE; in WriteDataToBlock()
218 SHA256(buffer.data(), size * H_BLOCK_SIZE, digest); in VerifySha256()
250 if (memmove_s(td + (it->first * H_BLOCK_SIZE), blocks * H_BLOCK_SIZE, sd + (start * in MoveBlock()
251 H_BLOCK_SIZE), blocks * H_BLOCK_SIZE) != EOK) { in MoveBlock()
263 sourceBuffer.resize(srcBlockSize * H_BLOCK_SIZE); in LoadSourceBuffer()
320 ret = Store::WriteDataToStore(storeBase, srcHash, buffer, blockSize * H_BLOCK_SIZE); in LoadTargetBuffer()
337 buffer.resize(H_BLOCK_SIZE); in WriteZeroToBlock()
[all …]
Dblock_writer.cpp30 return bs_.TotalBlockSize() * H_BLOCK_SIZE; in GetBlocksSize()
59 off_t offset = static_cast<off_t>(bp.first) * H_BLOCK_SIZE; in Write()
60 currentBlockLeft_ = (bp.second - bp.first) * H_BLOCK_SIZE; in Write()
Dcommand_process.cpp54 … LOG(ERROR) << "writer thread could not write blocks. " << bs.TotalBlockSize() * H_BLOCK_SIZE - in Execute()
126 tgtBlockSize = targetBlock.TotalBlockSize() * H_BLOCK_SIZE; in Execute()
173 buffer.resize(srcBlockSize * H_BLOCK_SIZE); in Execute()
190 int ret = Store::WriteDataToStore(storeBase, shaStr, buffer, srcBlockSize * H_BLOCK_SIZE); in Execute()
Dstore.cpp168 if (fileStat.st_size % H_BLOCK_SIZE != 0) { in LoadDataFromStore()
/base/update/updater/test/unittest/applypatch_test/
Dblockset_unittest.cpp62 buffer.resize(H_BLOCK_SIZE);
85 buffer.resize(H_BLOCK_SIZE);
102 srcBuffer.resize(H_BLOCK_SIZE);
104 tgtBuffer.resize(H_BLOCK_SIZE);
125 size_t tgtBlockSize = H_BLOCK_SIZE;
145 buffer.resize(H_BLOCK_SIZE);
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp389 std::vector<uint8_t> block_buff(H_BLOCK_SIZE); in Execute()
396 ret = lseek64(fd, static_cast<off64_t>(it->first * H_BLOCK_SIZE), SEEK_SET); in Execute()
399 size_t size = (it->second - it->first) * H_BLOCK_SIZE; in Execute()
450 std::vector<uint8_t> block_buff(H_BLOCK_SIZE); in Execute()
457 ret = lseek64(fd, static_cast<off64_t>(it->first * H_BLOCK_SIZE), SEEK_SET); in Execute()
462 … UPDATER_ERROR_CHECK(Utils::ReadFully(fd, block_buff.data(), H_BLOCK_SIZE), "Failed to read", in Execute()
464 SHA256_Update(&ctx, block_buff.data(), H_BLOCK_SIZE); in Execute()
/base/update/updater/services/include/applypatch/
Dblock_set.h26 static constexpr int H_BLOCK_SIZE = 4096; variable