Lines Matching refs:patch_chunks

545 bool PatchChunk::WritePatchDataToFd(const std::vector<PatchChunk>& patch_chunks, int patch_fd) {  in WritePatchDataToFd()  argument
549 for (const auto& patch : patch_chunks) { in WritePatchDataToFd()
561 Write4(patch_fd, static_cast<int32_t>(patch_chunks.size())); in WritePatchDataToFd()
562 LOG(INFO) << "Writing " << patch_chunks.size() << " patch headers..."; in WritePatchDataToFd()
563 for (size_t i = 0; i < patch_chunks.size(); ++i) { in WritePatchDataToFd()
564 offset = patch_chunks[i].WriteHeaderToFd(patch_fd, offset, i); in WritePatchDataToFd()
568 for (const auto& patch : patch_chunks) { in WritePatchDataToFd()
1100 std::vector<PatchChunk>* patch_chunks) { in GeneratePatchesInternal() argument
1102 patch_chunks->clear(); in GeneratePatchesInternal()
1109 patch_chunks->emplace_back(tgt_chunk); in GeneratePatchesInternal()
1131 patch_chunks->emplace_back(tgt_chunk); in GeneratePatchesInternal()
1133 patch_chunks->emplace_back(tgt_chunk, src_ref, std::move(patch_data)); in GeneratePatchesInternal()
1138 CHECK_EQ(patch_chunks->size(), tgt_image.NumOfChunks()); in GeneratePatchesInternal()
1144 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1146 ZipModeImage::GeneratePatchesInternal(tgt_image, src_image, &patch_chunks); in GeneratePatches()
1148 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()
1157 return PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd); in GeneratePatches()
1177 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1179 &patch_chunks)) { in GeneratePatches()
1185 for (auto& p : patch_chunks) { in GeneratePatches()
1190 if (!PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd)) { in GeneratePatches()
1224 if (!PatchChunk::WritePatchDataToFd(patch_chunks, fd)) { in GeneratePatches()
1435 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1436 patch_chunks.reserve(tgt_image.NumOfChunks()); in GeneratePatches()
1443 patch_chunks.emplace_back(tgt_chunk); in GeneratePatches()
1456 patch_chunks.emplace_back(tgt_chunk); in GeneratePatches()
1458 patch_chunks.emplace_back(tgt_chunk, src_chunk, std::move(patch_data)); in GeneratePatches()
1462 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()
1471 return PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd); in GeneratePatches()