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()
1099 std::vector<PatchChunk>* patch_chunks) { in GeneratePatchesInternal() argument
1101 patch_chunks->clear(); in GeneratePatchesInternal()
1108 patch_chunks->emplace_back(tgt_chunk); in GeneratePatchesInternal()
1130 patch_chunks->emplace_back(tgt_chunk); in GeneratePatchesInternal()
1132 patch_chunks->emplace_back(tgt_chunk, src_ref, std::move(patch_data)); in GeneratePatchesInternal()
1137 CHECK_EQ(patch_chunks->size(), tgt_image.NumOfChunks()); in GeneratePatchesInternal()
1143 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1145 ZipModeImage::GeneratePatchesInternal(tgt_image, src_image, &patch_chunks); in GeneratePatches()
1147 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()
1156 return PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd); in GeneratePatches()
1176 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1178 &patch_chunks)) { in GeneratePatches()
1184 for (auto& p : patch_chunks) { in GeneratePatches()
1189 if (!PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd)) { in GeneratePatches()
1223 if (!PatchChunk::WritePatchDataToFd(patch_chunks, fd)) { in GeneratePatches()
1434 std::vector<PatchChunk> patch_chunks; in GeneratePatches() local
1435 patch_chunks.reserve(tgt_image.NumOfChunks()); in GeneratePatches()
1442 patch_chunks.emplace_back(tgt_chunk); in GeneratePatches()
1455 patch_chunks.emplace_back(tgt_chunk); in GeneratePatches()
1457 patch_chunks.emplace_back(tgt_chunk, src_chunk, std::move(patch_data)); in GeneratePatches()
1461 CHECK_EQ(tgt_image.NumOfChunks(), patch_chunks.size()); in GeneratePatches()
1470 return PatchChunk::WritePatchDataToFd(patch_chunks, patch_fd); in GeneratePatches()